## ## Makefile -- Build procedure for sample blosxom Apache module ## Autogenerated via ``apxs -n blosxom -g''. ## # the used tools APXS=apxs APACHECTL=apachectl # additional user defines, includes and libraries #DEF=-Dmy_define=my_value #INC=-Imy/include/dir #LIB=-Lmy/lib/dir -lmylib INC = -I ../common -I /usr/include/apache -I /usr/include/boost-1_33_1 LIB = -L /usr/lib -l httpd.dll MODULE_BASE = mod_ MODULE_NAME = fdocwiki MODULE_DSO = $(MODULE_BASE)$(MODULE_NAME).dll SRCS = $(MODULE_DSO:.dll=.cpp) APX_SRCS = $(SRCS:.cpp=.c) # the default target all: $(MODULE_DSO) %.c: %.cpp ln -s $< $@ # compile the DSO file $(MODULE_DSO): $(APX_SRCS) $(APXS) -c -S CC=g++ -S LD_SHLIB=g++ $(DEF) $(INC) $(LIB) $< # install the DSO file into the Apache installation # and activate it in the Apache configuration install: all $(APXS) -i -a -n '$(MODULE_NAME)' $(MODULE_DSO) # cleanup clean: -rm -f *.o $(MODULE_DSO) # simple test test: reload lynx -mime_header http://localhost/$(MODULE_NAME) # reload the module by installing and restarting Apache reload: install restart # the general Apache start/restart/stop procedures start: $(APACHECTL) start restart: $(APACHECTL) restart stop: $(APACHECTL) stop .PHONY: %.cpp