source: trunk/source/lisp-kernel/linuxppc64/Makefile @ 14197

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

Rename Threads.h to threads.h (with no capital letter).

  • 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
16
17VPATH = ../
18RM = /bin/rm
19# Versions of GNU as >= 2.9.1 all seem to work
20# AS = gas-2.9.1
21AS = as
22M4 = m4
23ASFLAGS = -mregnames -mppc64 -a64 -maltivec
24M4FLAGS = -DLINUX -DPPC -DPPC64
25CDEFINES = -DLINUX -D_REENTRANT -DPPC -DPPC64 -D_GNU_SOURCE
26CDEBUG = -g
27COPT = -O2
28# word size issues are a little more relevant on a 64-bit platform
29# than elsewhere, but most gcc format warnings are still nonsense.
30WFORMAT = -Wno-format
31PLATFORM_H = platform-linuxppc64.h
32
33# If the linker supports a "--hash-style=" option, use traditional
34# Sysv hash tables.  (If it doesn't support that option, assume
35# that traditional hash tables will be used by default.)
36ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
37ifeq ($(ld_has_hash_style),)
38HASH_STYLE=
39else
40HASH_STYLE="-Wl,--hash-style=sysv"
41endif
42
43
44.s.o:
45        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
46.c.o:
47        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
48
49SPOBJ = pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
50ASMOBJ = ppc-asmutils.o imports.o
51
52COBJ  = pmcl-kernel.o gc-common.o ppc-gc.o bits.o  ppc-exceptions.o \
53        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
54
55DEBUGOBJ = lispdcmd.o plprint.o plsym.o plbt.o ppc_print.o
56KERNELOBJ= $(COBJ) ppc-asmutils.o  imports.o
57
58SPINC = lisp.s m4macros.m4 ppc-constants.s ppc-macros.s errors.s ppc-uuo.s 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 ppc-constants64.h ppc-exceptions.h $(PLATFORM_H) \
63        constants.h os-linux.h
64
65# Subprims linked into the kernel ?
66# Yes:
67
68KSPOBJ = $(SPOBJ)
69all:    ../../ppccl64
70
71
72# No:
73
74# KSPOBJ=
75# all:  ../../ppccl64 ../../subprims.so
76
77OSLIBS = -ldl -lm -lpthread
78
79
80../../ppccl64:  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
81        $(CC) -m64 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE)  -o $@ -T ./elf64ppc.x $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
82
83
84$(SPOBJ): $(SPINC)
85$(ASMOBJ): $(SPINC)
86$(COBJ): $(CHEADERS)
87$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
88
89
90cclean:
91        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../ppccl64
92
93clean:  cclean
94        $(RM) -f $(SPOBJ)
95
96strip:  ../../ppccl64
97        strip -g ../../ppccl64
Note: See TracBrowser for help on using the repository browser.