summaryrefslogtreecommitdiff
path: root/devel/spdict/files/patch-Makefile
blob: 32cbd9c1def96596479a2a3dcce18c66a63954f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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: