rse 98/05/28 03:55:18
Modified: src/support apxs.pl Log: Make the generated Makefile from APXS more user friendly by providing more (adjustable) defines and a test target similar to the one mentioned in the generated mod_xxx.c file. Revision Changes Path 1.9 +15 -6 apache-1.3/src/support/apxs.pl Index: apxs.pl =================================================================== RCS file: /export/home/cvs/apache-1.3/src/support/apxs.pl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- apxs.pl 1998/05/27 18:25:12 1.8 +++ apxs.pl 1998/05/28 10:55:18 1.9 @@ -483,25 +483,34 @@ ## Autogenerated via ``apxs -n %NAME% -g''. ## -# additional defines and includes +# the used tools +APXS=apxs +APACHECTL=apachectl + +# additional defines, includes and libraries #DEF=-Dmy_define=my_value #INC=-Imy/include/dir +#LIB=-Lmy/lib/dir -lmylib # the default target all: mod_%NAME%.so # compile the shared object file mod_%NAME%.so: mod_%NAME%.c - apxs -c $(DEF) $(INC) mod_%NAME%.c + $(APXS) -c $(DEF) $(INC) $(LIB) mod_%NAME%.c # install the shared object file into Apache install: all - apxs -i -a -n '%NAME%' mod_%NAME%.so + $(APXS) -i -a -n '%NAME%' mod_%NAME%.so # cleanup clean: -rm -f mod_%NAME%.o mod_%NAME%.so +# simple test +test: reload + lynx -mime_header http://localhost/%NAME% + # install and activate shared object by reloading Apache to # force a reload of the shared object file reload: install restart @@ -509,11 +518,11 @@ # the general Apache start/restart/stop # procedures start: - apachectl start + $(APACHECTL) start restart: - apachectl restart + $(APACHECTL) restart stop: - apachectl stop + $(APACHECTL) stop -=#=- /*