1# 2# Copyright (c) 2004,2008 Oracle. All rights reserved. 3# 4# http://www.apache.org/licenses/LICENSE-2.0.txt 5# 6 7APXS=@APXS@ 8CXXFLAGS=@CXXFLAGS@ 9CPPFLAGS=@CPPFLAGS@ 10LDFLAGS=@LDFLAGS@ 11LIBS=@LIBS@ 12 13SOURCES=mod_db4.c sem_utils.c skiplist.c utils.c mm_hash.c 14 15all: mod_db4.so 16 17mod_db4.so: $(SOURCES) 18 $(APXS) -c -S CC=$(CXX) $(LDFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(SOURCES) $(LIBS) 19 20install: mod_db4.so 21 $(APXS) -i mod_db4.so 22 cp mod_db4_export.h `$(APXS) -q INCLUDEDIR`/ 23 chmod a+r `$(APXS) -q INCLUDEDIR`/mod_db4_export.h 24 25clean: 26 rm -f *.o *.a *.so *.lo *.tlo *.to config.cache config.log *.out core 27