source: trunk/source/lisp-kernel/darwinppc64/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.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
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 = ld64
22
23### The -pagezero_size/-seg1addr args are an attempt to work around a
24### bug (#4057702) in ld64.
25
26### The -seg1addr and -pagezero_size arguments below are nonsense;
27### early versions of ld64 were/are broken.
28LDFLAGS = -macosx_version_min 10.5 -M -arch ppc64 -dynamic  -o $@ -e start -pagezero_size 0x1000 -seg1addr 0x1000 -sectalign __TEXT __text 0x1000
29AS = as
30M4 = gm4
31M4FLAGS = -DDARWIN -DPPC -DPPC64
32ASFLAGS = -arch ppc64
33CDEFINES = -DDARWIN -DPPC -DPPC64
34CDEBUG = -g
35COPT = -O2
36# Once in a while, -Wformat says something useful.  The odds are against that,
37# however.
38WFORMAT = -Wno-format
39CC=gcc-4.0
40
41.s.o:
42        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
43.c.o:
44        $(CC) -I./ -c $< -arch ppc64 $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) $(WFORMAT) -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -o $@
45
46SPOBJ = ppc-spjump.o ppc-spentry.o ppc-subprims.o
47ASMOBJ = ppc-asmutils.o imports.o
48
49COBJ  = pmcl-kernel.o gc-common.o ppc-gc.o bits.o  ppc-exceptions.o \
50        thread_manager.o lisp-debug.o image.o memory.o unix-calls.o
51
52DEBUGOBJ = lispdcmd.o plprint.o plsym.o plbt.o ppc_print.o
53KERNELOBJ= imports.o $(COBJ) ppc-asmutils.o
54
55SPINC = lisp.s m4macros.m4 ppc-constants.s ppc-macros.s errors.s ppc-uuo.s \
56        ppc-constants64.s
57
58CHEADERS = area.h bits.h ppc-constants.h lisp-errors.h gc.h lisp.h \
59        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
60        Threads.h lisptypes.h ppc-constants64.h ppc-exceptions.h
61
62# Subprims linked into the kernel ?
63# Yes:
64
65KSPOBJ= $(SPOBJ)
66all:    ../../dppccl64
67
68
69# No:
70
71# KSPOBJ=
72
73OSEARLYLIBS = -lcrt1.o
74OSLATELIBS = -lSystem -lmx
75
76OSLIBS = $(OSEARLYLIBS) $(OSMIDDLELIBS) $(OSLATELIBS)
77
78../../dppccl64:  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
79        $(LD)  $(LDFLAGS) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)   $(OSLIBS)
80
81
82$(SPOBJ): $(SPINC)
83$(ASMOBJ): $(SPINC)
84$(COBJ): $(CHEADERS)
85$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
86
87
88thread_manager.o: thread_manager.c
89
90cclean:
91        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../dppccl64
92
93# Some earlier versions of this Makefile built "subprims_r.o". 
94# (That file is now defunct.)
95clean:  cclean
96        $(RM) -f $(SPOBJ) $(KSPOBJ) subprims_r.o
97
98strip:  ../../dppccl64
99        strip -s retain ../../dppccl64
Note: See TracBrowser for help on using the repository browser.