openbsd-ports/x11/wmbutton/patches/patch-Makefile
naddy 7db51e5598 Import wmbutton-0.4.
Submitted by Peter Stromberg <home@wilfried.net>.

wmbutton is a 64x64 pixel application that displays nine
buttons.  Each of these buttons can be configured via a
configuration file to run just about any application you'd
like to.
2001-01-16 21:29:04 +00:00

26 lines
765 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/16 21:29:05 naddy Exp $
--- Makefile.orig Mon Mar 8 17:59:20 1999
+++ Makefile Tue Jan 16 18:10:47 2001
@@ -1,15 +1,17 @@
-INCLUDES =-I/usr/X11R6/include/X11 -I/usr/local/include -I/usr/include/X11R6/X11
-LIBINC =-L/usr/X11R6/lib -L/usr/include/lib
+INCLUDES =-I${X11BASE}/include
+LIBINC =-L${X11BASE}/lib
LIBS = -lX11 -lXpm -lXext
TARGET = wmbutton
OBJECTS = wmbutton.o readln.o
.c.o:
- gcc -O2 -c -Wall ${INCLUDES} ${FLAGS} $< -o $*.o
+ ${CC} ${CFLAGS} -c ${INCLUDES} ${FLAGS} $< -o $*.o
${TARGET}: ${OBJECTS}
- gcc -O2 -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
+ ${CC} -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
+
+all:: ${TARGET}
clean::
for i in ${OBJECTS}; do if [ -e $$i ] ; then rm $$i; fi; done