Commit 3fdcb8cc authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

Makefile: improve DBG option for asm

This improves the cleanup, dependency generation and DBG command issuing.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f56f0e09
...@@ -7,10 +7,10 @@ all: all-yes ...@@ -7,10 +7,10 @@ all: all-yes
DEFAULT_YASMD=.dbg DEFAULT_YASMD=.dbg
ifndef DBG ifeq (1, DBG)
YASMD=
else
YASMD=$(DEFAULT_YASMD) YASMD=$(DEFAULT_YASMD)
else
YASMD=
endif endif
ifndef SUBDIR ifndef SUBDIR
...@@ -152,11 +152,11 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a ...@@ -152,11 +152,11 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
define RULES define RULES
clean:: clean::
$(RM) $(OBJS) $(OBJS:.o=.d) $(RM) $(OBJS) $(OBJS:.o=.d) $(OBJS:.o=$(DEFAULT_YASMD).d)
$(RM) $(HOSTPROGS) $(RM) $(HOSTPROGS)
$(RM) $(TOOLS) $(RM) $(TOOLS)
endef endef
$(eval $(RULES)) $(eval $(RULES))
-include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d) $(SLIBOBJS:.o=.d)) -include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d) $(SLIBOBJS:.o=.d)) $(OBJS:.o=$(DEFAULT_YASMD).d)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment