Debian Codegraph @

debian/patches/12_makefile_config

raw
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 ################################################################
19 # Optional: Changing the default disposition of logfile records
20 @@ -536,6 +537,7 @@ VSYSLOG = -Dvsyslog=myvsyslog
21 # The LOG_XXX names below are taken from the /usr/include/syslog.h file.
22
23 FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use
24 +FACILITY= LOG_DAEMON
25
26 # The syslog priority at which successful connections are logged.
27
28 @@ -632,6 +634,7 @@ TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\
29 # lookups altogether, see the next section.
30
31 PARANOID= -DPARANOID
32 +PARANOID=
33
34 ########################################
35 # Optional: turning off hostname lookups
36 @@ -645,6 +648,7 @@ PARANOID= -DPARANOID
37 # mode (see previous section) and comment out the following definition.
38
39 HOSTNAME= -DALWAYS_HOSTNAME
40 +HOSTNAME=
41
42 #############################################
43 # Optional: Turning on host ADDRESS checking
44 @@ -671,6 +675,7 @@ HOSTNAME= -DALWAYS_HOSTNAME
45 # Solaris 2.x, and Linux. See your system documentation for details.
46 #
47 # KILL_OPT= -DKILL_IP_OPTIONS
48 +KILL_OPT= -DKILL_IP_OPTIONS
49
50 ## End configuration options
51 ############################
52 @@ -678,9 +683,10 @@ HOSTNAME= -DALWAYS_HOSTNAME
53 # Protection against weird shells or weird make programs.
54
55 SHELL = /bin/sh
56 -.c.o:; $(CC) $(CFLAGS) -c $*.c
57 +.c.o:; $(CC) $(CFLAGS) -o $*.o -c $*.c
58
59 -CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
60 +COPTS = -O2 -g
61 +CFLAGS = $(COPTS) -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
62 $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
63 -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
64 -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
65 @@ -711,14 +717,20 @@ all other: config-check tcpd tcpdmatch t
66
67 # Invalidate all object files when the compiler options (CFLAGS) have changed.
68
69 -config-check:
70 +cflags:
71 + echo $(CFLAGS) > cflags
72 +
73 +config-check: cflags
74 @set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
75 - @set +e; echo $(CFLAGS) >/tmp/cflags.$$$$ ; \
76 - if cmp cflags /tmp/cflags.$$$$ ; \
77 - then rm /tmp/cflags.$$$$ ; \
78 - else mv /tmp/cflags.$$$$ cflags ; \
79 + @set +e; echo $(CFLAGS) >cflags.new ; \
80 + if cmp cflags cflags.new ; \
81 + then rm cflags.new ; \
82 + else mv cflags.new cflags ; \
83 fi >/dev/null 2>/dev/null
84
85 +shared:
86 + mkdir -p shared
87 +
88 $(LIB): $(LIB_OBJ)
89 rm -f $(LIB)
90 $(AR) $(ARFLAGS) $(LIB) $(LIB_OBJ)