29 lines
787 B
Plaintext
29 lines
787 B
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2006/10/19 07:35:02 wilfried Exp $
|
|
--- Makefile.orig Sun Jan 16 16:12:54 2005
|
|
+++ Makefile Thu Oct 19 09:16:56 2006
|
|
@@ -1,19 +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 wmb_libs.o
|
|
|
|
-CFLAGS += -c -Wall -O2
|
|
+all: ${TARGET}
|
|
|
|
-all: ${TARGET} tags
|
|
-
|
|
.c.o:
|
|
- gcc ${CFLAGS} ${INCLUDES} $< -o $*.o
|
|
+ ${CC} ${CFLAGS} -c ${INCLUDES} $< -o $*.o
|
|
|
|
${TARGET}: ${OBJECTS}
|
|
- gcc -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
|
|
+ ${CC} -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
|
|
|
|
clean::
|
|
for i in ${OBJECTS}; do if [ -e $$i ] ; then rm $$i; fi; done
|