source: release/1.6/source/lisp-kernel/darwinx8632/Makefile @ 14902

Last change on this file since 14902 was 14902, checked in by gb, 8 years ago

adapt darxinx86 Makefiles to xcode 4.0+

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