From 659aa20e56de03b461afdaa6ae7e5d4be6e0d5fc Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sat, 25 Jun 2011 11:51:09 +0100 Subject: [PATCH] build: improve rules for test programs This generates dependencies for the *-test.o files ensuring rebuilds when necessary. Signed-off-by: Mans Rullgard --- subdir.mak | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/subdir.mak b/subdir.mak index e4d7377fcb..f544796022 100644 --- a/subdir.mak +++ b/subdir.mak @@ -11,16 +11,17 @@ all-$(CONFIG_STATIC): $(SUBDIR)$(LIBNAME) all-$(CONFIG_SHARED): $(SUBDIR)$(SLIBNAME) $(SUBDIR)%-test.o: $(SUBDIR)%-test.c - $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^ + $(COMPILE_C) $(SUBDIR)%-test.o: $(SUBDIR)%.c - $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^ + $(COMPILE_C) $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm $(YASMDEP) $(YASMFLAGS) -I $( $(@:.o=.d) $(YASM) $(YASMFLAGS) -I $(