include makefile.include

%.cpp %.o: %$(*).xpm
	cp  $*.xpm $*.cpp
	gcc -DXPMMAIN -c -Wall -O2 -o $@ $*.cpp
	rm  $*.cpp

libbitmaps.a: $(OBJECTS)
	ar ruv $@ $(OBJECTS)
	ranlib $@

clean:
#	rm -f *.o
#	rm -f *.a
