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

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

Use "-I./" in .c.o rule in all Makefiles.
Include "ccl-platform.h" in lisp.h.
(These files are still empty; the idea is to try to replace long sequences
of conditional definitions in other headers/sources with platform-specific
definitions in "ccl-platform.h", which in turn may make it a little easier
to define new platforms.

  • 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
33
34.s.o:
35        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
36.c.o:
37        $(CC) -I./ -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 $@
38
39SPOBJ = ppc-spjump.o ppc-spentry.o  ppc-subprims.o
40ASMOBJ = ppc-asmutils.o imports.o
41
42COBJ  = pmcl-kernel.o gc-common.o ppc-gc.o bits.o  ppc-exceptions.o \
43        thread_manager.o lisp-debug.o image.o memory.o unix-calls.o
44
45DEBUGOBJ = lispdcmd.o plprint.o plsym.o plbt.o ppc_print.o
46KERNELOBJ= imports.o $(COBJ) ppc-asmutils.o
47
48SPINC = lisp.s m4macros.m4 ppc-constants.s ppc-macros.s errors.s ppc-uuo.s ppc-constants32.s
49
50CHEADERS = area.h bits.h ppc-constants.h lisp-errors.h gc.h lisp.h \
51        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
52        Threads.h lisptypes.h ppc-constants32.h ppc-exceptions.h
53
54# Subprims linked into the kernel ?
55# Yes:
56
57KSPOBJ= $(SPOBJ)
58all:    ../../dppccl
59
60
61# No:
62
63# KSPOBJ=
64
65OSEARLYLIBS = -lcrt1.o
66OSLATELIBS = -lSystem
67
68OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
69
70../../dppccl:    $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
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) ../../dppccl
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
91strip:  ../../dppccl
92        strip -s retain ../../dppccl
Note: See TracBrowser for help on using the repository browser.