home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / apach134.arj / APACH134.ZIP / src / main / Makefile.tmpl < prev    next >
Encoding:
Makefile  |  1998-09-07  |  7.5 KB  |  169 lines

  1.  
  2. CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
  3. LIBS=$(EXTRA_LIBS) $(LIBS1)
  4. INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
  5. LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
  6.  
  7. LIB=  libmain.a
  8. HEADERS= test_char.h uri_delims.h 
  9.  
  10. OBJS= alloc.o buff.o \
  11.       http_config.o http_core.o http_log.o \
  12.       http_main.o http_protocol.o http_request.o http_vhost.o \
  13.       util.o util_date.o util_script.o util_uri.o util_md5.o \
  14.       md5c.o rfc1413.o
  15.  
  16. .c.o:
  17.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  18.  
  19. all: $(HEADERS) $(LIB)
  20.  
  21. $(LIB): $(OBJS)
  22.     rm -f $@
  23.     ar cr $@ $(OBJS)
  24.     $(RANLIB) $@
  25.  
  26. clean:
  27.     rm -f *.o $(LIB) uri_delims.h gen_uri_delims test_char.h gen_test_char
  28.  
  29. distclean: clean
  30.     -rm -f Makefile
  31.  
  32. uri_delims.h: gen_uri_delims
  33.     ./gen_uri_delims >uri_delims.h
  34.  
  35. gen_uri_delims: gen_uri_delims.o
  36.     $(CC) $(CFLAGS) $(LDFLAGS) -o gen_uri_delims gen_uri_delims.o $(LIBS)
  37.  
  38. test_char.h: gen_test_char
  39.     ./gen_test_char >test_char.h
  40.  
  41. gen_test_char: gen_test_char.o
  42.     $(CC) $(CFLAGS) $(LDFLAGS) -o gen_test_char gen_test_char.o $(LIBS)
  43.  
  44. # We really don't expect end users to use this rule.  It works only with
  45. # gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
  46. # using it.
  47. depend:
  48.     cp Makefile.tmpl Makefile.tmpl.bak \
  49.         && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
  50.         && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
  51.         && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
  52.                -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
  53.         > Makefile.tmpl \
  54.         && rm Makefile.new
  55.  
  56. #Dependencies
  57.  
  58. $(OBJS): Makefile
  59.  
  60. # DO NOT REMOVE
  61. alloc.o: alloc.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  62.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  63.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  64.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  65.  $(INCDIR)/multithread.h $(INCDIR)/http_log.h
  66. buff.o: buff.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  67.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  68.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  69.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  70.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h
  71. gen_test_char.o: gen_test_char.c $(INCDIR)/httpd.h \
  72.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  73.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  74.  $(INCDIR)/hsregex.h $(INCDIR)/alloc.h $(INCDIR)/buff.h \
  75.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h
  76. gen_uri_delims.o: gen_uri_delims.c
  77. http_config.o: http_config.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  78.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  79.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  80.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  81.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
  82.  $(INCDIR)/http_request.h $(INCDIR)/http_conf_globals.h \
  83.  $(INCDIR)/http_vhost.h $(INCDIR)/explain.h
  84. http_core.o: http_core.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  85.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  86.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  87.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  88.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h \
  89.  $(INCDIR)/http_protocol.h $(INCDIR)/http_request.h \
  90.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_vhost.h \
  91.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h $(INCDIR)/rfc1413.h \
  92.  $(INCDIR)/util_md5.h $(INCDIR)/ap_md5.h $(INCDIR)/scoreboard.h \
  93.  $(INCDIR)/fnmatch.h
  94. http_log.o: http_log.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  95.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  96.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  97.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  98.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
  99.  $(INCDIR)/http_main.h
  100. http_main.o: http_main.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  101.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  102.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  103.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  104.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h $(INCDIR)/http_config.h \
  105.  $(INCDIR)/http_protocol.h $(INCDIR)/http_request.h \
  106.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_core.h \
  107.  $(INCDIR)/http_vhost.h $(INCDIR)/util_script.h \
  108.  $(INCDIR)/scoreboard.h $(INCDIR)/multithread.h $(INCDIR)/explain.h
  109. http_protocol.o: http_protocol.c $(INCDIR)/httpd.h \
  110.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  111.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  112.  $(INCDIR)/hsregex.h $(INCDIR)/alloc.h $(INCDIR)/buff.h \
  113.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  114.  $(INCDIR)/http_core.h $(INCDIR)/http_protocol.h \
  115.  $(INCDIR)/http_main.h $(INCDIR)/http_request.h \
  116.  $(INCDIR)/http_vhost.h $(INCDIR)/http_log.h $(INCDIR)/util_date.h \
  117.  $(INCDIR)/http_conf_globals.h
  118. http_request.o: http_request.c $(INCDIR)/httpd.h \
  119.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  120.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  121.  $(INCDIR)/hsregex.h $(INCDIR)/alloc.h $(INCDIR)/buff.h \
  122.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  123.  $(INCDIR)/http_request.h $(INCDIR)/http_core.h \
  124.  $(INCDIR)/http_protocol.h $(INCDIR)/http_conf_globals.h \
  125.  $(INCDIR)/http_log.h $(INCDIR)/http_main.h $(INCDIR)/scoreboard.h \
  126.  $(INCDIR)/fnmatch.h
  127. http_vhost.o: http_vhost.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  128.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  129.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  130.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  131.  $(INCDIR)/http_config.h $(INCDIR)/http_conf_globals.h \
  132.  $(INCDIR)/http_log.h $(INCDIR)/http_vhost.h \
  133.  $(INCDIR)/http_protocol.h
  134. md5c.o: md5c.c $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  135.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  136.  $(INCDIR)/hsregex.h $(INCDIR)/ap_md5.h
  137. rfc1413.o: rfc1413.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  138.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  139.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  140.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  141.  $(INCDIR)/http_log.h $(INCDIR)/rfc1413.h $(INCDIR)/http_main.h
  142. util.o: util.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  143.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  144.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  145.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  146.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_log.h test_char.h
  147. util_date.o: util_date.c $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  148.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  149.  $(INCDIR)/hsregex.h $(INCDIR)/util_date.h
  150. util_md5.o: util_md5.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  151.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  152.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  153.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  154.  $(INCDIR)/util_md5.h $(INCDIR)/ap_md5.h
  155. util_script.o: util_script.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  156.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  157.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  158.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  159.  $(INCDIR)/http_config.h $(INCDIR)/http_conf_globals.h \
  160.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h \
  161.  $(INCDIR)/http_protocol.h $(INCDIR)/http_core.h \
  162.  $(INCDIR)/http_request.h $(INCDIR)/util_script.h \
  163.  $(INCDIR)/util_date.h
  164. util_uri.o: util_uri.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  165.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  166.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  167.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  168.  $(INCDIR)/http_log.h $(INCDIR)/http_conf_globals.h uri_delims.h
  169.