diff --git a/Makefile b/Makefile
index 5830e34acf9b6965bd2058291c55cd2e5d1c08a0..135774a107f6b275cf6c75b60905a41afc497c65 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,9 @@ SUBDIRSCLEAN=$(addsuffix .clean,$(SUBDIRS))
 
 # if machine dependent configuration has been found:
 ifdef GCCDEP
-all: $(SRCDIRS)
+all:
+	$(MAKE) lib
+	$(MAKE) -C test
 
 lib:
 	$(MAKE)	-C src