#******************************************
#
# Cedric Pradalier 2001
# mail : http://cedric.pradalier.free.fr/mail.html
#
#****************************************/
DESTDIR=$(HOME)
DESTINC=$(DESTDIR)/include
DESTLIB=$(DESTDIR)/lib
LIB=-lX11
CPP=g++ -c $(FLAGS)
#Si les fonction de la lib X11 (X...) ne sont pas trouves,
#il suffit souvent de trouver le repertoire qui contient libX11.a
#puis de modifier le flag suivant (et le décommenter)
#LDFLAG=-L/usr/X11R6/lib
LD=g++ $(LDFLAG)
FLAGS=-g
all : libX+.a
install : all
cp libX+.a $(DESTLIB)
cp libX+.h $(DESTINC)
libX+.o: libX+.cpp libX+.h
$(CPP) libX+.cpp -o libX+.o
libX+.a: libX+.o
rm -f libX+.a
ar r libX+.a libX+.o
test+.o: test+.cpp libX+.h
$(CPP) test+.cpp -o test+.o
test+: test+.o libX+.a
$(LD) test+.o libX+.a $(LIB) -o test+
test : test+
./test+
clean:
rm -f *.o *~ core
veryclean : clean
rm -f test+
rm -f libX+.a