--- Makefile.orig 2011-06-21 09:13:26.000000000 +0800 +++ Makefile 2011-06-21 09:13:41.000000000 +0800 @@ -1,9 +1,9 @@ #-------------------------------------------------------------------- -CC = gcc +#CC = gcc AR = ar cru -CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC +CFLAGS += -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC SOFLAGS = -shared LDFLAGS = -lstdc++ -lpthread @@ -48,6 +48,8 @@ testshm: testshm.o spdictshm.o testshmcache: testshmcache.o spdictshm.o spdictshmhashmap.o spdictshmcache.o $(LINKER) $(LDFLAGS) $^ -L. -lspdict -o $@ +testdict testcache testshm testshmcache: libspdict.so + dist: clean spdict-$(version).src.tar.gz spdict-$(version).src.tar.gz: