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

  1.  
  2. LIB=libproxy.$(LIBEXT)
  3.  
  4. OBJS=\
  5.      mod_proxy.o \
  6.      proxy_cache.o proxy_connect.o proxy_ftp.o proxy_http.o proxy_util.o
  7. OBJS_PIC=\
  8.      mod_proxy.lo \
  9.      proxy_cache.lo proxy_connect.lo proxy_ftp.lo proxy_http.lo proxy_util.lo
  10.  
  11. all: lib
  12.  
  13. lib: $(LIB)
  14.  
  15. libproxy.a: $(OBJS)
  16.     rm -f $@
  17.     ar cr $@ $(OBJS)
  18.     $(RANLIB) $@
  19.  
  20. libproxy.so: $(OBJS_PIC)
  21.     rm -f $@
  22.     $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS_PIC) $(LIBS_SHLIB)
  23.  
  24. .SUFFIXES: .o .lo
  25.  
  26. .c.o:
  27.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  28.  
  29. .c.lo:
  30.     $(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $< && mv $*.o $*.lo
  31.  
  32. clean:
  33.     rm -f $(OBJS) $(OBJS_PIC) $(LIB)
  34.  
  35. distclean: clean
  36.     -rm -f Makefile
  37.  
  38. # We really don't expect end users to use this rule.  It works only with
  39. # gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
  40. # using it.
  41. depend:
  42.     cp Makefile.tmpl Makefile.tmpl.bak \
  43.         && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
  44.         && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
  45.         && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
  46.                -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
  47.         > Makefile.tmpl \
  48.         && rm Makefile.new
  49.  
  50. #Dependencies
  51.  
  52. $(OBJS) $(OBJS_PIC): Makefile
  53.  
  54. # DO NOT REMOVE
  55. mod_proxy.o: mod_proxy.c mod_proxy.h $(INCDIR)/httpd.h \
  56.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  57.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  58.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  59.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  60.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  61.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  62.  $(INCDIR)/http_log.h $(INCDIR)/http_vhost.h \
  63.  $(INCDIR)/http_request.h
  64. proxy_cache.o: proxy_cache.c mod_proxy.h $(INCDIR)/httpd.h \
  65.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  66.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  67.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  68.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  69.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  70.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  71.  $(INCDIR)/http_log.h $(INCDIR)/http_main.h \
  72.  $(INCDIR)/util_date.h $(INCDIR)/multithread.h \
  73.  $(INCDIR)/ap_md5.h
  74. proxy_connect.o: proxy_connect.c mod_proxy.h $(INCDIR)/httpd.h \
  75.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  76.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  77.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  78.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  79.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  80.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  81.  $(INCDIR)/http_log.h $(INCDIR)/http_main.h
  82. proxy_ftp.o: proxy_ftp.c mod_proxy.h $(INCDIR)/httpd.h \
  83.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  84.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  85.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  86.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  87.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  88.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  89.  $(INCDIR)/http_main.h $(INCDIR)/http_log.h
  90. proxy_http.o: proxy_http.c mod_proxy.h $(INCDIR)/httpd.h \
  91.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  92.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  93.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  94.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  95.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  96.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  97.  $(INCDIR)/http_log.h $(INCDIR)/http_main.h \
  98.  $(INCDIR)/http_core.h $(INCDIR)/util_date.h
  99. proxy_util.o: proxy_util.c mod_proxy.h $(INCDIR)/httpd.h \
  100.  $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
  101.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
  102.  $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
  103.  $(INCDIR)/alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
  104.  $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
  105.  $(INCDIR)/http_protocol.h $(INCDIR)/explain.h \
  106.  $(INCDIR)/http_main.h $(INCDIR)/ap_md5.h \
  107.  $(INCDIR)/multithread.h $(INCDIR)/http_log.h \
  108.  $(INCDIR)/util_date.h
  109.