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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.21 - (show annotations)
Fri May 30 02:46:53 2003 UTC (10 years, 10 months ago) by toy
Branch: MAIN
CVS Tags: dynamic-extent-base, sparc_gencgc
Branch point for: sparc_gencgc_branch, dynamic-extent
Changes since 1.20: +2 -2 lines
When building dependencies, use all source files, not just the ones
that are out-of-date with respect to Depends.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.21 2003/05/30 02:46:53 toy Exp $
2
3 all: lisp.nm
4
5 CC = gcc
6
7 DEPEND = $(CC) -MM -E
8 DEPEND_FLAGS =
9
10 include Config
11
12 ifndef GC_SRC
13 GC_SRC = gc.c
14 endif
15
16 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
17 vars.c parse.c interrupt.c search.c validate.c globals.c \
18 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
19 socket.c runprog.c time.c \
20 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
21
22 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
23
24 ### Don't look in RCS for the files, because we might not want the latest.
25 %: RCS/%,v
26
27 lisp.nm: lisp
28 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
29 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
30 mv ,lisp.nm lisp.nm
31
32 lisp: version.c ${OBJS} version
33 echo '1 + ' `cat version` | bc > ,version
34 mv ,version version
35 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
36 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
37 ${OBJS} version.o \
38 ${OS_LIBS} -lm
39 mv -f ,lisp lisp
40
41 version:
42 echo 0 > version
43
44 ### Socket.c needs to be compiled with UNIXCONN defined.
45 socket.o: socket.c
46 $(COMPILE.c) -DUNIXCONN $<
47
48 internals.h:
49 @echo "You must run genesis to create internals.h!"
50 @false
51
52 clean:
53 rm -f Depends *.o lisp lisp.nm core
54
55 depend: Depends
56
57 Depends: ${SRCS}
58 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
59 mv ,depends Depends
60
61 include Depends

  ViewVC Help
Powered by ViewVC 1.1.5