aboutsummaryrefslogtreecommitdiffstats
path: root/games/wmshuffle/files/patch-aa
blob: d8a549160d6d6fd4efc2c25ddaadd03b2528a558 (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
28
29
30
--- Makefile.orig   Wed May 15 18:38:32 2002
+++ Makefile    Wed May 15 18:43:28 2002
@@ -1,14 +1,17 @@
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS += -c -Wall
+INCDIR = -I${X11BASE}/include
+LIBDIR = -L${X11BASE}/lib
 LIBS   = -lXpm -lXext -lX11
 OBJS =  wmshuffle.o ./wmgeneral/wmgeneral.o
 
 .c.o:
-   cc -c -g -O2 -Wall $< -o $*.o
+   ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
 
 all: wmshuffle
 
 wmshuffle: $(OBJS)
-   cc -o wmshuffle $^ $(LIBDIR) $(LIBS)
+   ${CC} -o wmshuffle $^ ${LIBDIR} ${LIBS}
 
 clean:
    for i in $(OBJS) ; do \
@@ -17,5 +20,4 @@
    rm -rf wmshuffle core *~
 
 install:
-   /usr/bin/install -c -o 0 -g 0 -s -m 755 wmshuffle /usr/local/bin/wmshuffle
-
+   @/usr/bin/install -c -o 0 -g 0 -s -m 755 wmshuffle ${PREFIX}/bin/wmshuffle