diff --git a/Makefile b/Makefile index 6777b6c482..78d5e4694b 100644 --- a/Makefile +++ b/Makefile @@ -404,6 +404,7 @@ ifneq ($(NODEP),1) -include $(addprefix $(OBJ_DIR)/,$(C_SRCS:.c=.d)) endif +ifeq ($(TEST),1) $(TEST_BUILDDIR)/%.o: $(TEST_SUBDIR)/%.c @echo "$(CC1) -o $@ $<" @$(CPP) $(CPPFLAGS) $< | $(PREPROC) -i $< charmap.txt | $(CC1) $(CFLAGS) -o - - | cat - <(echo -e ".text\n\t.align\t2, 0") | $(AS) $(ASFLAGS) -o $@ - @@ -414,6 +415,7 @@ $(TEST_BUILDDIR)/%.d: $(TEST_SUBDIR)/%.c ifneq ($(NODEP),1) -include $(addprefix $(OBJ_DIR)/,$(TEST_SRCS:.c=.d)) endif +endif $(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $(AS) $(ASFLAGS) -o $@ $<