CC=CC
CFLAGS=-I/home/glunz/local/include/

test: test1 test2 test3 test4 test5 test6

test1: mtest.cpp 
	g++ -DSIZE=200 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest
	echo "read test"; mtest r

test2: mtest.cpp 
	g++ -DSIZE=2000 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest
	echo "read test"; mtest r

test3: mtest.cpp 
	g++ -DSIZE=20000 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest
	echo "read test"; mtest r

test4: mtest.cpp 
	g++ -DPLAINMALLOC -DSIZE=200 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest

test5: mtest.cpp 
	g++ -DPLAINMALLOC -DSIZE=2000 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest

test6: mtest.cpp 
	g++ -DPLAINMALLOC -DSIZE=20000 -g mtest.cpp -I/home/glunz/local/include/  -L. -lgccmmalloc -o mtest
	rm -f file.mmf; touch file.mmf; echo "write test"; mtest

clean :
	rm -f mtest core file.mmf base
