Package: wm2 / 4+svn20090216-3

0004-use-INCS-when-compiling-LDFLAGS-when-linking.patch Patch series | download
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
From 227b07cc2348b36e0bd143404e488282a81ded3e Mon Sep 17 00:00:00 2001
From: Bernhard R. Link <brlink@debian.org>
Date: Sun, 3 Jan 2010 15:57:57 +0100
Subject: use INCS when compiling LDFLAGS when linking

---
 Makefile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 64ec3e6..4816fee 100644
--- a/Makefile
+++ b/Makefile
@@ -4,20 +4,21 @@ INCS	= -I/usr/X11R6/include
 
 CC	= gcc
 CCC	= g++
-CFLAGS	= -O2 -Wall $(INCS)
+CFLAGS	= -O2 -Wall
+LDFLAGS =
 OBJECTS	= Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o
 
 .c.o:
-	$(CC) -c $(CFLAGS) $<
+	$(CC) -c $(CFLAGS) $(INCS) $<
 
 .C.o:
-	$(CCC) -c $(CFLAGS) $<
+	$(CCC) -c $(CFLAGS) $(INCS) $<
 
 wm2:	$(OBJECTS)
-	$(CCC) -o wm2 $(OBJECTS) $(LIBS)
+	$(CCC) -o wm2 $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS)
 
 depend:
-	makedepend -- $(CFLAGS) -- *.C
+	makedepend -- $(CFLAGS) $(INCS) -- *.C
 
 clean:
 	rm -f *.o core
-- 
1.5.6.5