source: release/1.6/source/lisp-kernel/solarisx86/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.

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 = --32 --divide
28M4FLAGS = -DSOLARIS -DX86 -DX8632
29CDEFINES = -DSOLARIS -D_REENTRANT -DX86 -DX8632 -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-solarisx86.h
36
37
38.s.o:
39        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
40.c.o:
41        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
42
43SPOBJ = pad.o x86-spjump32.o x86-spentry32.o x86-subprims32.o
44ASMOBJ = x86-asmutils32.o imports.o
45
46COBJ  = pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o \
47        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
48
49DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
50KERNELOBJ= $(COBJ) x86-asmutils32.o  imports.o
51
52SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
53        x86-constants32.s
54
55CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
56        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
57        threads.h x86-constants32.h x86-exceptions.h lisptypes.h \
58        $(PLATFORM_H) constants.h os-solaris.h
59
60
61KSPOBJ = $(SPOBJ)
62all:    ../../sx86cl
63
64
65OSLIBS = -ldl -lm -lpthread -lsocket -lnsl -lrt
66
67
68../../sx86cl:   $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile
69        $(CC)  -m32 $(CDEBUG) -o $@  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
70
71
72$(SPOBJ): $(SPINC)
73$(ASMOBJ): $(SPINC)
74$(COBJ): $(CHEADERS)
75$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
76
77
78cclean:
79        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../sx86cl
80
81clean:  cclean
82        $(RM) -f $(SPOBJ)
83
84strip:  ../../sx86cl
85        strip -g ../../sx86cl
Note: See TracBrowser for help on using the repository browser.