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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations)
Thu Apr 26 16:33:50 2001 UTC (12 years, 11 months ago) by pw
Branch: MAIN
Changes since 1.13: +10 -1 lines
(a) Add a new target 'initial-map' that can make a 'lisp.nm' file from
whatever 'lisp' executable is in the "target:lisp/" directory without
depending on the rest of the source code being available. Used when setting
up a build directory and/or when internals.h doesn't yet exist.

(b) Don't whine when 'Depends' target is missing.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.14 2001/04/26 16:33:50 pw 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 initial-map:
29 echo 'Map file for lisp version 0' > ,lisp.nm
30 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
31 mv ,lisp.nm lisp.nm
32
33 lisp.nm: lisp
34 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
35 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
36 mv ,lisp.nm lisp.nm
37
38 lisp: version.c ${OBJS} version
39 echo '1 + ' `cat version` | bc > ,version
40 mv ,version version
41 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
42 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
43 ${OBJS} version.o \
44 ${OS_LIBS} -lm
45 mv -f ,lisp lisp
46
47 version:
48 echo 0 > version
49
50 ### Socket.c needs to be compiled with UNIXCONN defined.
51 socket.o: socket.c
52 $(COMPILE.c) -DUNIXCONN $<
53
54 internals.h:
55 @echo "You must run genesis to create internals.h!"
56 @false
57
58 clean:
59 rm -f Depends *.o lisp lisp.nm core
60
61 depend: ${SRCS}
62 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
63 mv ,depends Depends
64
65 ifneq (,$(wildcard Depends))
66 include Depends
67 endif

  ViewVC Help
Powered by ViewVC 1.1.5