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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.28.6.1 - (show annotations)
Sun Nov 2 13:30:03 2008 UTC (5 years, 5 months ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-utf16-extfmts-sync-2008-12
Changes since 1.28: +5 -2 lines
Sync to snapshot 2008-11.  But we didn't sync code/extfmts.lisp or
iso8859-1.lisp and utf-8.lisp.  (I don't think we want those changes,
yet.)
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.28.6.1 2008/11/02 13:30:03 rtoy Exp $
2
3 all: lisp.nm
4
5 CC = gcc
6
7 DEPEND = $(CC) -MM -E
8 DEPEND_FLAGS =
9
10 -include internals.inc
11 include Config
12
13 ifndef GC_SRC
14 GC_SRC = gc.c
15 endif
16
17 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
18 vars.c parse.c interrupt.c search.c validate.c globals.c \
19 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
20 runprog.c time.c exec-init.c \
21 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
22
23 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
24
25 ### Don't look in RCS for the files, because we might not want the latest.
26 %: RCS/%,v
27
28 lisp.nm: lisp lisp.a
29 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
30 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
31 mv ,lisp.nm lisp.nm
32
33 version.o : version.c version
34 echo '1 + ' `cat version` | bc > ,version
35 mv ,version version
36 $(CC) ${CFLAGS} -DVERSION=`cat version` -c $<
37
38 lisp: ${OBJS} version.o
39 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
40 ${OBJS} version.o \
41 ${OS_LIBS} -lm
42 mv -f ,lisp lisp
43
44 # Create a library out of all the object files so we can build an
45 # executable. However, for Solaris, we need to remove exec-init.o
46 # because the linker will add the write symbols in.
47 lisp.a: version.o ${OBJS}
48 ar crs lisp.a version.o ${OBJS}
49 ifdef FEATURE_SOLARIS
50 ar d lisp.a exec-init.o
51 endif
52
53 version:
54 echo 0 > version
55
56 internals.h internals.inc:
57 @echo "You must run genesis to create internals.h!"
58 @false
59
60 clean:
61 rm -f Depends *.o lisp lisp.nm core
62 echo 'Map file for lisp version 0' > lisp.nm
63
64 depend: Depends
65
66 Depends: ${SRCS}
67 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
68 mv ,depends Depends
69
70 -include Depends

  ViewVC Help
Powered by ViewVC 1.1.5