Makefile
changeset 17 d95d9e7a2b81
parent 15 17a66ceb774a
child 22 0b923f95df16
--- a/Makefile	Sat Sep 01 01:19:18 2007 +0200
+++ b/Makefile	Sat Sep 01 12:26:22 2007 +0200
@@ -1,8 +1,15 @@
 CFLAGS=-g
 CC=gcc
+CXX=g++
+ICULIBS=-pthread -static /usr/lib/libicui18n.a \
+	/usr/lib/libicuuc.a \
+	/usr/lib/libicudata.a
+
+#ICULIBS=-licui18n -licuuc -licudata
+
 
 all: dictre idx2index trim-nou8 ia5 asciiigi-utf8-akcenton zprocess \
-	zparsetext zrustest
+	zparsetext zrustest http_dec_test
 
 idx2index: idx2index.o dict.o
 trim-nou8: trim-nou8.c
@@ -14,13 +21,16 @@
 	$(CC) -o $@ $^
 
 zprocess: zload.o dict.o zdefs.o zhash.o zrus.o
-	$(CC) -o $@ $^ -licui18n -licuuc -licudata
+	$(CXX) -o $@ $^ $(ICULIBS)
 
-zparsetext: parse_text.o zrus.o find.o dict.o
-	$(CC) -o $@ $^ -licui18n -licuuc -licudata
+zparsetext: parse_text.o zrus.o find.o dict.o http_dec.o
+	$(CXX) -o $@ $^ $(ICULIBS)
 
 zrustest: zrustest.o zrus.o
-	$(CC) -o $@ $^ -licui18n -licuuc -licudata
+	$(CXX) -o $@ $^ $(ICULIBS)
+
+http_dec_test: http_dec_test.o http_dec.o
+	$(CXX) -o $@ $^ $(ICULIBS)
 
 dict.c: dictre.h
 write.c: dictre.h
@@ -37,3 +47,5 @@
 zrus.c: dictre.h
 find.c: dictre.h
 zrustest.c: dictre.h
+http_dec.c: dictre.h
+http_dec_test.c: dictre.h