home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / PORTMAP_.TAR / portmap_3 / Makefile < prev    next >
Encoding:
Makefile  |  1994-10-11  |  3.4 KB  |  118 lines

  1. # @(#) Makefile 1.4 93/11/21 17:36:53
  2.  
  3. ####################################
  4. ### Beginning of configurable stuff.
  5.  
  6. # By default, logfile entries are written to the same file as used for
  7. # sendmail transaction logs. Change the definition of the following macro
  8. # if you disagree. See `man 3 syslog' for examples. Some syslog versions
  9. # do not provide this flexibility.
  10. #
  11. FACILITY=LOG_MAIL
  12.  
  13. # To disable host access control, comment out the following macro definition.
  14. # Note: host access control requires the strtok() and strchr() routines.
  15. # Host access control can also be turned off by providing no access control
  16. # tables. The local system, since it runs the portmap daemon, is always
  17. # treated as an authorized host.
  18.  
  19. HOSTS_ACCESS= -DHOSTS_ACCESS
  20.  
  21. # Comment out if your RPC library does not allocate privileged ports for
  22. # requests from processes with root privilege, or the new portmap will
  23. # always reject requests to register/unregister services on privileged
  24. # ports. You can find out by running "rpcinfo -p"; if all mountd and NIS
  25. # daemons use a port >= 1024 you should probably disable the next line.
  26.  
  27. CHECK_PORT = -DCHECK_PORT
  28.  
  29. # When the portmapper cannot find any local interfaces (it will complain
  30. # to the syslog daemon) your system probably has variable-length socket
  31. # address structures (struct sockaddr has a sa_len component; example:
  32. # 4.4BSD). Uncomment next macro definition in that case.
  33. #
  34. # SA_LEN = -DHAS_SA_LEN
  35.  
  36. # With verbose logging on, HP-UX 9.x leaves zombies behind when SIGCHLD
  37. # is not ignored. Enable next macro for a fix.
  38. #
  39. ZOMBIES = -DIGNORE_SIGCHLD
  40.  
  41. # Uncomment the following macro if your system does not have u_long.
  42. #
  43. # ULONG    =-Du_long="unsigned long"
  44.  
  45. # Later versions of the tcp wrapper (log_tcp package) come with a
  46. # libwrap.a object library. WRAP_DIR should specify the directory with
  47. # that library.
  48.  
  49. WRAP_DIR= .
  50.  
  51. # Auxiliary object files that may be missing from your C library.
  52. #
  53. AUX    = daemon.o # strerror.o
  54.  
  55. # Uncomment the following macro definitions if you are running SYSV.4.
  56. # This won't help much because SYSV.4 uses rpcbind instead of portmap.
  57. #
  58. # CC    = /usr/ucb/cc
  59. # LIBS    = -lrpcsoc
  60. # SYS    = -DSYSV40
  61.  
  62. # Auxiliary libraries that you may have to specify
  63. #
  64.  
  65. LIBS    = -lbsd # -lrpc
  66.  
  67. LINUX = -D_USE_BSD -D_USE_BSD_SIGNAL
  68.  
  69. ### End of configurable stuff.
  70. ##############################
  71.  
  72. SHELL    = /bin/sh
  73.  
  74. COPT    = $(HOSTS_ACCESS) $(CHECK_PORT) \
  75.     $(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) $(LINUX)
  76.  
  77. CFLAGS    = $(COPT) -O
  78. OBJECTS    = portmap.o pmap_check.o from_local.o $(AUX)
  79.  
  80. all:    portmap pmap_dump pmap_set
  81.  
  82. portmap: $(OBJECTS) $(WRAP_DIR)/libwrap.a
  83.     $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(WRAP_DIR)/libwrap.a $(LIBS)
  84.  
  85. pmap_dump: pmap_dump.c
  86.     $(CC) $(CFLAGS) -o $@ $? $(LIBS)
  87.  
  88. pmap_set: pmap_set.c
  89.     $(CC) $(CFLAGS) -o $@ $? $(LIBS)
  90.  
  91. from_local: from_local.c
  92.     cc $(CFLAGS) -DTEST -o $@ from_local.c
  93.  
  94. lint:    
  95.     lint $(COPT) $(OBJECTS:%.o=%.c)
  96.  
  97. clean:
  98.     rm -f *.o portmap pmap_dump pmap_set from_local core
  99.  
  100. shar:
  101.     @shar README Makefile portmap.c daemon.c strerror.c diffs_wrt_bsd \
  102.     pmap_dump.c pmap_set.c from_local.c pmap_check.c pmap_check.h BLURB
  103.  
  104. diffs_wrt_bsd: portmap.c.bsd portmap.c daemon.c.bsd daemon.c
  105.     -(diff -c portmap.c.bsd portmap.c; diff -c daemon.c.bsd daemon.c) >$@
  106.  
  107. deps:
  108.     @$(CC) -M $(CFLAGS) *.c | grep -v /usr/include |sed 's/\.\///'
  109.  
  110. daemon.o: daemon.c
  111. from_local.o: from_local.c
  112. pmap_check.o: pmap_check.c pmap_check.h Makefile
  113. pmap_dump.o: pmap_dump.c
  114. pmap_set.o: pmap_set.c
  115. portmap.o: portmap.c
  116. portmap.o: pmap_check.h
  117. strerror.o: strerror.c
  118.