blob: e9d56bfa42eb51181799203790e5beeee374ff62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CC65 ?= cl65
CCOPTS ?= --verbose --target nes
##
# General targets.
.PHONY: all
all: clean deps build
.PHONY: clean
clean:
@rm -rf out
@mkdir out
.PHONY: deps
deps:
@which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false)
.PHONY: build
build: out/input.nes
out/input.nes: examples/input.s examples/wrapper.s
$(CC65) $(CCOPTS) examples/input.s examples/wrapper.s -o $@
|