summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b10c533..a64b7fb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,12 @@ $(TARGET): $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<
+test: $(TARGET)
+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH python3 -m unittest
+
clean:
-rm -f *.o *.d $(TARGET)
-include $(OBJS:.o=.d)
-.PHONY: clean
+.PHONY: clean test