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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13.2.1 - (hide annotations)
Sat Mar 23 18:50:59 2002 UTC (12 years, 1 month ago) by pw
Branch: RELENG_18
CVS Tags: RELEASE_18d
Changes since 1.13: +12 -2 lines
Mega commit to bring RELENG_18 branch in sync with HEAD in preparation
for release tagging 18d.
1 pw 1.13.2.1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.13.2.1 2002/03/23 18:50:59 pw Exp $
2 wlott 1.1
3     all: lisp.nm
4    
5     CC = gcc
6 ram 1.12
7 ram 1.10 DEPEND_FLAGS =
8 wlott 1.1
9     include Config
10    
11 ram 1.12 ifndef GC_SRC
12     GC_SRC = gc.c
13     endif
14    
15 hallgren 1.5 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
16 ram 1.12 vars.c parse.c interrupt.c search.c validate.c globals.c \
17 wlott 1.1 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
18 pw 1.13 socket.c runprog.c time.c \
19 ram 1.12 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
20 ram 1.10
21 wlott 1.11 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
22 wlott 1.1
23     ### Don't look in RCS for the files, because we might not want the latest.
24     %: RCS/%,v
25    
26 pw 1.13.2.1 ### Special target used to make a lisp.nm file for genesis.
27     ### Use when internals.h does not yet exist.
28     ### This is the same 'lisp.nm' but not depending on an existing build.
29     initial-map: version
30     echo 'Map file for lisp version ' `cat version` > ,lisp.nm
31     $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
32     mv ,lisp.nm lisp.nm
33    
34 wlott 1.1 lisp.nm: lisp
35 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
36 ram 1.12 $(NM) lisp | grep -v " F \| U " >> ,lisp.nm
37 wlott 1.1 mv ,lisp.nm lisp.nm
38    
39 ram 1.9 lisp: version.c ${OBJS} version
40 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
41 wlott 1.1 mv ,version version
42 ram 1.9 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
43 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
44 wlott 1.1 ${OBJS} version.o \
45     ${OS_LIBS} -lm
46     mv -f ,lisp lisp
47    
48     version:
49     echo 0 > version
50    
51     ### Socket.c needs to be compiled with UNIXCONN defined.
52     socket.o: socket.c
53 ram 1.9 $(COMPILE.c) -DUNIXCONN $<
54 wlott 1.1
55     internals.h:
56     @echo "You must run genesis to create internals.h!"
57     @false
58    
59     clean:
60 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
61 wlott 1.1
62 pw 1.13.2.1 depend: Depends
63    
64     Depends: ${SRCS}
65 ram 1.10 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > ,depends
66 wlott 1.1 mv ,depends Depends
67    
68     include Depends

  ViewVC Help
Powered by ViewVC 1.1.5