annotate Makefile @ 2:754a4550c64e

- added arabic, greek, hebrew and turkish DFAs - new UCS-2LE/BE DFAs - now arabic_impl.c uses arabic DFAs - dfa common macros have been moved to dfa.h - minor cleanups
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 11 Jun 2008 00:11:30 +0900
parents 04f2be1c8464
children 70e2c306231e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
1 PREFIX = /usr/local
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
2
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
3 MAJOR = 0
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
4 MINOR = 2
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
5 REVISION = 0
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
6 VER = ${MAJOR}.${MINOR}.${REVISION}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
7
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
8 CC = gcc
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
9 #OBJS = guess.o
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
10
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
11 SRCS = guess.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
12 arabic_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
13 cjk_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
14 greek_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
15 hebrew_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
16 russian_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
17 turkish_impl.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
18
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
19
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
20 #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
21
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
22 OBJS = ${SRCS:.c=.o}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
23
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
24 LIBS = libguess.so libguess.a
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
25 CFLAGS += -fPIC
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
26 SONAME = libguess.so.${MAJOR}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
27
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
28
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
29 all: $(LIBS)
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
30
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
31 libguess.so: ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
32 ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
33
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
34 libguess.a: ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
35 ar rc libguess.a ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
36 ranlib libguess.a
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
37
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
38 $(OBJS) : $(SRCS) libguess.h guess_tab.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
39
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
40
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
41 guess_tab.c : guess.scm
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
42 gosh guess.scm guess_tab.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
43
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
44 test: test.c guess.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
45 gcc -g -o test test.c guess.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
46
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
47 install:
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
48 install -m644 libguess.h ${PREFIX}/include
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
49 rm -f ${PREFIX}/lib/libguess.*
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
50 install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
51 install -m644 libguess.a ${PREFIX}/lib
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
52 ln -sf ${PREFIX}/lib/libguess.so.${VER} ${PREFIX}/lib/libguess.so.${MAJOR}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
53 ln -sf ${PREFIX}/lib/libguess.so.${MAJOR} ${PREFIX}/lib/libguess.so
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
54
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
55 clean:
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
56 rm -f $(LIBS) $(OBJS) test
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
57
2
754a4550c64e - added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 1
diff changeset
58 mostlyclean: clean
754a4550c64e - added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 1
diff changeset
59 rm -f guess_tab.c
754a4550c64e - added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 1
diff changeset
60
1
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
61 distclean: clean
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
62 rm -f *~ core*