33 lines · plain
1# List all assembler inputs stable test fixtures.2ASM_SOURCES := \3 d_original_example.s \4 regs_int_params.s \5 regs_fp_params.s \6 regs_mixed_params.s \7 live_across_call.s \8 loop_reg_rotate.s \9 seed_reg_const_undef.s10 11ASM_OBJS := $(ASM_SOURCES:.s=.o)12 13# Provide a tiny dummy so the harness can link an exe without ASM_OBJS.14C_SOURCES := dummy_main.c15 16# Generating the dummy source on demand.17dummy_main.c:18 @echo 'int main(void){return 0;}' > $@19 20# Assemble .s → .o using the configured compiler.21%.o: %.s22 $(CC) -c -x assembler $< -o $@23 24# Default target: build all .o fixtures and the dummy exe.25.PHONY: all26all: $(ASM_OBJS) $(EXE)27 28# Keeping things tidy.29clean::30 $(RM) -f $(ASM_OBJS) dummy_main.c31 32include Makefile.rules33