summaryrefslogtreecommitdiff
blob: f32e538ade405a8ea1bbdf03cbcf8f5f317f3f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile    2008-02-04 09:44:34.000000000 +0100
+++ Makefile.new        2009-02-08 18:49:06.061291832 +0100
@@ -10,7 +10,7 @@
 OBJS = vpncwatch.o proc.o net.o
 
 CC     ?= gcc
-CFLAGS = -D_GNU_SOURCE -O2 -Wall -Werror
+CFLAGS += -D_GNU_SOURCE
 
 vpncwatch: $(OBJS)
        $(CC) $(CFLAGS) -o $@ $(OBJS)
@@ -13,7 +13,7 @@
 CFLAGS = -D_GNU_SOURCE -O2 -Wall -Werror
 
 vpncwatch: $(OBJS)
-	$(CC) $(CFLAGS) -o $@ $(OBJS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
 
 .c.o:
 	$(CC) $(CFLAGS) -c -o $@ $<