/[cmucl]/src/lisp/Config.ppc_darwin
ViewVC logotype

Contents of /src/lisp/Config.ppc_darwin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations)
Mon Dec 29 14:44:51 2008 UTC (5 years, 3 months ago) by rtoy
Branch: MAIN
CVS Tags: release-19f-pre1, release-19f-base, RELEASE_19f, snapshot-2009-02, snapshot-2009-01
Branch point for: RELEASE-19F-BRANCH
Changes since 1.13: +5 -3 lines
o Clean up min OSX version stuff.
o 10.2.8 is not recognized as a valid min version.  Use 10.2.
1 rtoy 1.13 # -*- Mode: makefile -*-
2 pmai 1.1 PATH1 = ../../src/lisp
3     vpath %.h $(PATH1)
4     vpath %.c $(PATH1)
5     vpath %.S $(PATH1)
6 cshapiro 1.12 CPPFLAGS = -I. -I$(PATH1)
7 rtoy 1.13
8 rtoy 1.6 # For Mac OS X 10.2, gcc3 is appropriate. For 10.4, gcc (gcc 4.0) is ok. But
9     # this means -traditional is needed because gcc 4 seems to handle '##'
10     # differently from gcc-3.3. I (rtoy) don't know which is right, but I
11     # think gcc 4 is wrong. However, to work around this, we use /**/ to
12     # concatenate tokens which reguires the -traditional flag.
13 rtoy 1.13
14     # Build for OSX 10.2.8 or later. (Is this what we want?)
15 rtoy 1.14 OSX_VERSION=-mmacosx-version-min=10.2
16     CC = gcc
17 pmai 1.1 LD = ld
18 rtoy 1.2 NM = $(PATH1)/darwin-nm
19 pmai 1.1 CPP = cpp -no-cpp-precomp
20     DEPEND = $(CC) -MM
21 rtoy 1.5 ifdef FEATURE_LINKAGE_TABLE
22     LINKAGE = -DLINKAGE_TABLE
23     endif
24    
25 rtoy 1.7 # Enable support for generational GC
26     ifdef FEATURE_GENCGC
27     GENCGC = -DGENCGC
28     GC_SRC = gencgc.c
29     endif
30    
31 rtoy 1.14 CFLAGS = $(OSX_VERSION) -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)
32     ASFLAGS = $(OSX_VERSION) -traditional -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)
33 rtoy 1.5
34 pmai 1.1 UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
35     ASSEM_SRC = ppc-assem.S linux-stubs.S
36     ARCH_SRC = ppc-arch.c
37 rtoy 1.8 OS_SRC = ppc-darwin-dlshim.c os-common.c Darwin-os.c e_rem_pio2.c k_rem_pio2.c
38 rtoy 1.3
39     # I (rtoy) am not exactly sure what these values are, but it seems
40     # that the segaddr for CMUCLRO should be the READ_ONLY_SPACE_START.
41     # The seg1addr should be somewhere above our spaces. This is where
42     # the C runtime code goes, I think.
43    
44 rtoy 1.9 # OS_LINK_FLAGS = -g -dynamic -Wl,-sectcreate,CMUCLRO,core,/dev/null -Wl,-segaddr,CMUCLRO,0x01000000 -Wl,-seg1addr,0x1a000000
45 rtoy 1.14 OS_LINK_FLAGS = $(OSX_VERSION)
46 pmai 1.1 OS_LIBS = -lSystem -lc -lm
47 rtoy 1.10 #all: adjustlisp
48 rtoy 1.9 #adjustlisp: lisp darwin-lispadjuster
49     # ./darwin-lispadjuster lisp
50 rtoy 1.10 #adjustlisp: lisp darwin-lispadjuster
51     # true
52 rtoy 1.9
53 rtoy 1.10 #darwin-lispadjuster: darwin-lispadjuster.c
54 rtoy 1.11
55     # This has aliasing problems, so turn off aliasing.
56     e_rem_pio2.o : e_rem_pio2.c
57     $(CC) -c -fno-strict-aliasing -ffloat-store $(CFLAGS) $<

  ViewVC Help
Powered by ViewVC 1.1.5