-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 723 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 723 Bytes
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
#
# Makefile for FE3-Firmware and utils
#
include version.inc
AS = dasm
ASFLAGS = -f3
ifdef verbose
ASFLAGS += -v$(verbose)
endif
# Disable fe3flash.prg VENDOR/DEVICE check.
# Needed for initial flashing of unsupported flash.
ifdef no_vendor_check
ASFLAGS += -DNO_VENDOR_CHECK
endif
all: fe3firmware fe3diag.prg fe3flash.prg
fe3firmware: fe3firmware.asm version.inc
$(AS) $< $(ASFLAGS) -o$@
fe3diag.prg: fe3diag.asm
$(AS) $< $(ASFLAGS) -o$@
fe3flash.prg: fe3flash.asm
$(AS) $< $(ASFLAGS) -o$@
package:
zip fe3firmware-$(shell echo v$(FW_VERSION) | tr -d \").zip \
NEWS \
fe3firmware \
fe3diag.prg \
fe3flash.prg
clean:
$(RM) fe3firmware
$(RM) fe3diag.prg
$(RM) fe3flash.prg
$(RM) *~
$(RM) *.zip