[Tux3] [PATCH] Add Makefile

Shapor Naghibzadeh shapor at gmail.com
Wed Aug 6 15:44:06 PDT 2008


# HG changeset patch
# User shapor at yzf.shapor.com
# Date 1218062628 25200
# Node ID 56e2072385dafce12ac0410ccdb9a44ef9a50a5c
# Parent  827e69cc02d814d544cdbc701c5a825387b1755f
Add Makefile

diff -r 827e69cc02d8 -r 56e2072385da user/test/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/user/test/Makefile	Wed Aug 06 15:43:48 2008 -0700
@@ -0,0 +1,17 @@
+CC=gcc
+CFLAGS += -std=gnu99
+
+all: fleaf ileaf
+tests: fleaftest ileaftest
+
+fleaf: fleaf.c tux3.h hexdump.c
+	$(CC) $(CFLAGS) fleaf.c -o fleaf.o
+fleaftest: fleaf
+	valgrind ./fleaf.o
+
+ileaf: ileaf.c tux3.h hexdump.c
+	$(CC) $(CFLAGS) ileaf.c -o ileaf.o
+ileaftest: fleaf
+	valgrind ./fleaf.o
+
+clean: rm *.o

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list