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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations)
Fri Feb 17 00:51:01 1995 UTC (19 years, 2 months ago) by wlott
Branch: MAIN
Changes since 1.10: +2 -2 lines
Allow for .s files in addition to .S files.
1 wlott 1.11 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.11 1995/02/17 00:51:01 wlott Exp $
2 wlott 1.1
3     all: lisp.nm
4    
5     CC = gcc
6 ram 1.10 DEPEND_FLAGS =
7 wlott 1.1
8     include Config
9    
10 hallgren 1.5 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
11 wlott 1.1 vars.c parse.c interrupt.c search.c validate.c gc.c globals.c \
12     dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
13 wlott 1.7 socket.c runprog.c time.c undefineds.c \
14     ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
15 wlott 1.1
16 ram 1.10
17 wlott 1.11 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
18 wlott 1.1
19     ### Don't look in RCS for the files, because we might not want the latest.
20     %: RCS/%,v
21    
22     lisp.nm: lisp
23 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
24 wlott 1.1 $(NM) lisp >> ,lisp.nm
25     mv ,lisp.nm lisp.nm
26    
27 ram 1.9 lisp: version.c ${OBJS} version
28 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
29 wlott 1.1 mv ,version version
30 ram 1.9 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
31 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
32 wlott 1.1 ${OBJS} version.o \
33     ${OS_LIBS} -lm
34     mv -f ,lisp lisp
35    
36     version:
37     echo 0 > version
38    
39     ### Socket.c needs to be compiled with UNIXCONN defined.
40     socket.o: socket.c
41 ram 1.9 $(COMPILE.c) -DUNIXCONN $<
42 wlott 1.1
43     internals.h:
44     @echo "You must run genesis to create internals.h!"
45     @false
46    
47     clean:
48 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
49 wlott 1.1
50 ram 1.9 depend: ${SRCS}
51 ram 1.10 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
52 wlott 1.1 mv ,depends Depends
53    
54     include Depends

  ViewVC Help
Powered by ViewVC 1.1.5