CFLAGS=-Wall -g .PHONY: all all: test_pixmap pixmap_impl.o: pixmap.h pixmap_impl.h ascii_pixmap.o: ascii_pixmap.h pixmap.h pixmap_impl.h packed_pixmap.o: packed_pixmap.h pixmap.h pixmap_impl.h test_pixmap.o: ascii_pixmap.h packed_pixmap.h pixmap.h pixmap_impl.h TEST_PIXMAP_OBJS=test_pixmap.o ascii_pixmap.o packed_pixmap.o pixmap_impl.o test_pixmap: $(TEST_PIXMAP_OBJS) $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(TEST_PIXMAP_OBJS) -o $@ %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< .PHONY: test test: test_pixmap ./test_pixmap .PHONY: clean clean: rm -f *.o .PHONY: veryclean veryclean: clean rm -f test_pixmap