[go: up one dir, main page]

File: Makefile.am

package info (click to toggle)
z80dasm 1.1.4-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,132 kB
  • ctags: 280
  • sloc: asm: 68,772; ansic: 2,200; sh: 1,297; makefile: 49
file content (34 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Makefile using z80asm
# The output of the assembler can be parsed by vim or emacs.

TEST_CASES =	labelsdd.bin \
		jrwrap.bin \
		basicblocks.bin \
		overlapblocks.bin \
		unlabeledblocks.bin \
		firstlastblocks.bin

EXTRA_DIST = 	stress \
		$(TEST_CASES) \
		$(TEST_CASES:.bin=.asm) \
		$(TEST_CASES:.bin=.blocks) \
		$(TEST_CASES:.bin=.opts)

test: cleantest $(TEST_CASES:.bin=.generated.asm) stress_test

stress_test: stress
	./stress $(top_builddir)/src/z80dasm 20

%.generated.asm: %.bin %.blocks %.opts %.asm
	$(top_builddir)/src/z80dasm -g0 -l $(shell cat $(srcdir)/$*.opts) -o $@ -b $(srcdir)/$*.blocks $(srcdir)/$<
	diff -u -I z80dasm $(srcdir)/$*.asm $@
	z80asm $@ -o $*.generated.bin
	diff -u $(srcdir)/$< $*.generated.bin

cleantest: clean-local

clean-local:
	rm -f *.generated.asm *.generated.bin
	rm -f stress.error

.PHONY: test stress_test cleantest