1 diff -ruN ppp-2.4.2-old/chat/Makefile.linux ppp-2.4.2-new/chat/Makefile.linux
2 --- ppp-2.4.2-old/chat/Makefile.linux 2004-01-13 04:57:55.000000000 +0100
3 +++ ppp-2.4.2-new/chat/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
5 CDEF4= -DFNDELAY=O_NDELAY # Old name value
6 CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
8 -COPTS= -O2 -g -pipe $(CDEFS)
9 -CFLAGS= $(COPTS) $(CDEFS)
11 +COMPILE_FLAGS = $(CDEFS)
12 +CFLAGS = $(COPTS) $(COMPILE_FLAGS)
16 diff -ruN ppp-2.4.2-old/pppd/Makefile.linux ppp-2.4.2-new/pppd/Makefile.linux
17 --- ppp-2.4.2-old/pppd/Makefile.linux 2003-11-27 22:55:19.000000000 +0100
18 +++ ppp-2.4.2-new/pppd/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
20 # Uncomment the next line to include support for PPP packet filtering.
21 # This requires that the libpcap library and headers be installed
22 # and that the kernel driver support PPP packet filtering.
26 # Uncomment the next line to enable multilink PPP (enabled by default)
27 # Linux distributions: Please leave multilink ENABLED in your builds
32 # Uncomment the next line to enable the TDB database (enabled by default.)
33 # If you enable multilink, then TDB is automatically enabled also.
34 # Linux distributions: Please leave TDB ENABLED in your builds.
45 INCLUDE_DIRS= -I../include
47 -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
48 +COMPILE_FLAGS= -DHAVE_PATHS_H
50 CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
56 -INSTALL= install -o root
61 diff -ruN ppp-2.4.2-old/pppd/plugins/Makefile.linux ppp-2.4.2-new/pppd/plugins/Makefile.linux
62 --- ppp-2.4.2-old/pppd/plugins/Makefile.linux 2004-01-13 04:56:24.000000000 +0100
63 +++ ppp-2.4.2-new/pppd/plugins/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
67 -CFLAGS = $(COPTS) -I.. -I../../include -fPIC
69 -INSTALL = install -o root
72 +COMPILE_FLAGS = -I.. -I../../include -fPIC
77 +CFLAGS = $(COPTS) $(COMPILE_FLAGS)
81 # Uncomment the next line to include the radius authentication plugin
84 PLUGINS := minconn.so passprompt.so passwordfd.so
86 # include dependencies if present
87 diff -ruN ppp-2.4.2-old/pppd/plugins/radius/Makefile.linux ppp-2.4.2-new/pppd/plugins/radius/Makefile.linux
88 --- ppp-2.4.2-old/pppd/plugins/radius/Makefile.linux 2002-11-09 12:24:42.000000000 +0100
89 +++ ppp-2.4.2-new/pppd/plugins/radius/Makefile.linux 2004-08-23 12:57:38.000000000 +0200
93 PLUGIN=radius.so radattr.so radrealms.so
94 -CFLAGS=-I../.. -I../../../include -Iradiusclient/include -O2
96 +COMPILE_FLAGS = -I../.. -I../../../include -Iradiusclient/include -fPIC
99 +CFLAGS=$(COPTS) $(COMPILE_FLAGS)
100 +LDFLAGS=-lradiusclient
102 # Uncomment the next line to include support for Microsoft's
103 # MS-CHAP authentication protocol.
105 $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)/man8
107 radius.so: radiusclient/lib/.libs/libradiusclient.a radius.o
108 - gcc -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
109 + $(CC) -o radius.so -shared radius.o radiusclient/lib/.libs/libradiusclient.a
111 radattr.so: radattr.o
112 - gcc -o radattr.so -shared radattr.o
113 + $(CC) -o radattr.so -shared radattr.o
115 radrealms.so: radrealms.o
116 - gcc -o radrealms.so -shared radrealms.o
117 + $(CC) -o radrealms.so -shared radrealms.o
120 - gcc $(CFLAGS) -c -o radius.o -fPIC radius.c
121 + $(CC) -c $(CFLAGS) radius.c -o radius.o
124 - gcc $(CFLAGS) -c -o radattr.o -fPIC radattr.c
125 + $(CC) -c $(CFLAGS) radattr.c -o radattr.o
127 radrealms.o: radrealms.c
128 - gcc $(CFLAGS) -c -o radrealms.o -fPIC radrealms.c
129 + $(CC) -c $(CFLAGS) radrealms.c -o radrealms.o
131 radiusclient/lib/.libs/libradiusclient.a:
132 test -r radiusclient/Makefile || \
134 + rm -f config.cache ; \
137 + ac_cv_func_setvbuf_reversed=no \
138 + ac_cv_func_uname=no \
139 ./configure --prefix=/usr \
144 $(MAKE) -C radiusclient
146 diff -ruN ppp-2.4.2-old/pppd/plugins/rp-pppoe/Makefile.linux ppp-2.4.2-new/pppd/plugins/rp-pppoe/Makefile.linux
147 --- ppp-2.4.2-old/pppd/plugins/rp-pppoe/Makefile.linux 2004-01-13 04:57:55.000000000 +0100
148 +++ ppp-2.4.2-new/pppd/plugins/rp-pppoe/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
150 # Version is set ONLY IN THE MAKEFILE! Don't delete this!
154 -CFLAGS=$(COPTS) -I../../../include/linux
157 +COMPILE_FLAGS = -I../../../include/linux -fPIC
159 +CFLAGS = $(COPTS) $(COMPILE_FLAGS)
163 rp-pppoe.so: libplugin.a plugin.o
164 - gcc -o rp-pppoe.so -shared plugin.o libplugin.a
165 + $(CC) -o rp-pppoe.so -shared plugin.o libplugin.a
168 $(INSTALL) -d -m 755 $(LIBDIR)
173 - gcc '-DRP_VERSION="$(VERSION)"' $(CFLAGS) -I../../.. -c -o plugin.o -fPIC plugin.c
174 + $(CC) -c $(CFLAGS) plugin.c '-DRP_VERSION="$(VERSION)"' -I../../.. -o plugin.o
176 libplugin.a: discovery.o if.o common.o debug.o
180 discovery.o: discovery.c
181 - gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o discovery.o -fPIC discovery.c
182 + $(CC) -c $(CFLAGS) discovery.c '-DVERSION="$(VERSION)"' -o discovery.o
185 - gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o if.o -fPIC if.c
186 + $(CC) -c $(CFLAGS) if.c '-DVERSION="$(VERSION)"' -o if.o
189 - gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o debug.o -fPIC debug.c
190 + $(CC) -c $(CFLAGS) debug.c '-DVERSION="$(VERSION)"' -o debug.o
193 - gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o common.o -fPIC common.c
194 + $(CC) -c $(CFLAGS) common.c '-DVERSION="$(VERSION)"' -o common.o
196 diff -ruN ppp-2.4.2-old/pppdump/Makefile.linux ppp-2.4.2-new/pppdump/Makefile.linux
197 --- ppp-2.4.2-old/pppdump/Makefile.linux 1999-07-26 13:09:29.000000000 +0200
198 +++ ppp-2.4.2-new/pppdump/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
200 -CFLAGS= -O -I../include/net
203 +COMPILE_FLAGS = -I../include/net
204 +CFLAGS= $(COPTS) $(COMPILE_FLAGS)
206 OBJS = pppdump.o bsd-comp.o deflate.o zlib.o
209 diff -ruN ppp-2.4.2-old/pppstats/Makefile.linux ppp-2.4.2-new/pppstats/Makefile.linux
210 --- ppp-2.4.2-old/pppstats/Makefile.linux 2002-11-09 12:24:43.000000000 +0100
211 +++ ppp-2.4.2-new/pppstats/Makefile.linux 2004-08-23 12:48:50.000000000 +0200
213 PPPSTATOBJS = pppstats.o
218 COMPILE_FLAGS = -I../include
221 -INSTALL= install -o root -g daemon
224 CFLAGS = $(COPTS) $(COMPILE_FLAGS)