summaryrefslogtreecommitdiff
path: root/net/vtun/patches/patch-aa
blob: 3900c2756e2cc198bf03ae541b4d966c553aa971 (plain)
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
$NetBSD: patch-aa,v 1.4 2003/07/12 17:26:16 taca Exp $

--- Makefile.in.orig	2002-12-21 01:55:47.000000000 +0900
+++ Makefile.in
@@ -18,8 +18,8 @@
 #   Makefile.in,v 1.6.2.1 2001/08/06 23:16:35 maxk Exp
 #  
 CC = @CC@
-CFLAGS = @CFLAGS@ @CPPFLAGS@
-LDFLAGS = @LIBS@
+CFLAGS = @CFLAGS@ @CPPFLAGS@ ${DEFS}
+LDFLAGS = @LDFLAGS@ @LIBS@
 
 YACC = @YACC@
 YACCFLAGS = -d
@@ -41,7 +41,7 @@ VAR_DIR  = @localstatedir@
 PID_FILE = ${VAR_DIR}/run/vtund.pid
 CFG_FILE = ${ETC_DIR}/vtund.conf
 STAT_DIR = ${VAR_DIR}/log/vtund
-LOCK_DIR = ${VAR_DIR}/lock/vtund
+LOCK_DIR = ${VAR_DIR}/run/vtund
 
 DEFS = -DVTUN_CONFIG_FILE=\"$(CFG_FILE)\" -DVTUN_PID_FILE=\"$(PID_FILE)\" \
        -DVTUN_STAT_DIR=\"$(STAT_DIR)\" -DVTUN_LOCK_DIR=\"$(LOCK_DIR)\"
@@ -54,9 +54,6 @@ OBJS = main.o cfg_file.tab.o cfg_file.le
 
 CONFIGURE_FILES = Makefile config.status config.cache config.h config.log 
 
-%.o: %.c vtun.h lib.h
-	$(CC) $(CFLAGS) $(DEFS) -c $<
-
 vtund: $(OBJS)
 	$(CC) $(CFLAGS) -o vtund $(OBJS) $(LFD_OBJS) $(LDFLAGS)