summaryrefslogtreecommitdiff
path: root/package/evilwm/patches/patch-Makefile
blob: 856d88a3364cff80b577b75dc340813e489ef6e2 (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
35
36
37
38
39
40
41
--- evilwm-1.1.0.orig/Makefile	2011-07-03 16:14:21.000000000 +0200
+++ evilwm-1.1.0/Makefile	2011-12-01 06:25:59.048654953 +0100
@@ -26,9 +26,13 @@ OPT_CPPFLAGS += -DINFOBANNER
 # Uncomment for mouse support.  Recommended.
 OPT_CPPFLAGS += -DMOUSE
 
++XROOT    ?= /usr/X11R6 
+OPT_CPPFLAGS += -I$(XROOT)/include 
+OPT_LDLIBS += -L$(XROOT)/lib
+
 # Uncomment to support the Xrandr extension (thanks, Yura Semashko).
-OPT_CPPFLAGS += -DRANDR
-OPT_LDLIBS   += -lXrandr
+#OPT_CPPFLAGS += -DRANDR
+#OPT_LDLIBS   += -lXrandr
 
 # Uncomment to support shaped windows.
 OPT_CPPFLAGS += -DSHAPE
@@ -74,10 +78,11 @@ OPT_CPPFLAGS += -DWARP_POINTER
 # Build tools
 
 # Change this if you don't use gcc:
-CC = gcc
+CC ?= gcc
 
 # Override if desired:
-CFLAGS = -Os -std=c99
+CFLAGS ?=
+CFLAGS += -std=c99
 WARN = -Wall -W -Wstrict-prototypes -Wpointer-arith -Wcast-align \
 	-Wshadow -Waggregate-return -Wnested-externs -Winline -Wwrite-strings \
 	-Wundef -Wsign-compare -Wmissing-prototypes -Wredundant-decls
@@ -95,7 +100,7 @@ INSTALL = install
 INSTALL_STRIP = -s
 INSTALL_DIR = $(INSTALL) -d -m 0755
 INSTALL_FILE = $(INSTALL) -m 0644
-INSTALL_PROGRAM = $(INSTALL) -m 0755 $(INSTALL_STRIP)
+INSTALL_PROGRAM = $(INSTALL) -m 0755
 
 ############################################################################
 # You shouldn't need to change anything beyond this point