-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
32 lines (26 loc) · 969 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
# Generic CC65 TARGETS makefile++
#
# Set the TARGETS and PROGRAM values as required.
# See makefiles/build.mk for details on directory structure for src files and how to add custom extensions to the build.
TARGETS = atari c64 apple2 apple2enh apple2gs coco
PROGRAM := fujinet.lib
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 dist/ dir"