1998-09-21 01:39:12 +00:00
|
|
|
--- Makefile.orig Thu Sep 17 01:42:06 1998
|
1998-09-21 12:48:12 +00:00
|
|
|
+++ Makefile Mon Sep 21 07:45:06 1998
|
|
|
|
@@ -1,20 +1,25 @@
|
1998-09-21 01:39:12 +00:00
|
|
|
+LIBS= -L${X11BASE}/lib -lm -lX11 -lXt -lXmu -lXaw -lXpm
|
1998-09-21 12:48:12 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == "elf"
|
1998-09-21 01:39:12 +00:00
|
|
|
+LDFLAGS=-Wl,-rpath,${X11BASE}/lib
|
1998-09-21 12:48:12 +00:00
|
|
|
+.endif
|
1998-09-21 01:39:12 +00:00
|
|
|
+CFLAGS+=-I${X11BASE}/include
|
|
|
|
+
|
1998-09-06 07:46:22 +00:00
|
|
|
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 \
|
1998-09-21 01:39:12 +00:00
|
|
|
- -lm -lX11 -lXt -lXmu -lXaw -lXpm
|
|
|
|
+ -o eyeclock ${CFLAGS} ${LIBS} ${LDFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyegraph.o : eyegraph.c
|
|
|
|
- gcc -c eyegraph.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyegraph.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyeinit.o : eyeinit.c
|
|
|
|
- gcc -c eyeinit.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyeinit.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyemain.o : eyemain.c
|
|
|
|
- gcc -c eyemain.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyemain.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyequit.o : eyequit.c
|
|
|
|
- gcc -c eyequit.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyequit.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyestr.o : eyestr.c
|
|
|
|
- gcc -c eyestr.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyestr.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
eyetime.o : eyetime.c
|
|
|
|
- gcc -c eyetime.c -O -I/usr/X11R6/include
|
1998-09-21 01:39:12 +00:00
|
|
|
+ gcc -c eyetime.c ${CFLAGS}
|
1998-09-06 07:46:22 +00:00
|
|
|
clean :
|
|
|
|
rm *.o eyeclock
|
|
|
|
backup :
|
1998-09-21 12:48:12 +00:00
|
|
|
@@ -36,19 +41,19 @@
|
1998-09-06 07:46:22 +00:00
|
|
|
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
|