blob: 88496ed26d90868a2d2eb71092cbb2bf1c998efb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
--- Makefile.orig Sat Aug 10 03:42:22 2002
+++ Makefile Fri Apr 11 19:12:26 2003
@@ -27,11 +27,11 @@
# become runtime options) debugging flags
#
#DFLAGS= -g -O2 -DDEBUG_PPPD
-DFLAGS= -g -O2 -DDEBUG_PPPD -DDEBUG_CONTROL -DDEBUG_ENTROPY
+DFLAGS= -DDEBUG_PPPD -DDEBUG_CONTROL -DDEBUG_ENTROPY
#
# Uncomment the next line for Linux
#
-OSFLAGS= -DLINUX -I/usr/include
+#OSFLAGS= -DLINUX -I/usr/include
#
# Uncomment the following to use the kernel interface under Linux
#
@@ -39,7 +39,7 @@
#
# Uncomment the next line for FreeBSD
#
-#OSFLAGS= -DFREEBSD
+OSFLAGS= -DFREEBSD -DPREFIX=\"$(PREFIX)\"
#
# Uncomment the next line for Solaris. For solaris, at least,
# we don't want to specify -I/usr/include because it is in
@@ -54,9 +54,9 @@
# Comment the following line to disable l2tpd maintaining IP address
# pools to pass to pppd to control IP address allocation
-FFLAGS= -DIP_ALLOCATION
+#FFLAGS= -DIP_ALLOCATION
-CFLAGS= $(DFLAGS) -Wall -DSANITY $(OSFLAGS) $(FFLAGS)
+CFLAGS+= $(DFLAGS) -Wall -DSANITY $(OSFLAGS) $(FFLAGS)
HDRS=l2tp.h avp.h misc.h control.h call.h scheduler.h file.h aaa.h md5.h
OBJS=l2tpd.o pty.o misc.o control.o avp.o call.o network.o avpsend.o scheduler.o file.o aaa.o md5.o
LIBS= $(OSLIB) # -lefence # efence for malloc checking
@@ -70,4 +70,4 @@
rm -f $(OBJS) $(BIN)
$(BIN): $(OBJS) $(HDRS)
- $(CC) -o $(BIN) $(DFLAGS) $(OBJS) $(LIBS)
+ $(CC) -o $(BIN) $(CFLAGS) $(DFLAGS) $(OBJS) $(LIBS)
|