Newer
Older
# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/GNUmakefile,v 1.3 1992/09/04 08:11:54 wlott Exp $
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
all: lisp.nm
CC = gcc
include Config
SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c os-common.c \
vars.c parse.c interrupt.c search.c validate.c gc.c globals.c \
dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
socket.c ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(SRCS)))
### Don't look in RCS for the files, because we might not want the latest.
%: RCS/%,v
lisp.nm: lisp
echo -n 'Map file for lisp version ' > ,lisp.nm
cat version >> ,lisp.nm
$(NM) lisp >> ,lisp.nm
mv ,lisp.nm lisp.nm
lisp: ${OBJS} version undefineds
echo -n '1 + ' | cat - version | bc > ,version
mv ,version version
$(CC) ${CFLAGS} -DVERSION=`cat version` -c version.c
$(CC) $(CFLAGS) ${OS_LINK_FLAGS} `cat undefineds` -o ,lisp \
${OBJS} version.o \
${OS_LIBS} -lm
mv -f ,lisp lisp
version:
echo 0 > version
undefineds: undefineds.src
${CPP} undefineds.src | \
sed -e '/^#/d' -e '/^[ ]*$$/d' -e 's/.*/${UNDEFSYMPATTERN}/' | \
sort -u > ,undefineds
mv ,undefineds undefineds
### Socket.c needs to be compiled with UNIXCONN defined.
socket.o: socket.c
$(COMPILE.c) -DUNIXCONN socket.c
internals.h:
@echo "You must run genesis to create internals.h!"
@false
clean:
$(CC) -MM -E ${CFLAGS} ${CPPFLAGS} ${SRCS} > ,depends