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
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
3
70e2c306231e - implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2
diff changeset
4 MINOR = 3
1
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 \
3
70e2c306231e - implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2
diff changeset
12 dfa.c \
1
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
13 arabic_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
14 cjk_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
15 greek_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
16 hebrew_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
17 russian_impl.c \
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
18 turkish_impl.c
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
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
21 #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
22
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
23 OBJS = ${SRCS:.c=.o}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
24
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
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
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
27 SONAME = libguess.so.${MAJOR}
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
3
70e2c306231e - implemented dfa utility functions.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2
diff changeset
30 all: $(LIBS) test
1
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
31
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
32 libguess.so: ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
33 ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
34
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
35 libguess.a: ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
36 ar rc libguess.a ${OBJS}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
37 ranlib libguess.a
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
38
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
39 $(OBJS) : $(SRCS) libguess.h guess_tab.c
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
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
42 guess_tab.c : guess.scm
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
43 gosh guess.scm guess_tab.c
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
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
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
47
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
48 install:
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
49 install -m644 libguess.h ${PREFIX}/include
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
50 rm -f ${PREFIX}/lib/libguess.*
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
51 install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER}
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
52 install -m644 libguess.a ${PREFIX}/lib
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
53 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
54 ln -sf ${PREFIX}/lib/libguess.so.${MAJOR} ${PREFIX}/lib/libguess.so
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
55
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
56 clean:
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
57 rm -f $(LIBS) $(OBJS) test
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
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
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
62 distclean: clean
04f2be1c8464 update Makefile
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
63 rm -f *~ core*