12_makefile_config 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -45,7 +45,7 @@ what:
  4. #
  5. # SysV.4 Solaris 2.x OSF AIX
  6. #REAL_DAEMON_DIR=/usr/sbin
  7. -#
  8. +REAL_DAEMON_DIR=/usr/sbin
  9. # BSD 4.4
  10. #REAL_DAEMON_DIR=/usr/libexec
  11. #
  12. @@ -513,6 +513,7 @@ VSYSLOG = -Dvsyslog=myvsyslog
  13. # (examples: allow, deny, banners, twist and spawn).
  14. #
  15. #STYLE = -DPROCESS_OPTIONS # Enable language extensions.
  16. +STYLE = "-DPROCESS_OPTIONS -DACLEXEC"
  17. ################################################################
  18. # Optional: Changing the default disposition of logfile records
  19. @@ -536,6 +537,7 @@ VSYSLOG = -Dvsyslog=myvsyslog
  20. # The LOG_XXX names below are taken from the /usr/include/syslog.h file.
  21. FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use
  22. +FACILITY= LOG_DAEMON
  23. # The syslog priority at which successful connections are logged.
  24. @@ -632,6 +634,7 @@ TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\
  25. # lookups altogether, see the next section.
  26. PARANOID= -DPARANOID
  27. +PARANOID=
  28. ########################################
  29. # Optional: turning off hostname lookups
  30. @@ -645,6 +648,7 @@ PARANOID= -DPARANOID
  31. # mode (see previous section) and comment out the following definition.
  32. HOSTNAME= -DALWAYS_HOSTNAME
  33. +HOSTNAME=
  34. #############################################
  35. # Optional: Turning on host ADDRESS checking
  36. @@ -671,6 +675,7 @@ HOSTNAME= -DALWAYS_HOSTNAME
  37. # Solaris 2.x, and Linux. See your system documentation for details.
  38. #
  39. # KILL_OPT= -DKILL_IP_OPTIONS
  40. +KILL_OPT= -DKILL_IP_OPTIONS
  41. ## End configuration options
  42. ############################
  43. @@ -678,9 +683,10 @@ HOSTNAME= -DALWAYS_HOSTNAME
  44. # Protection against weird shells or weird make programs.
  45. SHELL = /bin/sh
  46. -.c.o:; $(CC) $(CFLAGS) -c $*.c
  47. +.c.o:; $(CC) $(CFLAGS) -o $*.o -c $*.c
  48. -CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  49. +COPTS = -O2 -g
  50. +CFLAGS = $(COPTS) -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  51. $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
  52. -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
  53. -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  54. @@ -713,11 +719,12 @@ all other: config-check tcpd tcpdmatch t
  55. config-check:
  56. @set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
  57. - @set +e; echo $(CFLAGS) >/tmp/cflags.$$$$ ; \
  58. - if cmp cflags /tmp/cflags.$$$$ ; \
  59. - then rm /tmp/cflags.$$$$ ; \
  60. - else mv /tmp/cflags.$$$$ cflags ; \
  61. + @set +e; echo $(CFLAGS) >cflags.new ; \
  62. + if cmp cflags cflags.new ; \
  63. + then rm cflags.new ; \
  64. + else mv cflags.new cflags ; \
  65. fi >/dev/null 2>/dev/null
  66. + @if [ ! -d shared ]; then mkdir shared; fi
  67. $(LIB): $(LIB_OBJ)
  68. rm -f $(LIB)