-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
72 lines (55 loc) · 1.97 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
# Experimental makefile
INCLUDE=-I$(HOME)/A/Asm/Include -I. -I./Include
ASM ?= /opt/amiga/bin/vasmm68k_mot
FLAGS=
TARGET=
# Normal and debug build of the main app
all: HiP HiP-debug HiP-debug-ser group
# Same as above with debug build of the group as well.
# This enables logging with PS3M and sampleplayer.
debug: FLAGS+=-DDEBUG=1
debug: TARGET=debug
debug: all
# Main app
HiP: puu016.s kpl playerIds.i
$(ASM) $(INCLUDE) -m68000 -kick1hunks -Fhunkexe -nosym -DDEBUG=0 -o $@ $<
@echo Built $@
# Debug logging version
HiP-debug: puu016.s kpl playerIds.i
$(ASM) $(INCLUDE) -m68000 -kick1hunks -Fhunkexe -nosym -DDEBUG=1 -L [email protected] -o $@ $<
@echo Built $@
HiP-debug-ser: puu016.s kpl playerIds.i
$(ASM) $(INCLUDE) -m68000 -kick1hunks -Fhunkexe -nosym -DDEBUG=1 -DSERIALDEBUG=1 -o $@ $<
@echo Built $@
# Protracker replayer binary
kpl: kpl14.s
$(ASM) $(INCLUDE) -m68000 -no-opt -Fbin -o $@ $<
# Build the group file, assemble replayers and compress them
HippoPlayer.group: playergroup2.s playerIds.i eaglepl hippopl
$(ASM) $(INCLUDE) -m68000 -no-opt -Fbin -o $@ $<
@echo Built $@
group: HippoPlayer.group
eaglepl:
cd eagleplayers && make
hippopl:
cd pl && make $(TARGET)
# A separate compress target
compress:
cd pl && bash ./compress_shr
cd eagleplayers && bash ./compress_shr
cleaner: clean
cd eagleplayers && make clean
cd pl && make clean
clean:
rm -f HiP HiP-debug HiP-debug-ser
dist: HiP HiP-debug group
cd dist && make
stil: STIL.txt
STIL.txt:
wget https://hvsc.brona.dk/HVSC/C64Music/DOCUMENTS/STIL.txt
beta: HiP HiP-debug
lha a ~/Dropbox/hip-beta.lha HiP HiP-debug HiP-debug-ser HippoPlayer.group
cd playsid.library && lha a ~/Dropbox/hip-beta.lha playsid.library
cd ~/Prj/mdx2wav-koobo && lha a ~/Dropbox/hip-beta.lha mdx2wav.000 mdx2wav.020 mdx2wav.020fpu mdx2wav.040 mdx2wav.060
cd ~/Prj/vgm2wav-koobo && lha a ~/Dropbox/hip-beta.lha vgm2wav.000 vgm2wav.020 vgm2wav.020fpu vgm2wav.040 vgm2wav.060
scp ~/Dropbox/hip-beta.lha sitruuna.local:/srv/ftp/amiga/