diff Makefile @ 173:3413a88f4d09

Added test framework
author lost@l-w.ca
date Wed, 07 Sep 2011 20:45:20 -0600
parents 2eda3e39b3b8
children 5350ce9f446f
line wrap: on
line diff
--- a/Makefile	Mon Sep 05 18:10:21 2011 -0600
+++ b/Makefile	Wed Sep 07 20:45:20 2011 -0600
@@ -70,9 +70,6 @@
 	@echo Linking $@
 	@$(CC) -o $@ $(lwar_objs) $(LDFLAGS)
 
-test: test.c lwlib
-	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ test.c $(LDFLAGS)
-
 #.PHONY: lwlib
 .INTERMEDIATE: lwlib
 lwlib: lwlib/liblw.a
@@ -121,4 +118,8 @@
 .PHONY: install
 install:
 	cp $(MAIN_TARGETS) /usr/local/bin/
+
+.PHONY: test
+test: all test/runtests
+	@test/runtests
 	
\ No newline at end of file