source: release/1.6/source/lisp-kernel/darwinppc64/Makefile @ 14393

Last change on this file since 14393 was 14393, checked in by rme, 9 years ago

Merge makefile changes involving SVN_REVISION from trunk.

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