forked from a8jan/fujinet-config-loader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (41 loc) · 999 Bytes
/
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
#
# FujiNet Config Loader Makefile
#
# 2021-2024 [email protected]
#
.PHONY: all dist tools clean cleantools cleanall
DENSITY := SD
ifeq ($(DENSITY), DD)
DENSITYOPT := -D
else
DENSITYOPT := -S
endif
ifdef CONFIG_PROG
CONFIG_PROG_FILE := $(realpath $(CONFIG_PROG))
export CONFIG_PROG_FILE
$(info Using CONFIG_PROG $(CONFIG_PROG_FILE))
endif
all: tools
@echo "Building CONFIG loader"
$(MAKE) -C src all
tools:
@echo "Building tools"
$(MAKE) -C tools all
$(MAKE) -C src zx0unpack
clean:
$(MAKE) -C src clean
rm -f autorun-zx0.atr
rm -rf dist
cleantools:
$(MAKE) -C tools clean
cleanall: clean cleantools
dist: all
@echo "Building ATR disk image"
mkdir -p dist
cp src/cloader.zx0 dist/
cp src/config.com dist/
cp ../fujinet-config-tools/atari/dist/*.COM dist/ || true
cp ../fujinet-config-tools/atari/dist/*.com dist/ || true
rm -f autorun-zx0.atr
dir2atr $(DENSITYOPT) -B src/zx0boot.bin autorun-zx0.atr dist/
tools/update-atr.py autorun-zx0.atr cloader.zx0 config.com