home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / apach134.arj / APACH134.ZIP / src / support / Makefile < prev    next >
Encoding:
Makefile  |  1999-01-10  |  3.5 KB  |  120 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=-los -lap $(EXTRA_LIBS) $(LIBS1)
  41. INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
  42. LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) -L$(OSDIR) -L$(SRCDIR)/ap
  43.  
  44. TARGETS=htpasswd htdigest rotatelogs logresolve ab apxs
  45.  
  46. OBJS=htpasswd.o htdigest.o rotatelogs.o logresolve.o ab.o
  47.  
  48. .c.o: 
  49.     $(CC) -c $(INCLUDES) $(CFLAGS) $<
  50.  
  51. all: $(TARGETS)
  52.  
  53. htpasswd: htpasswd.o
  54.     $(CC) $(CFLAGS) htpasswd.o -o htpasswd $(LDFLAGS) $(LIBS)
  55.  
  56. htdigest: htdigest.o
  57.     $(CC) $(CFLAGS) htdigest.o -o htdigest $(LDFLAGS) $(LIBS)
  58.  
  59. rotatelogs: rotatelogs.o
  60.     $(CC) $(CFLAGS) rotatelogs.o -o rotatelogs $(LDFLAGS) $(LIBS)
  61.  
  62. logresolve: logresolve.o
  63.     $(CC) $(CFLAGS) logresolve.o -o logresolve $(LDFLAGS) $(LIBS)
  64.  
  65. ab: ab.o
  66.     $(CC) $(CFLAGS) ab.o -o ab $(LDFLAGS) $(LIBS)
  67.  
  68. apxs: apxs.pl
  69.     sed <apxs.pl >apxs \
  70.         -e 's%@TARGET@%$(TARGET)%g' \
  71.         -e 's%@CC@%$(CC)%g' \
  72.         -e 's%@CFLAGS@%$(CFLAGS)%g' \
  73.         -e 's%@CFLAGS_SHLIB@%$(CFLAGS_SHLIB)%g' \
  74.         -e 's%@LD_SHLIB@%$(LD_SHLIB)%g' \
  75.         -e 's%@LDFLAGS_SHLIB@%$(LDFLAGS_SHLIB)%g' \
  76.         -e 's%@LIBS_SHLIB@%$(LIBS_SHLIB)%g' && chmod a+x apxs
  77.  
  78. suexec: suexec.o
  79.     $(CC) $(CFLAGS) suexec.o -o suexec $(LDFLAGS) $(LIBS)
  80.  
  81. clean:
  82.     rm -f $(TARGETS) *.o
  83.  
  84. distclean: clean
  85.     -rm -f Makefile
  86.  
  87. # We really don't expect end users to use this rule.  It works only with
  88. # gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
  89. # using it.
  90. depend:
  91.     cp Makefile.tmpl Makefile.tmpl.bak \
  92.         && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
  93.         && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
  94.         && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
  95.                -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
  96.         > Makefile.tmpl \
  97.         && rm Makefile.new
  98.  
  99. #Dependencies
  100.  
  101. $(OBJS): Makefile
  102.  
  103. # DO NOT REMOVE
  104. ab.o: ab.c $(INCDIR)/ap_config.h $(INCDIR)/ap_config_auto.h \
  105.  $(OSDIR)/os.h $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h
  106. htdigest.o: htdigest.c $(INCDIR)/ap_config.h \
  107.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  108.  $(INCDIR)/hsregex.h ../main/md5c.c $(INCDIR)/ap_md5.h
  109. htpasswd.o: htpasswd.c $(INCDIR)/ap_config.h \
  110.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  111.  $(INCDIR)/hsregex.h
  112. logresolve.o: logresolve.c $(INCDIR)/ap_config.h \
  113.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  114.  $(INCDIR)/hsregex.h
  115. rotatelogs.o: rotatelogs.c $(INCDIR)/ap_config.h \
  116.  $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \
  117.  $(INCDIR)/hsregex.h
  118. suexec.o: suexec.c $(INCDIR)/ap_config.h $(INCDIR)/ap_config_auto.h \
  119.  $(OSDIR)/os.h $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h suexec.h
  120.