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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations)
Mon Nov 6 07:44:51 2006 UTC (7 years, 5 months ago) by cshapiro
Branch: MAIN
CVS Tags: snapshot-2007-05, snapshot-2006-12, snapshot-2007-01, snapshot-2007-02, snapshot-2007-03, snapshot-2007-04, snapshot-2007-07, snapshot-2007-06
Changes since 1.22: +2 -2 lines
Suppress the message displayed when the Depends include does not
exist.  This situation is normal.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.23 2006/11/06 07:44:51 cshapiro Exp $
2
3 all: lisp.nm
4
5 CC = gcc
6
7 DEPEND = $(CC) -MM -E
8 DEPEND_FLAGS =
9
10 -include internals.inc
11 include Config
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 socket.c runprog.c time.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
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 lisp: version.c ${OBJS} version
34 echo '1 + ' `cat version` | bc > ,version
35 mv ,version version
36 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
37 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
38 ${OBJS} version.o \
39 ${OS_LIBS} -lm
40 mv -f ,lisp lisp
41
42 version:
43 echo 0 > version
44
45 ### Socket.c needs to be compiled with UNIXCONN defined.
46 socket.o: socket.c
47 $(COMPILE.c) -DUNIXCONN $<
48
49 internals.h internals.inc:
50 @echo "You must run genesis to create internals.h!"
51 @false
52
53 clean:
54 rm -f Depends *.o lisp lisp.nm core
55
56 depend: Depends
57
58 Depends: ${SRCS}
59 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
60 mv ,depends Depends
61
62 -include Depends

  ViewVC Help
Powered by ViewVC 1.1.5