Mercurial > libguess
view 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 |
line wrap: on
line source
PREFIX = /usr/local MAJOR = 0 MINOR = 2 REVISION = 0 VER = ${MAJOR}.${MINOR}.${REVISION} CC = gcc #OBJS = guess.o SRCS = guess.c \ arabic_impl.c \ cjk_impl.c \ greek_impl.c \ hebrew_impl.c \ russian_impl.c \ turkish_impl.c #SRCS = ${OBJS:.o=.c} guess_tab.c libguess.h test.c OBJS = ${SRCS:.c=.o} LIBS = libguess.so libguess.a CFLAGS += -fPIC SONAME = libguess.so.${MAJOR} all: $(LIBS) libguess.so: ${OBJS} ${CC} -o libguess.so -shared -Wl,-soname,${SONAME} ${OBJS} libguess.a: ${OBJS} ar rc libguess.a ${OBJS} ranlib libguess.a $(OBJS) : $(SRCS) libguess.h guess_tab.c guess_tab.c : guess.scm gosh guess.scm guess_tab.c test: test.c guess.c gcc -g -o test test.c guess.c install: install -m644 libguess.h ${PREFIX}/include rm -f ${PREFIX}/lib/libguess.* install -m755 libguess.so ${PREFIX}/lib/libguess.so.${VER} install -m644 libguess.a ${PREFIX}/lib ln -sf ${PREFIX}/lib/libguess.so.${VER} ${PREFIX}/lib/libguess.so.${MAJOR} ln -sf ${PREFIX}/lib/libguess.so.${MAJOR} ${PREFIX}/lib/libguess.so clean: rm -f $(LIBS) $(OBJS) test mostlyclean: clean rm -f guess_tab.c distclean: clean rm -f *~ core*