From 8e1a107b87957b9e97632e1ae9f8e12a98bff5ea Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Tue, 19 Apr 2011 22:52:08 +0200 Subject: [PATCH] Makefile improvements --- Makefile | 18 ++++++++++++++++++ src/Makefile | 3 +++ 2 files changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 987a385..6ba55b6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,22 @@ .PHONY: doc +.PHONY: tests + +default: + @/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc\n\tmake tests\n\tmake doc" + +lib: + make -C src lib + +diet: + make -C src diet + +tests: + make -C tests doc: doxygen + +clean: + make -C src clean + make -C tests clean + rm -rf doc diff --git a/src/Makefile b/src/Makefile index 241ad61..ae8bad9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,3 +20,6 @@ match: match.c ${CC} -o $@ -DDEBUG=2 -DCMDTOOL -DTEST $< it: match + +clean: + rm -f $O