/[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.12 by cshapiro, Wed Feb 27 23:30:46 2008 UTC revision 1.12.2.2 by rtoy, Mon Mar 16 21:10:56 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)  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
# Line 37  OS_SRC = ppc-darwin-dlshim.c os-common.c Line 48  OS_SRC = ppc-darwin-dlshim.c os-common.c
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

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.2.2

  ViewVC Help
Powered by ViewVC 1.1.5