openbsd-ports/math/wmcalc/patches/patch-Makefile

26 lines
818 B
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/16 21:31:44 naddy Exp $
--- Makefile.orig Thu Sep 21 04:22:25 2000
+++ Makefile Tue Jan 16 22:09:16 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 -I${X11BASE}/include/X11
+LIBINC =-L${X11BASE}/lib
LIBS = -lX11 -lXpm -lXext -lm
TARGET = wmcalc
OBJECTS = wmcalc.o readln.o wmcalcswitch.o wmcalcfunc.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