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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.32 - (show annotations)
Sun Jan 11 17:52:44 2009 UTC (5 years, 3 months ago) by rtoy
Branch: MAIN
Changes since 1.31: +2 -2 lines
Config.x86_common:
o Use += to append to variables instead of setting them.
o Add common OS_SRC files.
o Move rule for building e_rem_pio2.c to here.  Add CPPFLAGS too.

Config.x86_common:
o Remove common files from OS_SRC.
o Remove rele for e_rem_pio2.c

Config.x86_darwin:
o Update to use Config.x86_common.

GNUmakefile:
o Use CPPFLAGS when building version.o
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.32 2009/01/11 17:52:44 rtoy Exp $
2
3 all: lisp.nm
4
5 DEPEND = $(CC) -MM -E
6 DEPEND_FLAGS =
7
8 -include internals.inc
9 include Config
10
11 CC ?= gcc
12
13 ifndef GC_SRC
14 GC_SRC = gc.c
15 endif
16
17 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
18 vars.c parse.c interrupt.c search.c validate.c globals.c \
19 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
20 runprog.c time.c exec-init.c \
21 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
22
23 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
24
25 ### Don't look in RCS for the files, because we might not want the latest.
26 %: RCS/%,v
27
28 lisp.nm: lisp lisp.a
29 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
30 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
31 mv ,lisp.nm lisp.nm
32
33 version.o : version.c version
34 echo '1 + ' `cat version` | bc > ,version
35 mv ,version version
36 $(CC) ${CFLAGS} $(CPPFLAGS) -DVERSION=`cat version` -c $<
37
38 lisp: ${OBJS} version.o
39 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
40 ${OBJS} version.o \
41 ${OS_LIBS} -lm
42 mv -f ,lisp lisp
43
44 # 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 lisp.a: version.o ${OBJS}
48 ar crs lisp.a version.o ${OBJS}
49 ifdef FEATURE_SOLARIS
50 ar d lisp.a exec-init.o
51 endif
52
53 version:
54 echo 0 > version
55
56 internals.h internals.inc:
57 @echo "You must run genesis to create internals.h!"
58 @false
59
60 clean:
61 rm -f Depends *.o lisp lisp.nm core
62 echo 'Map file for lisp version 0' > lisp.nm
63
64 depend: Depends
65
66 Depends: ${SRCS}
67 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
68 mv ,depends Depends
69
70 -include Depends

  ViewVC Help
Powered by ViewVC 1.1.5