aboutsummaryrefslogtreecommitdiff
path: root/x11-clocks/eyeclock/files/patch-aa
blob: a5b96f7c618ba1d42a4f2ba894c7b5f186d593ea (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- Makefile.orig	Thu Sep 17 01:42:06 1998
+++ Makefile	Sun Sep 20 20:12:26 1998
@@ -1,20 +1,23 @@
+LIBS=	-L${X11BASE}/lib -lm -lX11 -lXt -lXmu -lXaw -lXpm
+LDFLAGS=-Wl,-rpath,${X11BASE}/lib
+CFLAGS+=-I${X11BASE}/include
+
 eyeclock :	eyegraph.o eyeinit.o eyemain.o eyequit.o eyestr.o eyetime.o
 			gcc eyegraph.o eyeinit.o eyemain.o eyequit.o eyestr.o \
 			eyetime.o \
-			-o eyeclock -O -L/usr/X11R6/lib \
-			-lm -lX11 -lXt -lXmu -lXaw -lXpm
+			-o eyeclock ${CFLAGS} ${LIBS} ${LDFLAGS}
 eyegraph.o :	eyegraph.c
-		gcc -c eyegraph.c -O -I/usr/X11R6/include
+		gcc -c eyegraph.c ${CFLAGS}
 eyeinit.o :	eyeinit.c
-		gcc -c eyeinit.c -O -I/usr/X11R6/include
+		gcc -c eyeinit.c ${CFLAGS}
 eyemain.o :	eyemain.c
-		gcc -c eyemain.c -O -I/usr/X11R6/include
+		gcc -c eyemain.c ${CFLAGS}
 eyequit.o :	eyequit.c
-		gcc -c eyequit.c -O -I/usr/X11R6/include
+		gcc -c eyequit.c ${CFLAGS}
 eyestr.o :	eyestr.c
-		gcc -c eyestr.c -O -I/usr/X11R6/include
+		gcc -c eyestr.c ${CFLAGS}
 eyetime.o :	eyetime.c
-		gcc -c eyetime.c -O -I/usr/X11R6/include
+		gcc -c eyetime.c ${CFLAGS}
 clean :
 		rm *.o eyeclock
 backup :
@@ -36,19 +39,19 @@
 		cp sample2 sample2.bak
 		cp sample2.xpm sample2.xpm.bak
 install :
-		cp eyeclock /usr/X11R6/bin
-		chmod 0755 /usr/X11R6/bin/eyeclock
-		mkdir /usr/X11R6/lib/X11/EyeClock
+		cp eyeclock ${PREFIX}/bin
+		chmod 0755 ${PREFIX}/bin/eyeclock
+		mkdir -p ${PREFIX}/lib/X11/EyeClock
 		cp COPYRIGHT.euc Makefile README.euc \
 			sample1 sample1.xpm sample2 sample2.xpm \
-			/usr/X11R6/lib/X11/EyeClock
-		chmod 0444 /usr/X11R6/lib/X11/EyeClock/*
-		cp eyeclock.1.gz /usr/X11R6/man/man1
-		chmod 0444 /usr/X11R6/man/man1/eyeclock.1.gz
+			${PREFIX}/lib/X11/EyeClock
+		chmod 0444 ${PREFIX}/lib/X11/EyeClock/*
+		cp eyeclock.1.gz ${PREFIX}/man/man1
+		chmod 0444 ${PREFIX}/man/man1/eyeclock.1.gz
 uninstall :
-		rm /usr/X11R6/bin/eyeclock
-		rm /usr/X11R6/man/man1/eyeclock.1.gz
-		rm -f -R /usr/X11R6/lib/X11/EyeClock
+		rm ${PREFIX}/bin/eyeclock
+		rm ${PREFIX}/man/man1/eyeclock.1.gz
+		rm -f -R ${PREFIX}/lib/X11/EyeClock
 package :
 		rm -f eyeclock-1.0/*
 		cp eyeclock.man eyeclock.1