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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide 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 pw 1.14 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.14 2001/04/26 16:33:50 pw Exp $
2 wlott 1.1
3     all: lisp.nm
4    
5     CC = gcc
6 ram 1.12
7 ram 1.10 DEPEND_FLAGS =
8 wlott 1.1
9     include Config
10    
11 ram 1.12 ifndef GC_SRC
12     GC_SRC = gc.c
13     endif
14    
15 hallgren 1.5 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
16 ram 1.12 vars.c parse.c interrupt.c search.c validate.c globals.c \
17 wlott 1.1 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
18 pw 1.13 socket.c runprog.c time.c \
19 ram 1.12 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
20 ram 1.10
21 wlott 1.11 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
22 wlott 1.1
23     ### Don't look in RCS for the files, because we might not want the latest.
24     %: RCS/%,v
25    
26 pw 1.14 ### 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 wlott 1.1 lisp.nm: lisp
34 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
35 ram 1.12 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
36 wlott 1.1 mv ,lisp.nm lisp.nm
37    
38 ram 1.9 lisp: version.c ${OBJS} version
39 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
40 wlott 1.1 mv ,version version
41 ram 1.9 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
42 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
43 wlott 1.1 ${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 ram 1.9 $(COMPILE.c) -DUNIXCONN $<
53 wlott 1.1
54     internals.h:
55     @echo "You must run genesis to create internals.h!"
56     @false
57    
58     clean:
59 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
60 wlott 1.1
61 ram 1.9 depend: ${SRCS}
62 ram 1.10 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
63 wlott 1.1 mv ,depends Depends
64    
65 pw 1.14 ifneq (,$(wildcard Depends))
66 wlott 1.1 include Depends
67 pw 1.14 endif

  ViewVC Help
Powered by ViewVC 1.1.5