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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations)
Thu Dec 6 22:15:34 2001 UTC (12 years, 4 months ago) by pmai
Branch: MAIN
CVS Tags: PRE_LINKAGE_TABLE
Changes since 1.15: +4 -4 lines
Let GNU make handle the generation of Depends automagically.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.16 2001/12/06 22:15:34 pmai Exp $
2
3 all: lisp.nm
4
5 CC = gcc
6
7 DEPEND_FLAGS =
8
9 include Config
10
11 ifndef GC_SRC
12 GC_SRC = gc.c
13 endif
14
15 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
16 vars.c parse.c interrupt.c search.c validate.c globals.c \
17 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
18 socket.c runprog.c time.c \
19 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
20
21 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
22
23 ### Don't look in RCS for the files, because we might not want the latest.
24 %: RCS/%,v
25
26 ### Special target used to make a lisp.nm file for genesis.
27 ### Use when internals.h does not yet exist.
28 ### This is the same 'lisp.nm' but not depending on an existing build.
29 initial-map: version
30 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
31 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
32 mv ,lisp.nm lisp.nm
33
34 lisp.nm: lisp
35 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
36 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
37 mv ,lisp.nm lisp.nm
38
39 lisp: version.c ${OBJS} version
40 echo '1 + ' `cat version` | bc > ,version
41 mv ,version version
42 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
43 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
44 ${OBJS} version.o \
45 ${OS_LIBS} -lm
46 mv -f ,lisp lisp
47
48 version:
49 echo 0 > version
50
51 ### Socket.c needs to be compiled with UNIXCONN defined.
52 socket.o: socket.c
53 $(COMPILE.c) -DUNIXCONN $<
54
55 internals.h:
56 @echo "You must run genesis to create internals.h!"
57 @false
58
59 clean:
60 rm -f Depends *.o lisp lisp.nm core
61
62 depend: Depends
63
64 Depends: ${SRCS}
65 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
66 mv ,depends Depends
67
68 include Depends

  ViewVC Help
Powered by ViewVC 1.1.5