#
# Cedric Pradalier 2001
# mail : http://cedric.pradalier.free.fr/mail.html
#
CC=g++ -O -c -g -Wall
LIB=libPixmap.a
all : $(LIB)
$(LIB) : Pixmap.o
rm -f $(LIB)
ar r $(LIB) Pixmap.o
Pixmap.o : Pixmap.cpp Pixmap.h
$(CC) Pixmap.cpp -o Pixmap.o
test : testPixmap
./testPixmap
display TestFile.ppm
testPixmap : testPixmap.o $(LIB)
g++ -g -Wall -o testPixmap testPixmap.o -L. -lPixmap
testPixmap.o : testPixmap.cpp
$(CC) -o testPixmap.o testPixmap.cpp
clean :
rm -f *.o
rm -f *~
veryclean : clean
rm -f TestFile.ppm
rm -f testPixmap
rm -f libPixmap.a