source: release/1.6/source/lisp-kernel/freebsdx8632/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.3 KB
Line 
1#
2#   Copyright (C) 2005-2006 Clozure Associates
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 = as
21M4 = m4
22ASFLAGS = --32
23M4FLAGS = -DFREEBSD -DX86 -DX8632 -DHAVE_TLS
24CDEFINES = -DFREEBSD -D_REENTRANT -DX86 -DX8632 -D_GNU_SOURCE -DHAVE_TLS -DSVN_REVISION=$(SVN_REVISION)
25CDEBUG = -g
26COPT = -O2
27# Once in a while, -Wformat says something useful.  The odds are against that,
28# however.
29WFORMAT = -Wno-format
30PLATFORM_H = platform-freebsdx8632.h
31
32
33
34SPOBJ = pad.o x86-spjump32.o x86-spentry32.o x86-subprims32.o
35ASMOBJ = x86-asmutils32.o imports.o
36
37COBJ  = pmcl-kernel.o gc-common.o  x86-gc.o bits.o  x86-exceptions.o \
38        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
39
40DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
41KERNELOBJ= $(COBJ) x86-asmutils32.o  imports.o
42
43SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
44        x86-constants32.s
45
46CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
47        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
48        threads.h x86-constants32.h x86-exceptions.h $(PLATFORM_H)
49
50.if $(MACHINE) == "amd64"
51CROSS = -B/usr/lib32
52.endif
53
54KSPOBJ = $(SPOBJ)
55all:    ../../fx86cl
56
57
58OSLIBS = -lm -lthr $(CROSS)
59
60.s.o:
61        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
62.c.o:
63        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
64
65LINKSCRIPTFILE = #
66LINKSCRIPT =  # -T $(LINKSCRIPTFILE)
67
68../../fx86cl:   $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(LINKSCRIPTFILE)
69        $(CC) -m32 $(CDEBUG)  -Wl,--export-dynamic  $(LINKSCRIPT)  -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) ../../fx86cl
80
81clean:  cclean
82        $(RM) -f $(SPOBJ)
83
84strip:  ../../fx86cl
85        strip -g ../../fx86cl
Note: See TracBrowser for help on using the repository browser.