Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/runtime/objs/mk.x86-darwin
ViewVC logotype

Annotation of /sml/trunk/runtime/objs/mk.x86-darwin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3749 - (view) (download)

1 : jhr 1900 # mk.x86-darwin
2 :     #
3 : jhr 3749 # COPYRIGHT (c) 2012 The SML/NJ Fellowship
4 : jhr 1900 #
5 : jhr 3749 # Makefile for MacOS X 10.6+ on Intel processors
6 : jhr 1900 #
7 : jhr 3749
8 : jhr 2819 #
9 : jhr 3656 # The SDK variable is set to the SDK minimum Mac OS X version that you want
10 :     # to support. Note that since Lion, the 10.5 (and 10.6?) SDKs are not part
11 :     # of the Xcode install.
12 :     #
13 : jhr 3749 #SDK = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
14 :     SDK = -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6
15 : jhr 1900
16 :     SHELL = /bin/sh
17 :    
18 :     MAKE = make
19 : jhr 3432 AS = /usr/bin/as -arch i386
20 : jhr 3749 CC = cc -m32 -std=c99
21 : jhr 3656 CFLAGS = -g -O2 -D_DARWIN_C_SOURCE $(SDK)
22 : jhr 3749 CPP = cc -x assembler-with-cpp -E -P -std=c99
23 : jhr 1900 XOBJS =
24 :     XLIBS = ../c-libs/dl/libunix-dynload.a
25 :     LD_LIBS = -ldl
26 :     XDEFS =
27 :     BASE_DEFS =
28 : jhr 3749 DEFS = $(XDEFS) $(BASE_DEFS) -DHOST_X86 -DTARGET_X86 -DOPSYS_UNIX -DOPSYS_DARWIN -DGNU_ASSEMBLER -DDLOPEN -DINDIRECT_CFUNC
29 : jhr 1900 TARGET = X86
30 :     VERSION = v-x86-darwin
31 :     RUNTIME = run.x86-darwin
32 :     RUNTIMEX = runx.x86-darwin
33 :    
34 :     all:
35 :     ($(MAKE) RUNTIME="$(RUNTIME)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" AS="$(AS)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" $(RUNTIME))
36 :     ($(MAKE) RUNTIME="$(RUNTIMEX)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" LDFLAGS="-Xlinker -r" $(RUNTIMEX))

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0