From 410beec382d925d02b248e66a0ec9d41e53931a1 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 18 May 2014 14:01:36 +0800 Subject: [PATCH 1/1] Usermode/Makefile - Use a single command for dependency generation+compilation --- Usermode/Applications/Makefile.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Usermode/Applications/Makefile.tpl b/Usermode/Applications/Makefile.tpl index a6c8508c..2b645af6 100644 --- a/Usermode/Applications/Makefile.tpl +++ b/Usermode/Applications/Makefile.tpl @@ -56,8 +56,7 @@ $(_OBJPREFIX)%.o: %.c ifneq ($(_OBJPREFIX),) @mkdir -p $(dir $@) endif - $V$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ - $V$(CC) -M -MP -MT $@ $(CPPFLAGS) $< -o $(_OBJPREFIX)$*.dep + $V$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ -MQ $@ -MP -MD -MF $(_OBJPREFIX)$*.dep $(_OBJPREFIX)%.o: %.cpp @echo [CXX] -o $@ -- 2.20.1