-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
43 lines (33 loc) · 1.06 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
#----------------------------------------
#
# Celtic CE Source Code - makefile
# By RoccoLox Programs and TIny_Hacker
# Copyright 2022 - 2024
# License: BSD 3-Clause License
# Last Built: January 11, 2024
#
#----------------------------------------
NAME = CelticCE
SRC = src/celtic.asm
AINST_NAME = AINSTALL
AINST_SRC = src/AINSTALL/ainstall.asm
NAME_BETA = $(NAME)-BETA
FLAG_PREREALEASE = -i 'flag_prerelease := 1'
FLAG_NOT_PRERELEASE = -i 'flag_prerelease := 0'
Q = @
all:
$(Q)echo Building AINSTALL...
$(Q)fasmg $(AINST_SRC) $(AINST_NAME).8xp
$(Q)echo Building CelticCE...
$(Q)fasmg $(FLAG_NOT_PRERELEASE) $(SRC) $(NAME).8xp
beta:
$(Q)echo Building AINSTALL...
$(Q)fasmg $(AINST_SRC) $(AINST_NAME).8xp
$(Q)echo Building CelticCE...
$(Q)fasmg $(FLAG_PREREALEASE) $(SRC) $(NAME_BETA).8xp
ainstall:
$(Q)echo Building AINSTALL...
$(Q)fasmg $(AINST_SRC) $(AINST_NAME).8xp
final: all
$(Q)convbin --archive --8xp-compress zx0 --oformat 8xp-compressed --uppercase --name $(NAME) --iformat 8x --input $(NAME).8xp --output $(NAME).8xp
.PHONY: all beta ainstall final