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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Tue Jul 27 15:14:57 1993 UTC (20 years, 8 months ago) by hallgren
Branch: MAIN
Changes since 1.4: +4 -5 lines
Remove os-common.c from SRCS since hpux doesn't use it.  It's now in the
Config of the os that needs it.  Change the way version is updated because
it wouldn't work the old way under hpux.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.5 1993/07/27 15:14:57 hallgren 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 undefineds.c ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
13
14 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(SRCS)))
15
16 ### Don't look in RCS for the files, because we might not want the latest.
17 %: RCS/%,v
18
19 lisp.nm: lisp
20 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
21 $(NM) lisp >> ,lisp.nm
22 mv ,lisp.nm lisp.nm
23
24 lisp: ${OBJS} version
25 echo '1 + ' `cat version` | bc > ,version
26 mv ,version version
27 $(CC) ${CFLAGS} -DVERSION=`cat version` -c version.c
28 $(CC) $(CFLAGS) ${OS_LINK_FLAGS} -o ,lisp \
29 ${OBJS} version.o \
30 ${OS_LIBS} -lm
31 mv -f ,lisp lisp
32
33 version:
34 echo 0 > version
35
36 ### Socket.c needs to be compiled with UNIXCONN defined.
37 socket.o: socket.c
38 $(COMPILE.c) -DUNIXCONN socket.c
39
40 internals.h:
41 @echo "You must run genesis to create internals.h!"
42 @false
43
44 clean:
45 rm -f Depends *.o lisp lisp.nm core
46
47 depend:
48 $(CC) -MM -E ${CFLAGS} ${CPPFLAGS} ${SRCS} > ,depends
49 mv ,depends Depends
50
51 include Depends

  ViewVC Help
Powered by ViewVC 1.1.5