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

Contents of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.33.14.1 - (show annotations)
Tue Feb 9 02:48:05 2010 UTC (4 years, 2 months ago) by rtoy
Branch: intl-branch
CVS Tags: intl-branch-working-2010-02-11-1000
Changes since 1.33: +11 -2 lines
First cut at converting the pot to po to mo files.

Config.x86_common:
o Define vpath for locale files

GNUmakefile:
o Add translations target and rules to merge cmucl.pot with cmucl.po
  and to convert cmucl.po to cmucl.mo.  Currently only for Korean.
1 # $Header: /tiger/var/lib/cvsroots/cmucl/src/lisp/GNUmakefile,v 1.33.14.1 2010/02/09 02:48:05 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 translations: ../../src/i18n/locale/ko/LC_MESSAGES/cmucl.mo
64
65 %.mo : %.po
66 -msgfmt -f $^ -o $@
67
68 ../../src/i18n/locale/ko/LC_MESSAGES/cmucl.po : cmucl.pot
69 msgmerge $@ $^ -o $@
70

  ViewVC Help
Powered by ViewVC 1.1.5