summaryrefslogtreecommitdiff
path: root/games/xchadance/files/patch-aa
blob: 5412997e86241b22f47e141a98bba90c5f4b6506 (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
--- makefile.orig	Mon Mar  7 22:10:46 1994
+++ makefile	Fri Feb 19 08:58:24 1999
@@ -1,6 +1,7 @@
 CC	= gcc 
-CFLAGS	= -Wall -O
-BINDIR	= /usr/local/bin/
+CFLAGS+=	-I${PREFIX}/include
+LDFLAGS+=	-L${PREFIX}/lib -lX11
+BINDIR=		${PREFIX}/bin/
 
 
 all	: xchadance 
@@ -9,11 +10,11 @@
 	rm *.o *~ *.bak core.* a.out
 
 install	:
-	cp xchadance $(BINDIR)
+	install -s xchadance $(BINDIR)
 
 
 xchadance	: xchadance.o chadata.o
-	$(CC) xchadance.o chadata.o -o xchadance -lX11
+	$(CC) xchadance.o chadata.o -o xchadance ${LDFLAGS}
 
 
 xchadance.o	: xchadance.c xchadance.h