-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·34 lines (27 loc) · 1 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
TARGETS = apple2
PROGRAM := fnclk.system
export DEBUG := false
export FUJINET_LIB_VERSION := 4.7.2
SUB_TASKS := clean disk test release
.PHONY: all help $(SUB_TASKS)
all:
@for target in $(TARGETS); do \
echo "-------------------------------------"; \
echo "Building $$target"; \
echo "-------------------------------------"; \
$(MAKE) --no-print-directory -f ./makefiles/build.mk CURRENT_TARGET=$$target PROGRAM=$(PROGRAM) $(MAKECMDGOALS); \
done
$(SUB_TASKS): _do_all
$(SUB_TASKS):
@:
_do_all: all
help:
@echo "Makefile for $(PROGRAM)"
@echo ""
@echo "Available tasks:"
@echo "all - do all compilation tasks, create app in build directory"
@echo "clean - remove all build artifacts"
@echo "release - create a release of the executable in the build/ dir"
@echo "disk - generate platform specific disk images in dist/ dir"
@echo " specific platforms may expose additional variables to run with"
@echo " different emulators, see makefiles/custom-<platform>.mk"