Switch to SHA1 function in APR libraries
[httpd-crcsyncproxy.git] / crccache / Makefile
blob3f4e2ec54d819be027532d0ec732f9f7ee466192
1 #APACHE_PATH=../apache
2 #MOD_PATH=$(APACHE_PATH)/modules
3 #CACHE_PATH=$(MOD_PATH)/cache
5 CCAN_PATH=../ccan
6 SOURCE_ROOT=..
8 EXTRA_FLAGS=-D_LARGEFILE64_SOURCE -Wall -Werror -g -fPIC -I/usr/include/apache2 -I. -I$(SOURCE_ROOT) -I$(CCAN_PATH) -O3
9 CFLAGS=`apr-config --cflags --includes` $(EXTRA_FLAGS)
10 CXXFLAGS=`apr-config --cppflags --includes` $(EXTRA_FLAGS)
11 LDFLAGS=`apr-1-config --link-ld --libs` -laprutil-1 -lz
13 all: mod_crccache_client.so mod_crccache_server.so benchmark test_hash_small_invokations
15 CACHE_SRC=cache/cache.o cache/cache_cache.o \
16 cache/cache_hash.o cache/cache_pqueue.o \
17 cache/cache_util.o cache/cache_storage.o
19 #cache/mod_cache.o
20 #cache/mod_disk_cache.o
21 #cache/mod_file_cache.o
22 #cache/mod_socache_dbm.c
23 #cache/mod_socache_dc.c
24 #cache/mod_socache_memcache.c
25 #cache/mod_socache_shmcb.c
28 %.so: %.o ap_wrapper.o $(CCAN_PATH)/crc/crc.o $(CCAN_PATH)/crcsync/crcsync.o $(CACHE_SRC)
29 gcc $^ -o $@ $(LDFLAGS) -shared
31 clean:
32 rm -rf *.so *.o $(CCAN_PATH)/crc/crc.o $(CCAN_PATH)/crcsync/crcsync.o
34 benchmark: benchmark.o $(CCAN_PATH)/crc/crc.o $(CCAN_PATH)/crcsync/crcsync.o
35 gcc $^ -o $@ $(LDFLAGS)
37 test_hash_small_invokations: test_hash_small_invokations.o $(CCAN_PATH)/crc/crc.o $(CCAN_PATH)/crcsync/crcsync.o
38 gcc $^ -o $@
40 restart:
41 sudo /etc/init.d/apache2 restart