blob: 6ebb43bbd61973a5b3533b7326474140f0f27328 (
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
|
--- makefile.orig 1994-03-07 21:10:46.000000000 +0800
+++ makefile 2014-06-08 11:28:02.677008487 +0800
@@ -1,6 +1,7 @@
-CC = gcc
-CFLAGS = -Wall -O
-BINDIR = /usr/local/bin/
+#CC = gcc
+CFLAGS+= -I${PREFIX}/include
+LDFLAGS+= -L${PREFIX}/lib -lX11
+BINDIR= ${PREFIX}/bin/
all : xchadance
@@ -9,11 +10,11 @@ clean :
rm *.o *~ *.bak core.* a.out
install :
- cp xchadance $(BINDIR)
+ install -c -s xchadance $(DESTDIR)$(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
|