1 # $Id: Makefile,v 1.2 2002/08/16 17:22:26 essmann Exp $
3 # Copyright (c) 2001 Bruno Essmann <essmann@users.sourceforge.net>
8 XPMINC
= /usr
/X11R6
/include
9 XPMLIB
= /usr
/X11R6
/lib
11 INCLUDES
= -I
/usr
/X11R6
/include -I
/usr
/local
/include -I
/usr
/include/X11R6
-I
$(XPMINC
)
12 LIBINC
= -L
/usr
/X11R6
/lib
-L
/usr
/include/lib
-L
$(XPMLIB
)
13 LIBS
= -lm
-lX11
-lXpm
-lXext
22 @echo
"*** `pwd`: $@" ; \
23 gcc
-g
-c
-Wall
${INCLUDES} ${FLAGS} $< -o
$*.o
26 @echo
"*** `pwd`: $@" ; \
27 gcc
-g
-o
${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
30 @echo
"*** `pwd`: $@" ; \
31 for i in
${OBJECTS}; do if
[ -f
$$i ] ; then
rm $$i; fi
; done
; \
32 if
[ -f
${TARGET} ] ; then
rm ${TARGET}; fi