]> git.scottworley.com Git - overonion/blobdiff - Makefile
Add hashing
[overonion] / Makefile
index fee4ea93ce8b72e858b783f78fb5801ae2e96513..f733156799c7e6ff8f8b1887c204123714037a10 100644 (file)
--- 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,14 @@ distclean: clean
 depend: *.c
        makedepend -f- $^ > deps.makefile
 
-.PHONY: clean distclean depend
+test: reverse_test
+       ./reverse_test
+       ./overonion_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