Browse Source

Added Makefile

Sergey Lyubka 11 years ago
parent
commit
4a3433b4dc
1 changed files with 14 additions and 0 deletions
  1. 14 0
      Makefile

+ 14 - 0
Makefile

@@ -0,0 +1,14 @@
+PROF = -fprofile-arcs -ftest-coverage -g -O0
+CFLAGS = -W -Wall -pedantic -O3 $(CFLAGS_EXTRA)
+
+all:
+	cc unit_test.c -o unit_test $(CFLAGS) && ./unit_test
+	g++ unit_test.c -o unit_test $(CFLAGS) && ./unit_test
+	clang unit_test.c -o unit_test $(CFLAGS) $(PROF) && ./unit_test
+	gcov -a unit_test.c
+
+w:
+	wine cl unit_test.c && wine unit_test.exe
+
+clean:
+	rm -rf *.gc* *.dSYM unit_test unit_test.exe