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

Last change on this file since 10099 was 10099, checked in by rme, 11 years ago

Build directory for Darwin/x8632.

File size: 2.6 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 = -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
30
31.s.o:
32        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
33.c.o:
34        $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -o $@
35
36SPOBJ = x86-spjump32.o x86-spentry32.o x86-subprims32.o
37ASMOBJ = x86-asmutils32.o imports.o
38
39COBJ  = pmcl-kernel.o gc-common.o bits.o  \
40        thread_manager.o lisp-debug.o image.o memory.o x86-gc.o x86-exceptions.o
41
42DEBUGOBJ = lispdcmd.o plprint.o plsym.o x86_print.o xlbt.o
43KERNELOBJ= imports.o $(COBJ) x86-asmutils32.o
44
45SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s x86-constants32.s
46
47CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
48        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
49        Threads.h lisptypes.h x86-constants32.h x86-exceptions.h
50
51# Subprims linked into the kernel ?
52# Yes:
53
54KSPOBJ= $(SPOBJ)
55all:    ../../dx86cl
56
57
58# No:
59
60# KSPOBJ=
61
62OSEARLYLIBS = -lcrt1.o
63OSLATELIBS = -lSystem
64
65# is this needed?
66#OSMIDDLELIBS = -lSystemStubs
67
68OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
69
70../../dx86cl:    $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
71        $(LD)  $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)   $(OSLIBS)
72
73
74$(SPOBJ): $(SPINC)
75$(ASMOBJ): $(SPINC)
76$(COBJ): $(CHEADERS)
77$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
78
79
80
81thread_manager.o: thread_manager.c
82
83cclean:
84        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../dx86cl
85
86# Some earlier versions of this Makefile built "subprims_r.o". 
87# (That file is now defunct.)
88clean:  cclean
89        $(RM) -f $(SPOBJ) $(KSPOBJ) subprims_r.o
90
91# retain file not here at the moment
92strip:  ../../dx86cl
93        strip -s retain ../../dx86cl
94
Note: See TracBrowser for help on using the repository browser.