]> Shamusworld >> Repos - virtualjaguar/blobdiff - jaguarcore.mak
Added region specific test pattern for correctness' sake. ;-)
[virtualjaguar] / jaguarcore.mak
index 6b5b9ee92acb875710957b9b5443398381c51d48..9d44b4193375c4a5c5451b8d7482c12b00bb49ee 100644 (file)
@@ -7,6 +7,12 @@
 # file GPLv3 for details. ;-)
 #
 
+ifeq ("$(V)","1")
+Q :=
+else
+Q := @
+endif
+
 # Cross compilation with MXE
 #CROSS = i686-pc-mingw32-
 
@@ -85,12 +91,12 @@ obj:
 
 # Library rules (might not be cross-platform compatible)
 obj/libjaguarcore.a: $(OBJS) 
-       @$(AR) $(ARFLAGS) obj/libjaguarcore.a $(OBJS)
+       $(Q)$(AR) $(ARFLAGS) obj/libjaguarcore.a $(OBJS)
 
 # Main source compilation (implicit rules)...
 
 obj/%.o: src/%.cpp
        @echo -e "\033[01;33m***\033[00;32m Compiling $<...\033[00m"
-       @$(CC) $(GCC_DEPS) $(CXXFLAGS) $(SDL_CFLAGS) $(DEFINES) $(INCS) -c $< -o $@
+       $(Q)$(CC) $(GCC_DEPS) $(CXXFLAGS) $(SDL_CFLAGS) $(DEFINES) $(INCS) -c $< -o $@
 
 -include obj/*.d