head	1.12;
access;
symbols;
locks; strict;
comment	@# @;


1.12
date	97.01.21.00.28.13;	author ram;	state Exp;
branches;
next	1.11;

1.11
date	95.02.17.00.51.01;	author wlott;	state Exp;
branches;
next	1.10;

1.10
date	94.10.29.05.11.34;	author ram;	state Exp;
branches;
next	1.9;

1.9
date	94.10.24.19.19.29;	author ram;	state Exp;
branches;
next	1.8;

1.8
date	93.11.17.15.40.13;	author ram;	state Exp;
branches;
next	1.7;

1.7
date	93.11.12.19.22.03;	author wlott;	state Exp;
branches;
next	1.6;

1.6
date	93.08.04.11.27.10;	author wlott;	state Exp;
branches;
next	1.5;

1.5
date	93.07.27.15.14.57;	author hallgren;	state Exp;
branches;
next	1.4;

1.4
date	92.09.08.20.16.06;	author wlott;	state Exp;
branches;
next	1.3;

1.3
date	92.09.04.08.11.54;	author wlott;	state Exp;
branches;
next	1.2;

1.2
date	92.08.19.02.49.35;	author wlott;	state Exp;
branches;
next	1.1;

1.1
date	92.07.28.20.13.58;	author wlott;	state Exp;
branches;
next	;


desc
@@


1.12
log
@source kit 1.03.7
@
text
@# $Header: /local/pw/SRC/p86/lisp/GNUmakefile,v 1.4 1996/10/19 21:17:59 pw Exp $

all: lisp.nm

CC = gcc

DEPEND_FLAGS =

include Config

ifndef GC_SRC
GC_SRC = gc.c
endif

SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
	vars.c parse.c interrupt.c search.c validate.c globals.c \
	dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
	socket.c runprog.c time.c undefineds.c \
	${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}

OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.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 'Map file for lisp version ' `cat version` > ,lisp.nm
	$(NM) lisp | grep -v " F \| U " >> ,lisp.nm
	mv ,lisp.nm lisp.nm

lisp: version.c ${OBJS} version
	echo '1 + ' `cat version` | bc > ,version
	mv ,version version
	$(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
	$(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
		${OBJS} version.o \
		${OS_LIBS} -lm
	mv -f ,lisp lisp

version:
	echo 0 > version

### Socket.c needs to be compiled with UNIXCONN defined.
socket.o: socket.c
	$(COMPILE.c) -DUNIXCONN $<

internals.h:
	@@echo "You must run genesis to create internals.h!"
	@@false

clean:
	rm -f Depends *.o lisp lisp.nm core

depend: ${SRCS}
	$(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
	mv ,depends Depends

include Depends
@


1.11
log
@Allow for .s files in addition to .S files.
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.10 94/10/29 05:11:34 wlott Locked $
d6 1
d11 4
d16 1
a16 1
	vars.c parse.c interrupt.c search.c validate.c gc.c globals.c \
d19 1
a19 2
	${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}

d28 1
a28 1
	$(NM) lisp >> ,lisp.nm
@


1.10
log
@Add a DEPEND_FLAGS variable containing flags passed only to make depend.
@
text
@d1 1
a1 1
# $Header: /users/ram/RCS/GNUmakefile,v 1.9 1994/10/24 19:19:29 ram Exp ram $
d17 1
a17 1
OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(SRCS)))
@


1.9
log
@Some kind of changes to make directoris relative or somethng.
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.8 93/11/17 15:40:13 ram Exp $
d6 1
d16 1
d51 1
a51 1
	$(CC) -MM -E ${CFLAGS} ${CPPFLAGS} $? > ,depends
@


1.8
log
@Don't pass CFLAGS to the linker, since this may clash with the
OS_LINK_FLAGS
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.6 93/08/04 11:27:10 wlott Exp $
d25 1
a25 1
lisp: ${OBJS} version
d28 1
a28 1
	$(CC) ${CFLAGS} -DVERSION=`cat version` -c version.c
d39 1
a39 1
	$(COMPILE.c) -DUNIXCONN socket.c
d48 2
a49 2
depend:
	$(CC) -MM -E ${CFLAGS} ${CPPFLAGS} ${SRCS} > ,depends
@


1.7
log
@Added time.c
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.6 93/08/04 11:27:10 wlott Locked $
d29 1
a29 1
	$(CC) $(CFLAGS) ${OS_LINK_FLAGS} -o ,lisp \
@


1.6
log
@Added runprog.c
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.5 93/07/27 15:14:57 wlott Locked $
d12 2
a13 1
	socket.c runprog.c undefineds.c ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
@


1.5
log
@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.
@
text
@d1 1
a1 1
# $Header: /afs/cs.cmu.edu/project/clisp/src/17/lisp/RCS/GNUmakefile,v 1.4 92/09/08 20:16:06 wlott Exp $
d12 1
a12 1
	socket.c undefineds.c ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
@


1.4
log
@Changed ``undefineds'' stuff to be a C file that gets linked in instead of
assuming the existance of the -u switch.
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.3 92/09/04 08:11:54 wlott Locked $
d9 1
a9 1
SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c os-common.c \
d20 1
a20 2
	echo -n 'Map file for lisp version ' > ,lisp.nm
	cat version >> ,lisp.nm
d25 1
a25 1
	echo -n '1 + ' | cat - version | bc > ,version
@


1.3
log
@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.
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.2 92/08/19 02:49:35 wlott Locked $
d12 1
a12 1
	socket.c ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC}
d25 1
a25 1
lisp: ${OBJS} version undefineds
d29 1
a29 1
	$(CC) $(CFLAGS) ${OS_LINK_FLAGS} `cat undefineds` -o ,lisp \
a36 6
undefineds: undefineds.src
	${CPP} undefineds.src | \
	sed -e '/^#/d' -e '/^[ 	]*$$/d' -e 's/.*/${UNDEFSYMPATTERN}/' | \
	sort -u > ,undefineds
	mv ,undefineds undefineds

d46 1
a46 1
	rm -f Depends undefineds *.o lisp lisp.nm
@


1.2
log
@Don't delete lisp.h when cleaning up.
@
text
@d1 1
a1 1
# $Header: GNUmakefile,v 1.1 92/07/28 20:13:58 wlott Locked $
d39 1
a39 1
	sed -e '/^#/d' -e '/^[ 	]*$$/d' -e 's/.*/-Xlinker -u -Xlinker ${UNDEFSYMPATTERN}/' | \
d55 1
a55 1
	$(CC) -MM ${CFLAGS} ${CPPFLAGS} ${SRCS} > ,depends
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header: Makefile.orig,v 1.29 92/03/06 12:39:06 wlott Locked $
d52 1
a52 1
	rm -f Depends lisp.h undefineds *.o lisp lisp.nm
@
