blob: cd93cca6a47eb2269b5cfc0a7ea54ca68d80530f (
plain) (
blame)
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
|
--- Makefile.orig Fri Mar 21 20:12:30 1997
+++ Makefile Wed Sep 22 23:55:40 1999
@@ -1,9 +1,12 @@
-LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm
+LIBS = -L$(PREFIX)/lib -lXext -lX11 -lXmu -lm
+.if $(PORTOBJFORMAT) == "elf"
+LIBS += -Wl,-rpath,$(PREFIX)/lib
+.endif
-CC = gcc
-CCC = gcc
-CFLAGS = -O2
+CC ?= gcc
+CCC = $(CC)
+CFLAGS += -I$(PREFIX)/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:
|