source: release/1.6/source/lisp-kernel/solarisx64/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: 2.6 KB
Line 
1#
2#   Copyright (C) 2006 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
18VPATH = ..
19RM = /bin/rm
20AS = /usr/sfw/bin/gas
21# In earlier OpenSolaris releases, the bundled GNU m4 didn't work to
22# build the lisp kernel.  In the 2009.06 release, /usr/bin/gm4 seems
23# to be adequate, but if m4 gives you any trouble, just download
24# the GNU m4 source from somewhere and use that.
25M4 = /usr/bin/gm4
26CC = /usr/sfw/bin/gcc
27ASFLAGS = --64 --divide
28M4FLAGS = -DSOLARIS -DX86 -DX8664
29CDEFINES = -DSOLARIS -D_REENTRANT -DX86 -DX8664 -D__EXTENSIONS__ -DHAVE_TLS -DSVN_REVISION=$(SVN_REVISION) #-DDISABLE_EGC
30CDEBUG = -g
31COPT = #-O2
32# Once in a while, -Wformat says something useful.  The odds are against that,
33# however.
34WFORMAT = -Wno-format
35PLATFORM_H = platform-solarisx64.h
36
37
38
39.s.o:
40        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
41.c.o:
42        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
43
44SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
45ASMOBJ = x86-asmutils64.o imports.o
46
47COBJ  = pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o \
48        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
49
50DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
51KERNELOBJ= $(COBJ) x86-asmutils64.o  imports.o
52
53SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
54        x86-constants64.s
55
56CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
57        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
58        threads.h x86-constants64.h x86-exceptions.h lisptypes.h \
59        $(PLATFORM_H) constants.h os-solaris.h
60
61
62KSPOBJ = $(SPOBJ)
63all:    ../../sx86cl64
64
65
66OSLIBS = -ldl -lm -lpthread -lsocket -lnsl -lrt
67
68
69../../sx86cl64: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
70        $(CC)  -m64 $(CDEBUG) -o $@  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
71
72
73$(SPOBJ): $(SPINC)
74$(ASMOBJ): $(SPINC)
75$(COBJ): $(CHEADERS)
76$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
77
78
79cclean:
80        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../sx86cl64
81
82clean:  cclean
83        $(RM) -f $(SPOBJ)
84
85strip:  ../../sx86cl64
86        strip -g ../../sx86cl64
Note: See TracBrowser for help on using the repository browser.