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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22.2.1 - (show annotations)
Wed Sep 3 11:32:06 2003 UTC (10 years, 7 months ago) by gerd
Branch: lisp-executable
Changes since 1.22: +5 -2 lines
Fred Gilham's Lisp executable support for CMUCL.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.22.2.1 2003/09/03 11:32:06 gerd 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 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 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 lisp.a: version.o ${OBJS}
43 ar crs lisp.a version.o ${OBJS}
44
45 version:
46 echo 0 > version
47
48 ### Socket.c needs to be compiled with UNIXCONN defined.
49 socket.o: socket.c
50 $(COMPILE.c) -DUNIXCONN $<
51
52 internals.h internals.inc:
53 @echo "You must run genesis to create internals.h!"
54 @false
55
56 clean:
57 rm -f Depends *.o lisp lisp.nm core
58
59 depend: Depends
60
61 Depends: ${SRCS}
62 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
63 mv ,depends Depends
64
65 include Depends

  ViewVC Help
Powered by ViewVC 1.1.5