2 #MOD_PATH=$(APACHE_PATH)/modules
3 #CACHE_PATH=$(MOD_PATH)/cache
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
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
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
41 sudo
/etc
/init.d
/apache2 restart