home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / apach134.arj / APACH134.ZIP / src / main / Makefile < prev    next >
Encoding:
Makefile  |  1999-01-10  |  8.5 KB  |  206 lines

  1. ##
  2. ##  Apache Makefile, automatically generated by Configure script.
  3. ##  Hand-edited changes will be lost if the Configure script is re-run.
  4. ##  Sources: - ../Makefile.config (via Configuration)
  5. ##           - ./Makefile.tmpl
  6. ##
  7.  
  8. ##
  9. ##  Inherited Makefile options from Configure script
  10. ##  (Begin of automatically generated section)
  11. ##
  12. SRCDIR=..
  13. EXTRA_CFLAGS=
  14. EXTRA_LDFLAGS=-s
  15. EXTRA_LIBS=
  16. EXTRA_INCLUDES=
  17. EXTRA_DEPS=
  18. OPTIM=-O2
  19. OSDIR=$(SRCDIR)/os/os2
  20. INCDIR=$(SRCDIR)/include
  21. INCLUDES0=-I$(OSDIR) -I$(INCDIR)
  22. SHELL=sh
  23. CC=gcc
  24. CPP=gcc -E
  25. TARGET=httpd
  26. CFLAGS1= -DOS2 -Zbsd-signals -Zbin-files -DTCPIPV4 -g -DUSE_HSREGEX
  27. INCLUDES1=
  28. LIBS_SHLIB=
  29. LDFLAGS1= -Zexe
  30. MFLAGS_STATIC=--no-print-directory
  31. REGLIB=regex/libregex.a
  32. RANLIB=true
  33. LIBS1= -lsocket -lufc -lbsd
  34. ##
  35. ##  (End of automatically generated section)
  36. ##
  37.  
  38.  
  39. CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
  40. LIBS=$(EXTRA_LIBS) $(LIBS1)
  41. INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
  42. LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
  43.  
  44. LIB=  libmain.a
  45. HEADERS= test_char.h uri_delims.h 
  46.  
  47. OBJS= alloc.o buff.o \
  48.       http_config.o http_core.o http_log.o \
  49.       http_main.o http_protocol.o http_request.o http_vhost.o \
  50.       util.o util_date.o util_script.o util_uri.o util_md5.o \
  51.       md5c.o rfc1413.o
  52.  
  53. .c.o:
  54.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  55.  
  56. all: $(HEADERS) $(LIB)
  57.  
  58. $(LIB): $(OBJS)
  59.     rm -f $@
  60.     ar cr $@ $(OBJS)
  61.     $(RANLIB) $@
  62.  
  63. clean:
  64.     rm -f *.o $(LIB) uri_delims.h gen_uri_delims test_char.h gen_test_char
  65.  
  66. distclean: clean
  67.     -rm -f Makefile
  68.  
  69. uri_delims.h: gen_uri_delims
  70.     ./gen_uri_delims >uri_delims.h
  71.  
  72. gen_uri_delims: gen_uri_delims.o
  73.     $(CC) $(CFLAGS) $(LDFLAGS) -o gen_uri_delims gen_uri_delims.o $(LIBS)
  74.  
  75. test_char.h: gen_test_char
  76.     ./gen_test_char >test_char.h
  77.  
  78. gen_test_char: gen_test_char.o
  79.     $(CC) $(CFLAGS) $(LDFLAGS) -o gen_test_char gen_test_char.o $(LIBS)
  80.  
  81. # We really don't expect end users to use this rule.  It works only with
  82. # gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
  83. # using it.
  84. depend:
  85.     cp Makefile.tmpl Makefile.tmpl.bak \
  86.         && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
  87.         && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
  88.         && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
  89.                -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
  90.         > Makefile.tmpl \
  91.         && rm Makefile.new
  92.  
  93. #Dependencies
  94.  
  95. $(OBJS): Makefile
  96.  
  97. # DO NOT REMOVE
  98. alloc.o: alloc.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  99.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  100.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  101.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  102.  $(INCDIR)/multithread.h $(INCDIR)/http_log.h
  103. buff.o: buff.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  104.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  105.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  106.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  107.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h
  108. gen_test_char.o: gen_test_char.c $(INCDIR)/httpd.h \
  109.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  110.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  111.  $(INCDIR)/hsregex.h $(INCDIR)/alloc.h $(INCDIR)/buff.h \
  112.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h
  113. gen_uri_delims.o: gen_uri_delims.c
  114. http_config.o: http_config.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  115.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  116.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  117.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  118.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
  119.  $(INCDIR)/http_request.h $(INCDIR)/http_conf_globals.h \
  120.  $(INCDIR)/http_vhost.h $(INCDIR)/explain.h
  121. http_core.o: http_core.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  122.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  123.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  124.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  125.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h \
  126.  $(INCDIR)/http_protocol.h $(INCDIR)/http_request.h \
  127.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_vhost.h \
  128.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h $(INCDIR)/rfc1413.h \
  129.  $(INCDIR)/util_md5.h $(INCDIR)/ap_md5.h $(INCDIR)/scoreboard.h \
  130.  $(INCDIR)/fnmatch.h
  131. http_log.o: http_log.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  132.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  133.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  134.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  135.  $(INCDIR)/http_config.h $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
  136.  $(INCDIR)/http_main.h
  137. http_main.o: http_main.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_main.h $(INCDIR)/http_log.h $(INCDIR)/http_config.h \
  142.  $(INCDIR)/http_protocol.h $(INCDIR)/http_request.h \
  143.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_core.h \
  144.  $(INCDIR)/http_vhost.h $(INCDIR)/util_script.h \
  145.  $(INCDIR)/scoreboard.h $(INCDIR)/multithread.h $(INCDIR)/explain.h
  146. http_protocol.o: http_protocol.c $(INCDIR)/httpd.h \
  147.  $(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)/alloc.h $(INCDIR)/buff.h \
  150.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  151.  $(INCDIR)/http_core.h $(INCDIR)/http_protocol.h \
  152.  $(INCDIR)/http_main.h $(INCDIR)/http_request.h \
  153.  $(INCDIR)/http_vhost.h $(INCDIR)/http_log.h $(INCDIR)/util_date.h \
  154.  $(INCDIR)/http_conf_globals.h
  155. http_request.o: http_request.c $(INCDIR)/httpd.h \
  156.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  157.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  158.  $(INCDIR)/hsregex.h $(INCDIR)/alloc.h $(INCDIR)/buff.h \
  159.  $(INCDIR)/ap.h $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  160.  $(INCDIR)/http_request.h $(INCDIR)/http_core.h \
  161.  $(INCDIR)/http_protocol.h $(INCDIR)/http_conf_globals.h \
  162.  $(INCDIR)/http_log.h $(INCDIR)/http_main.h $(INCDIR)/scoreboard.h \
  163.  $(INCDIR)/fnmatch.h
  164. http_vhost.o: http_vhost.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_config.h $(INCDIR)/http_conf_globals.h \
  169.  $(INCDIR)/http_log.h $(INCDIR)/http_vhost.h \
  170.  $(INCDIR)/http_protocol.h
  171. md5c.o: md5c.c $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  172.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  173.  $(INCDIR)/hsregex.h $(INCDIR)/ap_md5.h
  174. rfc1413.o: rfc1413.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  175.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  176.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  177.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  178.  $(INCDIR)/http_log.h $(INCDIR)/rfc1413.h $(INCDIR)/http_main.h
  179. util.o: util.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  180.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  181.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  182.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  183.  $(INCDIR)/http_conf_globals.h $(INCDIR)/http_log.h test_char.h
  184. util_date.o: util_date.c $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  185.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  186.  $(INCDIR)/hsregex.h $(INCDIR)/util_date.h
  187. util_md5.o: util_md5.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  188.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  189.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  190.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  191.  $(INCDIR)/util_md5.h $(INCDIR)/ap_md5.h
  192. util_script.o: util_script.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  193.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  194.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  195.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  196.  $(INCDIR)/http_config.h $(INCDIR)/http_conf_globals.h \
  197.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h \
  198.  $(INCDIR)/http_protocol.h $(INCDIR)/http_core.h \
  199.  $(INCDIR)/http_request.h $(INCDIR)/util_script.h \
  200.  $(INCDIR)/util_date.h
  201. util_uri.o: util_uri.c $(INCDIR)/httpd.h $(INCDIR)/ap_config.h \
  202.  $(INCDIR)/ap_mmn.h $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  203.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h $(INCDIR)/alloc.h \
  204.  $(INCDIR)/buff.h $(INCDIR)/ap.h $(INCDIR)/util_uri.h \
  205.  $(INCDIR)/http_log.h $(INCDIR)/http_conf_globals.h uri_delims.h
  206.