source: release/1.7/source/lisp-kernel/darwinx8632/Makefile @ 15099

Last change on this file since 15099 was 15099, checked in by rme, 8 years ago

Revert r15026.

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