aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/wm2/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/wm2/files/patch-Makefile')
-rw-r--r--x11-wm/wm2/files/patch-Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11-wm/wm2/files/patch-Makefile b/x11-wm/wm2/files/patch-Makefile
new file mode 100644
index 000000000000..819ef9e6114c
--- /dev/null
+++ b/x11-wm/wm2/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile.orig Fri Mar 21 12:12:30 1997
++++ Makefile Tue Jan 28 17:53:41 2003
+@@ -1,9 +1,10 @@
+
+-LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm
++LIBS = -L$(LOCALBASE)/lib -lXext -lX11 -lXmu -lm
++LIBS += -Wl,-rpath,$(PREFIX)/lib
+
+-CC = gcc
+-CCC = gcc
+-CFLAGS = -O2
++CC ?= gcc
++CCC = $(CXX)
++CFLAGS += -I$(LOCALBASE)/include
+ OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o
+
+ .c.o:
+@@ -13,7 +16,6 @@
+ $(CCC) -c $(CFLAGS) $<
+
+ wm2: $(OBJECTS)
+- mv -f wm2 wm2.old >& /dev/null || true
+ $(CCC) -o wm2 $(OBJECTS) $(LIBS)
+
+ depend: