f1a40283a6
the port Makefile already. no pkg change.
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2013/01/18 22:36:44 sthen Exp $
|
|
--- Makefile.orig Thu Oct 6 20:22:05 2011
|
|
+++ Makefile Fri Jan 18 22:25:27 2013
|
|
@@ -53,8 +53,8 @@ DFLAGS?= -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE
|
|
# but we use a local copy if we don't find it.
|
|
#
|
|
#KERNELSRC=/lib/modules/`uname -r`/build/
|
|
-KERNELSRC?=./linux
|
|
-OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
|
|
+#KERNELSRC?=./linux
|
|
+#OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
|
|
#
|
|
# Uncomment the following to use the kernel interface under Linux
|
|
# This requires the pppol2tp-linux-2.4.27.patch patch from contrib
|
|
@@ -80,8 +80,8 @@ OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
|
|
|
|
# Uncomment the next two lines for OpenBSD
|
|
#
|
|
-#OSFLAGS?= -DOPENBSD
|
|
-#LDLIBS?= -lutil
|
|
+OSFLAGS?= -DOPENBSD
|
|
+LDLIBS?= -lutil
|
|
|
|
# Feature flags
|
|
#
|
|
@@ -108,13 +108,13 @@ MANDIR?=$(DESTDIR)${PREFIX}/share/man
|
|
all: $(EXEC) pfc $(CONTROL_EXEC)
|
|
|
|
clean:
|
|
- rm -f $(OBJS) $(EXEC) pfc.o pfc $(CONTROL_EXEC)
|
|
+ rm -f $(OBJS) $(EXEC) $(CONTROL_EXEC)
|
|
|
|
$(EXEC): $(OBJS) $(HDRS)
|
|
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
|
|
|
$(CONTROL_EXEC): $(CONTROL_SRCS)
|
|
- $(CC) $(CONTROL_SRCS) -o $@
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(CONTROL_SRCS) -o $@
|
|
|
|
pfc:
|
|
$(CC) $(CFLAGS) -c contrib/pfc.c
|