Details | Last modification | View Log
Rev | Author | Line No. | Line |
---|---|---|---|
2254 | lvd | 1 | # gmake |
2 | |||
3 | #SJASM=../../../../tools/sjasmplus |
||
4 | SJASM=./sjasm |
||
5 | |||
6 | NAME = z80test |
||
7 | VERSION = 1.2a |
||
8 | PKG := $(NAME)-$(VERSION) |
||
9 | |||
10 | PROGS := z80full z80flags z80doc z80docflags z80ccf z80memptr z80ccfscr |
||
11 | SRCS := main idea crctab tests testmacros print |
||
12 | |||
13 | #all: $(addsuffix .tap,$(PROGS)) |
||
14 | all: $(addsuffix .out,$(PROGS)) |
||
15 | |||
16 | .DELETE_ON_ERROR: %.out |
||
17 | |||
18 | %.out : %.asm $(addsuffix .asm,$(SRCS)) |
||
19 | $(SJASM) $< |
||
20 | |||
21 | #%.tap : loader.bas %.out |
||
22 | # mktap -b $(basename $(word 2,$^)) 10 <$(word 1,$^) >$@ |
||
23 | # mktap $(basename $(word 2,$^)) 32768 <$(word 2,$^) >>$@ |
||
24 | |||
25 | FILES := Makefile loader.bas $(addsuffix .asm,$(PROGS)) $(addsuffix .asm, $(SRCS)) |
||
26 | |||
27 | dist: all |
||
28 | ln -s .. $(PKG) |
||
29 | cp *.tap $(PKG) |
||
30 | zip ../$(PKG).zip $(addprefix $(PKG)/src/, $(FILES)) $(PKG)/*.txt $(PKG)/*.tap |
||
31 | rm $(PKG)/*.tap |
||
32 | rm $(PKG) |
||
33 | |||
34 | clean: |
||
35 | rm -rf *.out *.lst *.tap |
||
36 | |||
37 | tidy: clean |
||
38 | rm -rf $(PROGS) |