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 4258 - (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 3756 # to support 10.5 and later you will need to have the 10.5 SDK in /Developer/SDKs/MacOSX10.5.sdk
14 :     #
15 : jhr 3749 #SDK = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
16 : jhr 3756 #
17 :     # to support 10.5 and later you will need to have the 10.6 SDK in /Developer/SDKs/MacOSX10.6.sdk;
18 :     # this should work on Lion, if you had Xcode 4.2 installed.
19 :     #SDK = -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6
20 :     #
21 :     # On Mountain Lion, the earliest version is 10.7, which is to supported by the following line:
22 :     #
23 :     #SDK = -isysroot Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7
24 : jhr 1900
25 : jhr 3756 SDK = -mmacosx-version-min=10.6
26 :    
27 : jhr 4258 # the /usr/bin/as command does _not_ accept the -mmacosx-version-min
28 :     # command-line option prior to MacOS X 10.10 (Yosimite)
29 :     ifeq ($(AS_ACCEPTS_SDK),yes)
30 :     AS_SDK = $(SDK)
31 :     endif
32 :    
33 : jhr 1900 SHELL = /bin/sh
34 :    
35 :     MAKE = make
36 : jhr 4258 AS = /usr/bin/as -arch i386 $(AS_SDK)
37 : jhr 3749 CC = cc -m32 -std=c99
38 : jhr 3656 CFLAGS = -g -O2 -D_DARWIN_C_SOURCE $(SDK)
39 : jhr 3749 CPP = cc -x assembler-with-cpp -E -P -std=c99
40 : jhr 1900 XOBJS =
41 :     XLIBS = ../c-libs/dl/libunix-dynload.a
42 :     LD_LIBS = -ldl
43 :     XDEFS =
44 :     BASE_DEFS =
45 : jhr 3749 DEFS = $(XDEFS) $(BASE_DEFS) -DHOST_X86 -DTARGET_X86 -DOPSYS_UNIX -DOPSYS_DARWIN -DGNU_ASSEMBLER -DDLOPEN -DINDIRECT_CFUNC
46 : jhr 1900 TARGET = X86
47 :     VERSION = v-x86-darwin
48 :     RUNTIME = run.x86-darwin
49 :     RUNTIMEX = runx.x86-darwin
50 :    
51 :     all:
52 :     ($(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))
53 :     ($(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