home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume20 / log_tcp / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1991-05-22  |  1.4 KB  |  57 lines

  1. # @(#) Makefile 1.2 91/05/20 13:28:06
  2.  
  3. ## Begin configuration options
  4.  
  5. # If you want to enable host access control, define the HOST_ACCESS macro
  6. # in the  CFLAGS line. For example,
  7. #
  8. # CFLAGS = -O -DHOSTS_ACCESS 
  9. #
  10. # Note: host access control requires the strtok() and strchr() routines.
  11. #
  12. # If your library supports NIS-style netgroups, compile with -DNETGROUP
  13. #
  14. # If your C library does not have memcmp(3), compile with -Dmemcmp=bcmp.
  15. #
  16. # Compile with -DPARANOID if you want to refuse connections from hosts
  17. # with names that do not match their address.
  18.  
  19. CFLAGS    = -O -DHOSTS_ACCESS -DNETGROUP -DPARANOID
  20.  
  21. # Include the file strcasecmp.o if it is not provided by your C library.
  22.  
  23. AUX_OBJ    = # strcasecmp.o
  24.  
  25. # Some System-V versions require that you explicitly specify the networking
  26. # libraries.
  27.  
  28. LIBS    =
  29.  
  30. ## End configuration options
  31.  
  32. TCPD_OBJ= tcpd.o fromhost.o hosts_access.o
  33. MISC_OBJ= miscd.o fromhost.o hosts_access.o
  34.  
  35. all:    tcpd miscd
  36.  
  37. tcpd:    $(TCPD_OBJ) $(AUX_OBJ)
  38.     $(CC) $(CFLAGS) -o $@ $(TCPD_OBJ) $(AUX_OBJ) $(LIBS)
  39.  
  40. miscd:    $(MISC_OBJ) $(AUX_OBJ)
  41.     $(CC) $(CFLAGS) -o $@ $(MISC_OBJ) $(AUX_OBJ) $(LIBS)
  42.  
  43. shar:    
  44.     @shar README miscd.c tcpd.c fromhost.c hosts_access.c Makefile \
  45.     hosts_access.5 strcasecmp.c BLURB
  46.  
  47. archive:
  48.     $(ARCHIVE) README miscd.c tcpd.c fromhost.c hosts_access.c Makefile \
  49.     hosts_access.5 strcasecmp.c BLURB
  50.  
  51. clean:
  52.     rm -f tcpd miscd *.o core
  53.  
  54. lint:
  55.     lint -DHOSTS_ACCESS tcpd.c fromhost.c hosts_access.c
  56.     lint -DHOSTS_ACCESS miscd.c fromhost.c hosts_access.c
  57.