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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5