Usermode/Makefile - Use a single command for dependency generation+compilation
[tpg/acess2.git] / Usermode / Applications / Makefile.tpl
index a6c8508..2b645af 100644 (file)
@@ -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 $@

UCC git Repository :: git.ucc.asn.au