]> git.scottworley.com Git - overonion/blobdiff - Makefile
keyline() and keyfield() operations
[overonion] / Makefile
index 71a482eb99dce17ff1cbc59db7a77768fdf48efe..f733156799c7e6ff8f8b1887c204123714037a10 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow
 all: reverse
 
 clean:
 all: reverse
 
 clean:
-       -rm *.o reverse
+       -rm *.o reverse reverse_test
 
 distclean: clean
        -rm deps.makefile deps.makefile.bak
 
 distclean: clean
        -rm deps.makefile deps.makefile.bak
@@ -12,9 +12,14 @@ distclean: clean
 depend: *.c
        makedepend -f- $^ > deps.makefile
 
 depend: *.c
        makedepend -f- $^ > deps.makefile
 
-.PHONY: clean distclean depend
+test: reverse_test
+       ./reverse_test
+       ./overonion_test
 
 
-reverse: reverse.o reverse_lib.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
        $(CC) -o $@ $^ $(CFLAGS)
 
 %.o: %.c