source: trunk/source/lisp-kernel/darwinppc/Makefile @ 13607

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

Define, -include PLATFORM_H.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1#
2#   Copyright (C) 1994-2001 Digitool, Inc
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
16MDYNAMIC_NO_PIC = $(shell ($(CC) --help -v 2>&1 | grep -q -e "-mdynamic-no-pic") && /bin/echo "-mdynamic-no-pic")
17
18VPATH = ..
19RM = /bin/rm
20LD = ld
21LDFLAGS = -arch ppc -dynamic  -o $@ -e start -pagezero_size 0x1000 -seg1addr 0x00001000 -sectalign __TEXT __text 0x1000
22AS = as
23M4 = gm4
24M4FLAGS = -DDARWIN -DPPC
25ASFLAGS = -arch ppc -force_cpusubtype_ALL
26CDEFINES = -DDARWIN -DPPC  #-DDEBUG -DGC_INTEGRITY_CHECKING
27CDEBUG = -g
28COPT = -O2
29# Once in a while, -Wformat says something useful.  The odds are against that,
30# however.
31WFORMAT = -Wno-format
32CC=gcc-4.0
33PLATFORM_H = platform-darwinppc.h
34
35.s.o:
36        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
37.c.o:
38        $(CC) -include ../$(PLATFORM_H) -c -arch ppc $< $(CDEFINES) $(CDEBUG) $(COPT) -Wno-deprecated-declarations $(WFORMAT) -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk  $(MDYNAMIC_NO_PIC) -o $@
39
40SPOBJ = ppc-spjump.o ppc-spentry.o  ppc-subprims.o
41ASMOBJ = ppc-asmutils.o imports.o
42
43COBJ  = pmcl-kernel.o gc-common.o ppc-gc.o bits.o  ppc-exceptions.o \
44        thread_manager.o lisp-debug.o image.o memory.o unix-calls.o
45
46DEBUGOBJ = lispdcmd.o plprint.o plsym.o plbt.o ppc_print.o
47KERNELOBJ= imports.o $(COBJ) ppc-asmutils.o
48
49SPINC = lisp.s m4macros.m4 ppc-constants.s ppc-macros.s errors.s ppc-uuo.s ppc-constants32.s
50
51CHEADERS = area.h bits.h ppc-constants.h lisp-errors.h gc.h lisp.h \
52        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
53        Threads.h lisptypes.h ppc-constants32.h ppc-exceptions.h $(PLATFORM_H)
54
55# Subprims linked into the kernel ?
56# Yes:
57
58KSPOBJ= $(SPOBJ)
59all:    ../../dppccl
60
61
62# No:
63
64# KSPOBJ=
65
66OSEARLYLIBS = -lcrt1.o
67OSLATELIBS = -lSystem
68
69OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
70
71../../dppccl:    $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
72        $(LD)  $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)   $(OSLIBS)
73
74
75$(SPOBJ): $(SPINC)
76$(ASMOBJ): $(SPINC)
77$(COBJ): $(CHEADERS)
78$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
79
80
81
82thread_manager.o: thread_manager.c
83
84cclean:
85        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../dppccl
86
87# Some earlier versions of this Makefile built "subprims_r.o". 
88# (That file is now defunct.)
89clean:  cclean
90        $(RM) -f $(SPOBJ) $(KSPOBJ) subprims_r.o
91
92strip:  ../../dppccl
93        strip -s retain ../../dppccl
Note: See TracBrowser for help on using the repository browser.