File: Makefile

package info (click to toggle)
crasm 1.11-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 520 kB
  • sloc: ansic: 4,562; asm: 3,371; makefile: 50
file content (13 lines) | stat: -rw-r--r-- 301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
TEST_SOURCES := $(wildcard *.asm)
TEST_OUTPUT := $(TEST_SOURCES:.asm=.out)

%.out : %.asm
	mkdir -p test_output
	../src/crasm -o test_output/$@ -l $<
	@diff test_output/$@ reference_output/$@ || (echo "Output '$@' does not match expected!"; exit 1 )

test: ${TEST_OUTPUT}

clean:
	rm -rf test_output