all: test gallery.o: gallery.c $(CC) -Wall -c -o $@ $< $(CFLAGS) test: gallery.o test.c $(CC) -Wall -o $@ $^ $(CFLAGS) tidy: rm -f *.o clean: tidy rm -f test