-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (60 loc) · 1.43 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
DEMO=nostalgia
OS:=$(shell uname -s)
TJASS= lyxass
RMAC= rmac
RLN= rln
_68KFLAGS=-4 ~oall -i$(BJL_ROOT)
TJFLAGS=-w
ifdef NODRAW
TJFLAGS+= -D NO_DRAW
endif
ifdef DEBUG
_68KFLAGS+= -DDEBUG
endif
ifdef SKUNK
_68KFLAGS+= -DSKUNK
endif
rom bpe_rom jaggd_rom vj_rom vjd_rom: _68KFLAGS+= -DROM
rom: $(DEMO).j64
all: $(DEMO).j64
OBL_START=1000
obl0_50.img: obl0.S video.h
$(Q)$(RMAC) -D_PAL $(_68KFLAGS) $< -o [email protected]
$(RLN) -rw -z -n -a $(OBL_START) x x -o $@ [email protected]
rm -f [email protected]
obl1_50.img: obl1.S video.h
$(Q)$(RMAC) -D_PAL $(_68KFLAGS) $< -o [email protected]
$(RLN) -rw -z -n -a $(OBL_START) x x -o $@ [email protected]
rm -f [email protected]
obl0_60.img: obl0.S video.h
$(Q)$(RMAC) $(_68KFLAGS) $< -o [email protected]
$(RLN) -rw -z -n -a $(OBL_START) x x -o $@ [email protected]
rm -f [email protected]
obl1_60.img: obl1.S video.h
$(Q)$(RMAC) $(_68KFLAGS) $< -o [email protected]
$(RLN) -rw -z -n -a $(OBL_START) x x -o $@ [email protected]
rm -f [email protected]
OBL=obl0_50.img obl1_50.img obl0_60.img obl1_60.img
$(DEMO).o : $(DEMO).js poly.js $(OBL) lsp_v15.lib
$(TJASS) $(TJFLAGS) $<
%.o : %.js
$(TJASS) -s $(TJFLAGS) $<
%.o : %.S
$(RMAC) $(_68KFLAGS) $<
.ONESHELL:
$(DEMO).j64: $(DEMO).o
@cat sbl.XXX >$@
cat $< >> $@
bzcat $(BJL_ROOT)/bin/allff.bin.bz2 >> $@
truncate -s 1M $@
.ONESHELL:
vj.j64: $(DEMO).j64
cp $< $@
include Rules.launch
.ONESHELL:
.PHONY: clean
clean:
rm -f *.o
rm -f *.equ
rm -f *~
rm -f *.cof *.rom *.abs *.bin *.pck *.img