/[cmucl]/src/lisp/GNUmakefile
ViewVC logotype

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.31 - (hide annotations)
Sat Dec 27 17:35:50 2008 UTC (5 years, 3 months ago) by rtoy
Branch: MAIN
CVS Tags: snapshot-2009-01
Changes since 1.30: +3 -3 lines
Apply patch from Stelian Ionescu on cmucl-imp, 2008/12/24 to allow
custom CFLAGS, CC, and LDFLAGS.  Slightly modified to move -m32 from
CC to RUNTIME.

Cleaned some other items for Linux.

lisp/Config.linux_gencgc:
o Define CC only if not already defined.
o Remove -m32 flag from CC and put it in RUNTIME.
o Incrementally add to RUNTIME, removing the LINKAGE, GENCGC, and SSE2
  variables.
o Add -m32 flag to OS_LINK_FLAGS

lisp/GNUmakefile:
o Define CC only if not already defined.  (Do this after loading
  Config).

motif/server/Config.x86:
o Allow custom LDFLAGS and CFLAGS when building the motif server.
1 rtoy 1.31 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.31 2008/12/27 17:35:50 rtoy Exp $
2 wlott 1.1
3     all: lisp.nm
4    
5 toy 1.19 DEPEND = $(CC) -MM -E
6 pmai 1.20 DEPEND_FLAGS =
7 wlott 1.1
8 gerd 1.22 -include internals.inc
9 wlott 1.1 include Config
10    
11 rtoy 1.31 CC ?= gcc
12    
13 ram 1.12 ifndef GC_SRC
14     GC_SRC = gc.c
15     endif
16    
17 hallgren 1.5 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
18 ram 1.12 vars.c parse.c interrupt.c search.c validate.c globals.c \
19 wlott 1.1 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
20 fgilham 1.26 runprog.c time.c exec-init.c \
21 ram 1.12 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
22 ram 1.10
23 wlott 1.11 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
24 wlott 1.1
25     ### Don't look in RCS for the files, because we might not want the latest.
26     %: RCS/%,v
27 pw 1.14
28 fgilham 1.24 lisp.nm: lisp lisp.a
29 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
30 toy 1.18 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
31 wlott 1.1 mv ,lisp.nm lisp.nm
32    
33 rtoy 1.29 version.o : version.c version
34 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
35 wlott 1.1 mv ,version version
36 ram 1.9 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
37 rtoy 1.29
38     lisp: ${OBJS} version.o
39 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
40 wlott 1.1 ${OBJS} version.o \
41     ${OS_LIBS} -lm
42     mv -f ,lisp lisp
43    
44 rtoy 1.25 # Create a library out of all the object files so we can build an
45     # executable. However, for Solaris, we need to remove exec-init.o
46     # because the linker will add the write symbols in.
47 fgilham 1.24 lisp.a: version.o ${OBJS}
48     ar crs lisp.a version.o ${OBJS}
49 rtoy 1.25 ifdef FEATURE_SOLARIS
50     ar d lisp.a exec-init.o
51     endif
52 fgilham 1.24
53 wlott 1.1 version:
54     echo 0 > version
55    
56 gerd 1.22 internals.h internals.inc:
57 wlott 1.1 @echo "You must run genesis to create internals.h!"
58     @false
59    
60     clean:
61 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
62 rtoy 1.30 echo 'Map file for lisp version 0' > lisp.nm
63 wlott 1.1
64 pmai 1.16 depend: Depends
65    
66     Depends: ${SRCS}
67 toy 1.21 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
68 wlott 1.1 mv ,depends Depends
69    
70 cshapiro 1.23 -include Depends

  ViewVC Help
Powered by ViewVC 1.1.5