source: branches/working-0711/ccl/lisp-kernel/freebsdx8664/Makefile @ 7645

Last change on this file since 7645 was 7645, checked in by gb, 12 years ago

gc-common.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1#
2#   Copyright (C) 2005-2006 Clozure Associates
3#   This file is part of OpenMCL. 
4#
5#   OpenMCL is licensed under the terms of the Lisp Lesser GNU Public
6#   License , known as the LLGPL and distributed with OpenMCL as the
7#   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
8#   which is distributed with OpenMCL as the file "LGPL".  Where these
9#   conflict, the preamble takes precedence. 
10#
11#   OpenMCL 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
19AS = as
20M4 = m4
21ASFLAGS = --64
22M4FLAGS = -DFREEBSD -DX86 -DX8664 -DHAVE_TLS
23CDEFINES = -DFREEBSD -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS
24CDEBUG = -g
25COPT = #-O2
26
27
28
29
30SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
31ASMOBJ = x86-asmutils64.o imports.o
32
33COBJ  = pmcl-kernel.o gc-common.o  x86-gc.o bits.o  x86-exceptions.o \
34        image.o thread_manager.o lisp-debug.o memory.o
35
36DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
37KERNELOBJ= $(COBJ) x86-asmutils64.o  imports.o
38
39SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
40        x86-constants64.s
41
42CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
43        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
44        Threads.h x86-constants64.h x86-exceptions.h
45
46
47KSPOBJ = $(SPOBJ)
48all:    ../../fx86cl64
49
50
51OSLIBS = -lm -lthr
52
53.s.o:
54        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
55.c.o:
56        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m64 -o $@
57
58LINKSCRIPTFILE = # ./elf_x86_64.x
59LINKSCRIPT =  # -T $(LINKSCRIPTFILE)
60
61../../fx86cl64: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(LINKSCRIPTFILE)
62        $(CC) -m64 $(CDEBUG)  -Wl,--export-dynamic  $(LINKSCRIPT)  -o $@  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
63
64
65$(SPOBJ): $(SPINC)
66$(ASMOBJ): $(SPINC)
67$(COBJ): $(CHEADERS)
68$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
69
70
71cclean:
72        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../fx86cl64
73
74clean:  cclean
75        $(RM) -f $(SPOBJ)
76
77strip:  ../../fx86cl64
78        strip -g ../../fx86cl64
Note: See TracBrowser for help on using the repository browser.