build compiler before tests

This commit is contained in:
corey 2023-11-10 09:00:26 -06:00
parent 2b855537f1
commit 43af3d79c8

View File

@ -31,9 +31,9 @@ tests: par $(addprefix tests/bin/, $(TESTS_x86_64)) tests/bin FORCE
$(CC) $< -c $(CFLAGS)
tests/bin:
@mkdir tests/bin
tests/bin/%.asm: tests/x86_64/%.par
tests/bin/%.asm: tests/x86_64/%.par par
$(VALGRIND) $(PAR) -m x86_64 -o $@ $<
%.asm: %.par
%.asm: %.par par
$(PAR) $<
%.o: %.asm
nasm $(NASMFLAGS) $<