diff --git a/Makefile b/Makefile index 0b0bd7b57b54e19fb7688355e9c7f0c3f2cf062f..89b7b3bd9f077655d92ef9dc9ccb3024a40748af 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,6 @@ KPATH := miosix CONFPATH := $(KPATH) include $(CONFPATH)/config/Makefile.inc -ifeq ("$(VERBOSE)","1") -Q := -ECHO := @true -else -Q := @ -ECHO := @echo -endif - ## ## List here subdirectories which contains makefiles ## @@ -41,6 +33,14 @@ INCLUDE_DIRS := ## You should not need to modify anything below ## ############################################################################## +ifeq ("$(VERBOSE)","1") +Q := +ECHO := @true +else +Q := @ +ECHO := @echo +endif + ## Replaces both "foo.cpp"-->"foo.o" and "foo.c"-->"foo.o" OBJ := $(addsuffix .o, $(basename $(SRC))) diff --git a/miosix/Makefile b/miosix/Makefile index d5b65fac5459db4a06d1786ea9a0ccc2ff3bf56e..f259ebfc7f9d4a63920950789389fc0996e4082b 100644 --- a/miosix/Makefile +++ b/miosix/Makefile @@ -6,14 +6,6 @@ MAKEFILE_VERSION := 1.07 ## KPATH and CONFPATH are forwarded by the parent Makefile include $(CONFPATH)/config/Makefile.inc -ifeq ("$(VERBOSE)","1") -Q := -ECHO := @true -else -Q := @ -ECHO := @echo -endif - ## List of all Miosix OS source files that have no special requirements ## and that must be built for each architecture (both .c and .cpp) ## These files will end up in libmiosix.a @@ -56,6 +48,14 @@ util/lcd44780.cpp ## architecture/board is selected in config/Makefile.inc SRC += $(ARCH_SRC) +ifeq ("$(VERBOSE)","1") +Q := +ECHO := @true +else +Q := @ +ECHO := @echo +endif + ## Replaces both "foo.cpp"-->"foo.o" and "foo.c"-->"foo.o" OBJ := $(addsuffix .o, $(basename $(SRC)))