-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (47 loc) · 1.03 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
DEMO=slideshow
OS:=$(shell uname -s)
TJASS= lyxass
RMAC= rmac
RLN= rln
_68KFLAGS=-4 ~oall -i$(BJL_ROOT)
TJFLAGS= -w -s
ifdef NODRAW
TJFLAGS+= -D NO_DRAW
endif
ifdef DEBUG
_68KFLAGS+= -DDEBUG
endif
ifdef SKUNK
_68KFLAGS+= -DSKUNK
endif
jaggd vj upload: _68KFLAGS+= -DSKUNK
vjd vjd_rom vj_rom vj: _68KFLAGS+= -DDEBUG
%.o : %.js
$(TJASS) $(TJFLAGS) $<
ALL: $(DEMO).cof $(DEMO).j64
$(DEMO).o : tom.o
boot.o: boot.S $(DEMO).bin
@$(RMAC) $(_68KFLAGS) boot.S
$(DEMO).o : $(DEMO).S
$(RMAC) $(_68KFLAGS) $(DEMO).S
$(DEMO).cof: $(DEMO).o
@$(RLN) -z -e -a 4000 x x -o $@ $<
$(DEMO).bin: $(DEMO).o
@$(RLN) -z -a 4000 x x -o $@ $<
rom: $(DEMO).rom
$(DEMO).rom: boot.o
@$(RLN) -rw -z -n -a 802000 x x -o $@ $<
.ONESHELL:
$(DEMO).j64: $(DEMO).rom
@cat $(BJL_ROOT)/bin/fastbt2_nb.bin $< >$@
cat $< >> $@
bzcat $(BJL_ROOT)/bin/allff.bin.bz2 >> $@
truncate -s 1M $@
include Rules.launch
.ONESHELL:
.PHONY: clean
clean:
rm -f *.o
rm -f *.equ
rm -f *~
rm -f *.rom *.abs *.bin