source: release/1.7/source/lisp-kernel/freebsdx8664/Makefile @ 15099

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

Revert r15026.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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 = --64
23M4FLAGS = -DFREEBSD -DX86 -DX8664 -DHAVE_TLS
24CDEFINES = -DFREEBSD -D_REENTRANT -DX86 -DX8664 -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-freebsdx8664.h
31
32
33
34
35SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
36ASMOBJ = x86-asmutils64.o imports.o
37
38COBJ  = pmcl-kernel.o gc-common.o  x86-gc.o bits.o  x86-exceptions.o \
39        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
40
41DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
42KERNELOBJ= $(COBJ) x86-asmutils64.o  imports.o
43
44SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
45        x86-constants64.s
46
47CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
48        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
49        threads.h x86-constants64.h x86-exceptions.h $(PLATFORM_H)
50
51
52KSPOBJ = $(SPOBJ)
53all:    ../../fx86cl64
54
55
56OSLIBS = -lm -lthr
57
58.s.o:
59        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
60.c.o:
61        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
62
63LINKSCRIPTFILE = # ./elf_x86_64.x
64LINKSCRIPT =  # -T $(LINKSCRIPTFILE)
65
66../../fx86cl64: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(LINKSCRIPTFILE)
67        $(CC) -m64 $(CDEBUG)  -Wl,--export-dynamic  $(LINKSCRIPT)  -o $@  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
68
69
70$(SPOBJ): $(SPINC)
71$(ASMOBJ): $(SPINC)
72$(COBJ): $(CHEADERS)
73$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
74
75
76cclean:
77        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../fx86cl64
78
79clean:  cclean
80        $(RM) -f $(SPOBJ)
81
82strip:  ../../fx86cl64
83        strip -g ../../fx86cl64
Note: See TracBrowser for help on using the repository browser.