X-Git-Url: http://git.scottworley.com/overonion/blobdiff_plain/7ed3669a47ef8dd3aeaa8d9757a97d16d6f5e085..e8aa0cd30a2f35c30e88b437cb40f1685cb5b3b9:/Makefile diff --git a/Makefile b/Makefile index fee4ea9..fe978d3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow all: reverse clean: - -rm *.o reverse + -rm *.o reverse reverse_test distclean: clean -rm deps.makefile deps.makefile.bak @@ -12,9 +12,13 @@ distclean: clean 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 +reverse_test: reverse_test.o reverse_lib.o $(CC) -o $@ $^ $(CFLAGS) %.o: %.c