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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Fri Sep 4 08:11:54 1992 UTC (21 years, 7 months ago) by wlott
Branch: MAIN
Changes since 1.2: +3 -3 lines
Moved the ``-Xlinker -u -Xlinker'' into UNDEFSYMPATTERN so that different
config files can do different things.  Added a -E to the cc -MM for making
depends, because it seems to be needed on the parisc.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.3 1992/09/04 08:11:54 wlott 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 os-common.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 ${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 -n 'Map file for lisp version ' > ,lisp.nm
21 cat version >> ,lisp.nm
22 $(NM) lisp >> ,lisp.nm
23 mv ,lisp.nm lisp.nm
24
25 lisp: ${OBJS} version undefineds
26 echo -n '1 + ' | cat - version | bc > ,version
27 mv ,version version
28 $(CC) ${CFLAGS} -DVERSION=`cat version` -c version.c
29 $(CC) $(CFLAGS) ${OS_LINK_FLAGS} `cat undefineds` -o ,lisp \
30 ${OBJS} version.o \
31 ${OS_LIBS} -lm
32 mv -f ,lisp lisp
33
34 version:
35 echo 0 > version
36
37 undefineds: undefineds.src
38 ${CPP} undefineds.src | \
39 sed -e '/^#/d' -e '/^[ ]*$$/d' -e 's/.*/${UNDEFSYMPATTERN}/' | \
40 sort -u > ,undefineds
41 mv ,undefineds undefineds
42
43 ### Socket.c needs to be compiled with UNIXCONN defined.
44 socket.o: socket.c
45 $(COMPILE.c) -DUNIXCONN socket.c
46
47 internals.h:
48 @echo "You must run genesis to create internals.h!"
49 @false
50
51 clean:
52 rm -f Depends undefineds *.o lisp lisp.nm
53
54 depend:
55 $(CC) -MM -E ${CFLAGS} ${CPPFLAGS} ${SRCS} > ,depends
56 mv ,depends Depends
57
58 include Depends

  ViewVC Help
Powered by ViewVC 1.1.5