1 INCLUDES
=-I
/usr
/include -I
/usr
/local
/include
2 LIBINC
=-L
/usr
/X11R6
/lib
-L
/usr
/include/lib
3 LIBS
= -lX11
-lXpm
-lXext
6 OBJECTS
= wmbutton.o wmb_libs.o
10 MANDIR
= ${PREFIX}/share
/man
12 CONFFL
= ${CONF}/wmbutton.conf
13 INSTALL
= /usr
/bin
/install
14 INSTALL_PROGRAM
= $(INSTALL
) -p
-o root
-g root
-m
755
15 INSTALL_FILE
= $(INSTALL
) -p
-o root
-g root
-m
644
20 gcc
-c
${CFLAGS} ${INCLUDES} $< -o
$*.o
23 gcc
-o
${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
26 for i in
${OBJECTS}; do if
[ -e
$$i ] ; then
rm $$i; fi
; done
27 if
[ -e
${TARGET} ] ; then
rm ${TARGET}; fi
28 if
[ -e
tags ]; then
rm tags; fi
29 if
[ -e core
]; then
rm core
; fi
32 ${INSTALL_PROGRAM} wmbutton
${DESTDIR}${BINDIR}
33 ${INSTALL_FILE} sample.wmbutton
${DESTDIR}${CONFFL}
35 wmbutton.o
: wmbutton.c wmbutton.h Makefile
37 wmb_libs.o
: wmb_libs.c wmbutton.h Makefile