Mercurial > libguess
annotate Makefile @ 5:8a64459dab94
make guess_init() and guess_impl_register() static functions.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 12 Jun 2008 22:54:49 +0900 |
parents | 70e2c306231e |
children |
rev | line source |
---|---|
1 | 1 PREFIX = /usr/local |
2 | |
3 MAJOR = 0 | |
3
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
4 MINOR = 3 |
1 | 5 REVISION = 0 |
6 VER = ${MAJOR}.${MINOR}.${REVISION} | |
7 | |
8 CC = gcc | |
9 #OBJS = guess.o | |
10 | |
11 SRCS = guess.c \ | |
3
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
12 dfa.c \ |
1 | 13 arabic_impl.c \ |
14 cjk_impl.c \ | |
15 greek_impl.c \ | |
16 hebrew_impl.c \ | |
17 russian_impl.c \ | |
18 turkish_impl.c | |
19 | |
20 | |
21 #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c | |
22 | |
23 OBJS = ${SRCS:.c=.o} | |
24 | |
25 LIBS = libguess.so libguess.a | |
3
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
26 CFLAGS += -fPIC -pg -g |
1 | 27 SONAME = libguess.so.${MAJOR} |
28 | |
29 | |
3
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
30 all: $(LIBS) test |
1 | 31 |
32 libguess.so: ${OBJS} | |
33 ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS} | |
34 | |
35 libguess.a: ${OBJS} | |
36 ar rc libguess.a ${OBJS} | |
37 ranlib libguess.a | |
38 | |
39 $(OBJS) : $(SRCS) libguess.h guess_tab.c | |
40 | |
41 | |
42 guess_tab.c : guess.scm | |
43 gosh guess.scm guess_tab.c | |
44 | |
3
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
45 test: test.c libguess.a |
70e2c306231e
- implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2
diff
changeset
|
46 gcc -g -o test test.c libguess.a |
1 | 47 |
48 install: | |
49 install -m644 libguess.h ${PREFIX}/include | |
50 rm -f ${PREFIX}/lib/libguess.* | |
51 install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER} | |
52 install -m644 libguess.a ${PREFIX}/lib | |
53 ln -sf ${PREFIX}/lib/libguess.so.${VER} ${PREFIX}/lib/libguess.so.${MAJOR} | |
54 ln -sf ${PREFIX}/lib/libguess.so.${MAJOR} ${PREFIX}/lib/libguess.so | |
55 | |
56 clean: | |
57 rm -f $(LIBS) $(OBJS) test | |
58 | |
2
754a4550c64e
- added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
1
diff
changeset
|
59 mostlyclean: clean |
754a4550c64e
- added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
1
diff
changeset
|
60 rm -f guess_tab.c |
754a4550c64e
- added arabic, greek, hebrew and turkish DFAs
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
1
diff
changeset
|
61 |
1 | 62 distclean: clean |
63 rm -f *~ core* |