all: reverse
clean:
- -rm *.o reverse
+ -rm *.o reverse reverse_test
distclean: clean
-rm deps.makefile deps.makefile.bak
depend: *.c
makedepend -f- $^ > deps.makefile
-.PHONY: clean distclean depend
+test: reverse_test
+ ./reverse_test
-reverse: reverse.o
+.PHONY: clean distclean depend test
+
+reverse: reverse.o reverse_lib.o temp_file.o
+reverse_test: reverse_test.o reverse_lib.o temp_file.o
$(CC) -o $@ $^ $(CFLAGS)
%.o: %.c