blob: 691ff7e424d7db951f8171e0b6ea8afaf3cea17d (
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
|
--- a/Makefile 1999-08-16 18:01:58.000000000 +0200
+++ b/Makefile 2008-01-27 23:23:36.000000000 +0100
@@ -1,8 +1,8 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS += -Wall
+INCDIR = -I/usr/include/X11 -I/usr/include
+PREFIX ?= /usr
+LIBDIR ?= /usr/lib
# for Linux
LIBS = -lXpm -lX11 -lXext
@@ -24,7 +24,7 @@
wmMatrix.o: wmMatrix_master.xpm wmMatrix_mask.xbm
wmMatrix: $(OBJS)
- $(CC) $(COPTS) $(SYSTEM) -o wmMatrix $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(COPTS) $(SYSTEM) -o wmMatrix $^ $(INCDIR) -L$(LIBDIR) $(LDFLAGS) $(LIBS)
clean:
@@ -34,5 +34,6 @@
rm -f wmMatrix
install:: wmMatrix
- install -c -s -m 0755 wmMatrix $(DESTDIR)/bin
+ install -d $(DESTDIR)$(PREFIX)/bin
+ install -m 0755 wmMatrix $(DESTDIR)$(PREFIX)/bin
|