]> git.sur5r.net Git - cc65/blob - testcode/disasm/sample-unix.mk
Merge remote-tracking branch 'irgendwer/AtariOS_Structure' into master
[cc65] / testcode / disasm / sample-unix.mk
1 # Sample makefile using a preprocessor against info files
2 # and the --sync-lines option
3
4 CPP = env LANG=C cpp
5 CPPFLAGS = # -DTEST_ERROR
6
7 ASMS = fixed.s bank0.s bank1.s
8 DAIS = fixed.dai bank0.dai bank1.dai
9
10 .SUFFIXES: .da .dai .s
11 .PHONY: all clean maintainer-clean
12 .SECONDARY: $(DAIS)
13
14 .da.dai:
15         $(CPP) -o $@ $(CPPFLAGS) $<
16
17 .dai.s:
18         da65 --sync-lines -o $@ -i $< image.bin
19
20 all: $(ASMS)
21
22 clean:
23         rm -f $(ASMS)
24
25 maintainer-clean: clean
26         rm -f $(DAIS)
27
28 $(DAIS): fixed.da