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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (hide annotations)
Sun Mar 2 18:55:57 2003 UTC (11 years, 1 month ago) by toy
Branch: MAIN
Changes since 1.18: +2 -2 lines
Revived SGI MIPS port, from Mike McDonald.
1 toy 1.19 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.19 2003/03/02 18:55:57 toy 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 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 pw 1.14
26 wlott 1.1 lisp.nm: lisp
27 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
28 toy 1.18 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
29 wlott 1.1 mv ,lisp.nm lisp.nm
30    
31 ram 1.9 lisp: version.c ${OBJS} version
32 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
33 wlott 1.1 mv ,version version
34 ram 1.9 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
35 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
36 wlott 1.1 ${OBJS} version.o \
37     ${OS_LIBS} -lm
38     mv -f ,lisp lisp
39    
40     version:
41     echo 0 > version
42    
43     ### Socket.c needs to be compiled with UNIXCONN defined.
44     socket.o: socket.c
45 ram 1.9 $(COMPILE.c) -DUNIXCONN $<
46 wlott 1.1
47     internals.h:
48     @echo "You must run genesis to create internals.h!"
49     @false
50    
51     clean:
52 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
53 wlott 1.1
54 pmai 1.16 depend: Depends
55    
56     Depends: ${SRCS}
57 ram 1.10 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
58 wlott 1.1 mv ,depends Depends
59    
60     include Depends

  ViewVC Help
Powered by ViewVC 1.1.5