home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / CONTRIB / HTTPD / HTTPD_SO.TAR / httpd_1.3 / src / Makefile < prev    next >
Encoding:
Makefile  |  1994-05-07  |  3.2 KB  |  123 lines

  1. # Makefile for NCSA's httpd. 
  2.  
  3. # For normal machines with ANSI compilers
  4. #CC= cc
  5. # For Suns or other non-ANSI platforms. Please make sure your gcc is
  6. # 2.0 or later, as 1.40 seems to create bad code for the Sun 4.
  7. CC= gcc 
  8.  
  9. # CFLAGS, compile flags.
  10.  
  11. # If you want no reverse hostname resolution, use -DMINIMAL_DNS
  12. # If you want to have more secure hostname resolution at the cost of some 
  13. # performance, use -DMAXIMUM_DNS
  14. # If you want the optional PEM/PGP authentication, use -DPEM_AUTH
  15. # If you want to have the server check the execute bit of an HTML file to
  16. # determine if it is a parsed file, use -DXBITHACK
  17.  
  18. #CFLAGS= -O2
  19. CFLAGS= -g
  20.  
  21. # Place here any extra libraries you may need to link to. You
  22. # shouldn't have to.
  23. EXTRA_LIBS=
  24.  
  25. # AUX_CFLAGS are system-specific control flags.
  26. # NOTE: IF YOU DO NOT CHOOSE ONE OF THESE, EDIT httpd.h AND CHOOSE
  27. # SETTINGS FOR THE SYSTEM FLAGS. IF YOU DON'T, BAD THINGS WILL HAPPEN.
  28.  
  29. # For SunOS 4
  30. AUX_CFLAGS= -DSUNOS4
  31. # For Solaris 2. NOTE: Lots of problems have been identified with compiling
  32. # httpd under Solaris. Use with caution. If you see aberrant behavior with
  33. # httpd under Solaris 2, please mail us.
  34. #AUX_CFLAGS= -DSOLARIS2
  35. #EXTRA_LIBS= -lsocket -lnsl
  36. # For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
  37. # user-supported directories
  38. #AUX_CFLAGS= -DIRIX
  39. #EXTRA_LIBS= -lsun
  40. # For HP-UX
  41. #AUX_CFLAGS= -DHPUX
  42. # For AIX
  43. #AUX_CFLAGS= -DAIX -U__STR__
  44. # For Ultrix
  45. #AUX_CFLAGS= -DULTRIX
  46. # For DEC OSF/1
  47. #AUX_CFLAGS= -DOSF1
  48. # For NeXT
  49. #AUX_CFLAGS= -DNEXT
  50. # For Sequent
  51. #AUX_CFLAGS= -DSEQUENT
  52. # For Linux -m486 ONLY IF YOU HAVE 486 BINARY SUPPORT IN KERNEL
  53. #AUX_CFLAGS= -DLINUX
  54. # For A/UX
  55. #AUX_CFLAGS= -DAUX
  56. #EXTRA_LIBS= -lbsd -lposix -s
  57. # For SCO ODT
  58. # libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
  59. # /SLS/lng225b.ltr.Z
  60. #AUX_CFLAGS= -DSCO
  61. #EXTRA_LIBS= -lPW -lsocket -lmalloc -lcrypt_i
  62. # For SVR4
  63. #AUX_CFLAGS= -DSVR4
  64. #EXTRA_LIBS= -lsocket -lnsl -lc
  65. # For Amdahl UTS 2.1
  66. # -Xa enables ANSI mode, -eft is expanded types
  67. #AUX_CFLAGS= -Xa -eft -DUTS21
  68. #EXTRA_LIBS= -lsocket -lbsd -la
  69. # For HP/Apollo Domain/OS
  70. #AUX_CFLAGS= -DAPOLLO
  71.  
  72. # Place here any flags you may need upon linking, such as a flag to
  73. # prevent dynamic linking (if desired)
  74. LFLAGS= 
  75.  
  76. # You shouldn't have to edit anything else.
  77.  
  78. OBJS=http_config.o httpd.o http_request.o util.o http_dir.o \
  79. http_alias.o http_log.o http_mime.o http_access.o http_auth.o \
  80. http_get.o http_post.o http_script.o http_include.o rfc931.o \
  81. http_put.o http_delete.o
  82.  
  83. .c.o:
  84.     $(CC) -c $(CFLAGS) $(AUX_CFLAGS) $<
  85.  
  86. all: httpd
  87.  
  88. ibm:
  89.     make tar AUX_CFLAGS=-DAIX CC=gcc CFLAGS=-O2
  90.  
  91. sun:
  92.     make tar AUX_CFLAGS=-DSUNOS4 CC=gcc CFLAGS=-O2
  93.  
  94. hp:
  95.     make tar AUX_CFLAGS=-DHPUX CC=gcc CFLAGS=-O2
  96.  
  97. sgi:
  98.     make tar AUX_CFLAGS=-DIRIX EXTRA_LIBS=-lsun CC=cc CFLAGS=-O2
  99.  
  100. decmips:
  101.     make tar AUX_CFLAGS=-DULTRIX CC=cc CFLAGS=-O2
  102.  
  103. decaxp:
  104.     make tar AUX_CFLAGS=-DOSF1 CC=cc CFLAGS=-O2
  105.  
  106. httpd: $(OBJS)
  107.     $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  108.  
  109. purify: $(OBJS)
  110.     purify -logfile=/X11/robm/httpd/logs/pure_log \
  111.            -program-name=/X11/robm/httpd/src/httpd \
  112.     $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  113.  
  114. tar: $(OBJS)
  115.     $(CC) $(LFLAGS) -o ../httpd $(OBJS) $(EXTRA_LIBS)
  116.     rm -f $(OBJS)
  117.  
  118.  
  119. $(OBJS): Makefile httpd.h
  120.  
  121. clean:
  122.     rm -f httpd $(OBJS) *pure*
  123.