source: trunk/source/lisp-kernel/darwinx8632/Makefile @ 11912

Last change on this file since 11912 was 11912, checked in by gb, 10 years ago

Insist on gcc-4.0, since later versions don't support Tiger very well.
In the darwinx8664 Makefile, refer to the linker as 'ld', since it
might make too much sense to be able to continue to refer to it as 'ld64'.

File size: 2.7 KB
Line 
1#
2#   Copyright (C) 2005 Clozure Associates and contributors.
3#   This file is part of OpenMCL. 
4#
5#   OpenMCL is licensed under the terms of the Lisp Lesser GNU Public
6#   License , known as the LLGPL and distributed with OpenMCL as the
7#   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
8#   which is distributed with OpenMCL as the file "LGPL".  Where these
9#   conflict, the preamble takes precedence. 
10#
11#   OpenMCL is referenced in the preamble as the "LIBRARY."
12#
13#   The LLGPL is also available online at
14#   http://opensource.franz.com/preamble.html
15
16
17MDYNAMIC_NO_PIC = $(shell ($(CC) --help -v 2>&1 | grep -q -e "-mdynamic-no-pic") && /bin/echo "-mdynamic-no-pic")
18
19VPATH = ..
20RM = /bin/rm
21LD = ld
22LDFLAGS =  -macosx_version_min 10.4 -arch i386 -dynamic  -o $@ -e start -pagezero_size 0x11000 -seg1addr 0x00011000 -sectalign __TEXT __text 0x1000
23AS = as
24M4 = gm4
25M4FLAGS = -DDARWIN -DX86 -DX8632
26ASFLAGS = -arch i386 -g
27CDEFINES = -DDARWIN -DX86 -DX8632 #-DGC_INTEGRITY_CHECKING -DFORCE_DWS_MARK -DDISABLE_EGC -DDEBUG_MACH_EXCEPTIONS
28CDEBUG = -g
29COPT = #-O2
30CC=gcc-4.0
31
32.s.o:
33        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
34.c.o:
35        $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
36
37SPOBJ = x86-spjump32.o x86-spentry32.o x86-subprims32.o
38ASMOBJ = x86-asmutils32.o imports.o
39
40COBJ  = pmcl-kernel.o gc-common.o bits.o  \
41        thread_manager.o lisp-debug.o image.o memory.o x86-gc.o \
42        x86-exceptions.o unix-calls.o
43
44DEBUGOBJ = lispdcmd.o plprint.o plsym.o x86_print.o xlbt.o
45KERNELOBJ= imports.o $(COBJ) x86-asmutils32.o
46
47SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s x86-constants32.s
48
49CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
50        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
51        Threads.h lisptypes.h x86-constants32.h x86-exceptions.h
52
53# Subprims linked into the kernel ?
54# Yes:
55
56KSPOBJ= $(SPOBJ)
57all:    ../../dx86cl
58
59
60# No:
61
62# KSPOBJ=
63
64OSEARLYLIBS = -lcrt1.o
65OSLATELIBS = -lSystem
66
67# is this needed?
68#OSMIDDLELIBS = -lSystemStubs
69
70OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
71
72../../dx86cl:    $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
73        $(LD)  $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)   $(OSLIBS)
74
75
76$(SPOBJ): $(SPINC)
77$(ASMOBJ): $(SPINC)
78$(COBJ): $(CHEADERS)
79$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
80
81
82
83thread_manager.o: thread_manager.c
84
85cclean:
86        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../dx86cl
87
88# Some earlier versions of this Makefile built "subprims_r.o". 
89# (That file is now defunct.)
90clean:  cclean
91        $(RM) -f $(SPOBJ) $(KSPOBJ) subprims_r.o
92
93# retain file not here at the moment
94strip:  ../../dx86cl
95        strip -s retain ../../dx86cl
96
Note: See TracBrowser for help on using the repository browser.