From: John Hodge Date: Sun, 18 May 2014 06:01:36 +0000 (+0800) Subject: Usermode/Makefile - Use a single command for dependency generation+compilation X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=410beec382d925d02b248e66a0ec9d41e53931a1;hp=829798445bab026f2cdc38c3916cd7cb5f0c19e8;p=tpg%2Facess2.git Usermode/Makefile - Use a single command for dependency generation+compilation --- 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 $@