Files
llvm-project/lldb/test/API/functionalities/disassembler-variables/Makefile
Raul Tambre 423919d31f [NFCI][lldb][test][asm] Enable AT&T syntax explicitly (#166770)
Implementation files using the Intel syntax typically explicitly specify it.
Do the same for the few files using AT&T syntax.

This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang config files
(i.e. a global preference for Intel syntax).
2025-12-14 23:54:25 +02:00

33 lines
749 B
Makefile

# List all assembler inputs stable test fixtures.
ASM_SOURCES := \
d_original_example.s \
regs_int_params.s \
regs_fp_params.s \
regs_mixed_params.s \
live_across_call.s \
loop_reg_rotate.s \
seed_reg_const_undef.s
ASM_OBJS := $(ASM_SOURCES:.s=.o)
# Provide a tiny dummy so the harness can link an exe without ASM_OBJS.
C_SOURCES := dummy_main.c
# Generating the dummy source on demand.
dummy_main.c:
@echo 'int main(void){return 0;}' > $@
# Assemble .s → .o using the configured compiler.
%.o: %.s
$(CC) $(CFLAGS) -c -x assembler $< -o $@
# Default target: build all .o fixtures and the dummy exe.
.PHONY: all
all: $(ASM_OBJS) $(EXE)
# Keeping things tidy.
clean::
$(RM) -f $(ASM_OBJS) dummy_main.c
include Makefile.rules