summaryrefslogtreecommitdiff
path: root/packages/miniclipboard/miniclipboard-0.3/makefile.patch
blob: 790b82f305c4398f2c44c75d5ce8fe0a905eb070 (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
Index: Makefile
===================================================================
--- Makefile	(Revision 9102)
+++ Makefile	(Arbeitskopie)
@@ -6,16 +6,16 @@
 
 MEMBERS = miniclipboard mbpixbuf mbtray
 
-CFLAGS += -Wall
+PACKAGE_CFLAGS += -Wall `pkg-config --cflags x11`
 ifeq ($(DEBUG),yes)
-CFLAGS += -O2 -g
-LDFLAGS = -g #-lefence
+PACKAGE_CFLAGS += -O2 -g
+LDFLAGS = -g 
 else
-CFLAGS += -Os -fomit-frame-pointer
+PACKAGE_CFLAGS += -Os -fomit-frame-pointer
 endif
 CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\"
 
-PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) -L/usr/X11R6/lib -lX11 -lXpm -lXext
+PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(`pkg-config --libs x11`) -lXpm -lXext
 
 OBJS = $(patsubst %,%.o,$(MEMBERS))