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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.33.16.2 - (show annotations)
Thu Feb 25 22:01:11 2010 UTC (4 years, 1 month ago) by rtoy
Branch: intl-2-branch
Changes since 1.33.16.1: +21 -6 lines
Merge build support from intl-branch to support piglatin.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.33.16.2 2010/02/25 22:01:11 rtoy Exp $
2
3 all: lisp.nm translations
4
5 -include internals.inc
6 include Config
7
8 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
9 vars.c parse.c interrupt.c search.c validate.c globals.c \
10 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
11 runprog.c time.c exec-init.c \
12 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
13
14 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.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 lisp.a
20 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
21 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
22 mv ,lisp.nm lisp.nm
23
24 version.o : version.c version
25 echo '1 + ' `cat version` | bc > ,version
26 mv ,version version
27 $(CC) ${CFLAGS} $(CPPFLAGS) -DVERSION=`cat version` -c $<
28
29 lisp: ${OBJS} version.o
30 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
31 ${OBJS} version.o \
32 ${OS_LIBS} -lm
33 mv -f ,lisp lisp
34
35 # Create a library out of all the object files so we can build an
36 # executable. However, for Solaris, we need to remove exec-init.o
37 # because the linker will add the write symbols in.
38 lisp.a: version.o ${OBJS}
39 ar crs lisp.a version.o ${OBJS}
40 ifdef FEATURE_SOLARIS
41 ar d lisp.a exec-init.o
42 endif
43
44 version:
45 echo 0 > version
46
47 internals.h internals.inc:
48 @echo "You must run genesis to create internals.h!"
49 @false
50
51 clean:
52 rm -f Depends *.o lisp lisp.nm core
53 echo 'Map file for lisp version 0' > lisp.nm
54
55 depend: Depends
56
57 Depends: ${SRCS}
58 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
59 mv ,depends Depends
60
61 -include Depends
62
63 # Find all directories in ../i18n/locale. These are the locales we
64 # currently support.
65
66 # This would be a nice way to do it so we don't have to keep track of
67 # the directories, but Solaris' find doesn't grok -depth 1
68 #LOCALES=$(patsubst ../i18n/locale/%, %, $(shell find ../i18n/locale -type d -depth 1))
69 LOCALES=en@piglatin ko
70
71 # Convert locale names to the appropriate path where we want the mo files to go.
72 LOCALE_MO=$(patsubst %, ../i18n/locale/%/LC_MESSAGES/cmucl.mo, $(LOCALES))
73
74 translations: $(LOCALE_MO)
75
76 .PHONY : translations
77
78 # Create the mo files
79 ../i18n/locale/%/LC_MESSAGES/cmucl.mo : ../../src/i18n/locale/%/LC_MESSAGES/cmucl.po
80 -msgfmt -v $^ -o $@
81
82 # Update the translations with the template
83 ../../src/i18n/locale/%/LC_MESSAGES/cmucl.po : ../../src/i18n/locale/cmucl.pot
84 msgmerge -v $@ $^ -o $@
85

  ViewVC Help
Powered by ViewVC 1.1.5