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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.33.14.5 - (hide annotations)
Tue Mar 2 13:44:24 2010 UTC (4 years, 1 month ago) by rtoy
Branch: intl-branch
CVS Tags: intl-branch-2010-03-18-1300
Changes since 1.33.14.4: +3 -1 lines
Print each file as it's being processed.
1 rtoy 1.33.14.5 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.33.14.5 2010/03/02 13:44:24 rtoy Exp $
2 wlott 1.1
3 rtoy 1.33.14.1 all: lisp.nm translations
4 wlott 1.1
5 gerd 1.22 -include internals.inc
6 wlott 1.1 include Config
7    
8 hallgren 1.5 SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \
9 ram 1.12 vars.c parse.c interrupt.c search.c validate.c globals.c \
10 wlott 1.1 dynbind.c breakpoint.c regnames.c backtrace.c save.c purify.c \
11 fgilham 1.26 runprog.c time.c exec-init.c \
12 ram 1.12 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
13 ram 1.10
14 wlott 1.11 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
15 wlott 1.1
16     ### Don't look in RCS for the files, because we might not want the latest.
17     %: RCS/%,v
18 pw 1.14
19 fgilham 1.24 lisp.nm: lisp lisp.a
20 hallgren 1.5 echo 'Map file for lisp version ' `cat version` > ,lisp.nm
21 toy 1.18 $(NM) lisp | grep -v " [F] " >> ,lisp.nm
22 wlott 1.1 mv ,lisp.nm lisp.nm
23    
24 rtoy 1.29 version.o : version.c version
25 hallgren 1.5 echo '1 + ' `cat version` | bc > ,version
26 wlott 1.1 mv ,version version
27 rtoy 1.32 $(CC) ${CFLAGS} $(CPPFLAGS) -DVERSION=`cat version` -c $<
28 rtoy 1.29
29     lisp: ${OBJS} version.o
30 ram 1.8 $(CC) -g ${OS_LINK_FLAGS} -o ,lisp \
31 wlott 1.1 ${OBJS} version.o \
32     ${OS_LIBS} -lm
33     mv -f ,lisp lisp
34    
35 rtoy 1.25 # 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 fgilham 1.24 lisp.a: version.o ${OBJS}
39     ar crs lisp.a version.o ${OBJS}
40 rtoy 1.25 ifdef FEATURE_SOLARIS
41     ar d lisp.a exec-init.o
42     endif
43 fgilham 1.24
44 wlott 1.1 version:
45     echo 0 > version
46    
47 gerd 1.22 internals.h internals.inc:
48 wlott 1.1 @echo "You must run genesis to create internals.h!"
49     @false
50    
51     clean:
52 wlott 1.4 rm -f Depends *.o lisp lisp.nm core
53 rtoy 1.30 echo 'Map file for lisp version 0' > lisp.nm
54 wlott 1.1
55 pmai 1.16 depend: Depends
56    
57     Depends: ${SRCS}
58 toy 1.21 $(DEPEND) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $^ > ,depends
59 wlott 1.1 mv ,depends Depends
60    
61 cshapiro 1.23 -include Depends
62 rtoy 1.33.14.1
63 rtoy 1.33.14.2 # Find all directories in ../i18n/locale. These are the locales we
64     # currently support.
65 rtoy 1.33.14.1
66 rtoy 1.33.14.3 # 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 rtoy 1.33.14.1
71 rtoy 1.33.14.2 # Convert locale names to the appropriate path where we want the mo files to go.
72 rtoy 1.33.14.4 LOCALE_DIRS = $(patsubst %, i18n/locale/%/LC_MESSAGES, $(LOCALES))
73 rtoy 1.33.14.2
74 rtoy 1.33.14.4 translations:
75     for pot in ../../src/i18n/locale/*.pot; do \
76     for po in $(LOCALE_DIRS); do \
77     d=`dirname $$pot`; \
78     f=`basename $$pot .pot`; \
79     touch ../../src/$$po/$$f.po; \
80 rtoy 1.33.14.5 echo ; \
81     echo '***' Processing $$f.pot: $$po; \
82 rtoy 1.33.14.4 msgmerge -v ../../src/$$po/$$f.po $$pot -o ../../src/$$po/$$f.po; \
83     msgfmt -v ../../src/$$po/$$f.po -o ../$$po/$$f.mo; \
84     done; done
85 rtoy 1.33.14.2
86     .PHONY : translations
87    

  ViewVC Help
Powered by ViewVC 1.1.5