comparison Makefile @ 3:70e2c306231e

- implemented dfa utility functions. - added dfa.c. - rewrote guess functions for ar, gr, hw and tr scripts with dfa utilities. - guess functions for cjk scripts too.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 12 Jun 2008 20:20:43 +0900
parents 754a4550c64e
children
comparison
equal deleted inserted replaced
2:754a4550c64e 3:70e2c306231e
1 PREFIX = /usr/local 1 PREFIX = /usr/local
2 2
3 MAJOR = 0 3 MAJOR = 0
4 MINOR = 2 4 MINOR = 3
5 REVISION = 0 5 REVISION = 0
6 VER = ${MAJOR}.${MINOR}.${REVISION} 6 VER = ${MAJOR}.${MINOR}.${REVISION}
7 7
8 CC = gcc 8 CC = gcc
9 #OBJS = guess.o 9 #OBJS = guess.o
10 10
11 SRCS = guess.c \ 11 SRCS = guess.c \
12 dfa.c \
12 arabic_impl.c \ 13 arabic_impl.c \
13 cjk_impl.c \ 14 cjk_impl.c \
14 greek_impl.c \ 15 greek_impl.c \
15 hebrew_impl.c \ 16 hebrew_impl.c \
16 russian_impl.c \ 17 russian_impl.c \
20 #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c 21 #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c
21 22
22 OBJS = ${SRCS:.c=.o} 23 OBJS = ${SRCS:.c=.o}
23 24
24 LIBS = libguess.so libguess.a 25 LIBS = libguess.so libguess.a
25 CFLAGS += -fPIC 26 CFLAGS += -fPIC -pg -g
26 SONAME = libguess.so.${MAJOR} 27 SONAME = libguess.so.${MAJOR}
27 28
28 29
29 all: $(LIBS) 30 all: $(LIBS) test
30 31
31 libguess.so: ${OBJS} 32 libguess.so: ${OBJS}
32 ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS} 33 ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS}
33 34
34 libguess.a: ${OBJS} 35 libguess.a: ${OBJS}
39 40
40 41
41 guess_tab.c : guess.scm 42 guess_tab.c : guess.scm
42 gosh guess.scm guess_tab.c 43 gosh guess.scm guess_tab.c
43 44
44 test: test.c guess.c 45 test: test.c libguess.a
45 gcc -g -o test test.c guess.c 46 gcc -g -o test test.c libguess.a
46 47
47 install: 48 install:
48 install -m644 libguess.h ${PREFIX}/include 49 install -m644 libguess.h ${PREFIX}/include
49 rm -f ${PREFIX}/lib/libguess.* 50 rm -f ${PREFIX}/lib/libguess.*
50 install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER} 51 install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER}