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

Diff of /src/lisp/Config.ppc_darwin

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5.2.2 by rtoy, Mon Dec 19 01:10:11 2005 UTC revision 1.16 by rtoy, Thu Jun 11 16:04:01 2009 UTC
# Line 1  Line 1 
1    # -*- Mode: makefile -*-
2  PATH1 = ../../src/lisp  PATH1 = ../../src/lisp
3  vpath %.h $(PATH1)  vpath %.h $(PATH1)
4  vpath %.c $(PATH1)  vpath %.c $(PATH1)
5  vpath %.S $(PATH1)  vpath %.S $(PATH1)
6  CPPFLAGS = -I. -I$(PATH1) -I/usr/X11R6/include  CPPFLAGS = -I. -I$(PATH1)
7    
8  # For Mac OS X 10.2, gcc3 is appropriate.  For 10.4, gcc (gcc 4.0) is ok.  But  # 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 '##'  # 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  # 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  # think gcc 4 is wrong.  However, to work around this, we use /**/ to
12  # concatenate tokens which reguires the -traditional flag.  # concatenate tokens which reguires the -traditional flag.
13    
14    # Build for OSX 10.2.8 or later.  (Is this what we want?)
15    #OSX_VERSION=-mmacosx-version-min=10.2
16  CC = gcc  CC = gcc
17  LD = ld  LD = ld
18  NM = $(PATH1)/darwin-nm  NM = $(PATH1)/darwin-nm
19  CPP = cpp -no-cpp-precomp  CPP = cpp -no-cpp-precomp
20  DEPEND = $(CC) -MM  DEPEND = $(CC) -MM
21    
22  ifdef FEATURE_LINKAGE_TABLE  ifdef FEATURE_LINKAGE_TABLE
23  LINKAGE = -DLINKAGE_TABLE  LINKAGE = -DLINKAGE_TABLE
24  endif  endif
# Line 23  GENCGC = -DGENCGC Line 29  GENCGC = -DGENCGC
29  GC_SRC = gencgc.c  GC_SRC = gencgc.c
30  endif  endif
31    
32  CFLAGS = -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)  # Enable support for Unicode
33  ASFLAGS = -traditional -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)  ifdef FEATURE_UNICODE
34    UNICODE = -DUNICODE
35    endif
36    
37    CFLAGS = $(OSX_VERSION) -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC) $(UNICODE)
38    ASFLAGS = $(OSX_VERSION) -traditional -g -O3 -no-cpp-precomp -DDARWIN -Dppc $(LINKAGE) $(GENCGC)
39    
40  UNDEFSYMPATTERN = -Xlinker -u -Xlinker &  UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
41  ASSEM_SRC = ppc-assem.S linux-stubs.S  ASSEM_SRC = ppc-assem.S linux-stubs.S
42  ARCH_SRC = ppc-arch.c  ARCH_SRC = ppc-arch.c
43  OS_SRC = ppc-darwin-dlshim.c os-common.c Darwin-os.c  OS_SRC = ppc-darwin-dlshim.c os-common.c Darwin-os.c e_rem_pio2.c k_rem_pio2.c
44    
45  # I (rtoy) am not exactly sure what these values are, but it seems  # I (rtoy) am not exactly sure what these values are, but it seems
46  # that the segaddr for CMUCLRO should be the READ_ONLY_SPACE_START.  # that the segaddr for CMUCLRO should be the READ_ONLY_SPACE_START.
47  # The seg1addr should be somewhere above our spaces.  This is where  # The seg1addr should be somewhere above our spaces.  This is where
48  # the C runtime code goes, I think.  # the C runtime code goes, I think.
49    
50  OS_LINK_FLAGS = -g -dynamic -Wl,-sectcreate,CMUCLRO,core,/dev/null -Wl,-segaddr,CMUCLRO,0x01000000 -Wl,-seg1addr,0x1a000000  # OS_LINK_FLAGS = -g -dynamic -Wl,-sectcreate,CMUCLRO,core,/dev/null -Wl,-segaddr,CMUCLRO,0x01000000 -Wl,-seg1addr,0x1a000000
51    OS_LINK_FLAGS = $(OSX_VERSION)
52  OS_LIBS = -lSystem -lc -lm  OS_LIBS = -lSystem -lc -lm
53  all: adjustlisp  #all: adjustlisp
54  adjustlisp: lisp darwin-lispadjuster  #adjustlisp: lisp darwin-lispadjuster
55          ./darwin-lispadjuster lisp  #       ./darwin-lispadjuster lisp
56  darwin-lispadjuster: darwin-lispadjuster.c  #adjustlisp: lisp darwin-lispadjuster
57    #       true
58    
59    #darwin-lispadjuster: darwin-lispadjuster.c
60    
61    # This has aliasing problems, so turn off aliasing.
62    e_rem_pio2.o : e_rem_pio2.c
63            $(CC) -c -fno-strict-aliasing -ffloat-store $(CFLAGS)  $<

Legend:
Removed from v.1.5.2.2  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.5