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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5