-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmakefile
41 lines (32 loc) · 916 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
33
34
35
36
37
38
39
40
41
# Troy's HBC-56 - Shared Makefile
#
# Copyright (c) 2021 Troy Schrapel
#
# This code is licensed under the MIT license
#
# https://github.com/visrealm/hbc-56
#
#
# Project makefiles should include this one, but first define
# ROOT_PATH to be this directory
#
# Command to run a project in the emulator
HBC56EMU=$(ROOT_PATH)../../build/bin/Hbc56Emu
# Comile command
ACME=$(ROOT_PATH)../../build/bin/acme -I $(ROOT_PATH)lib -I $(ROOT_PATH)kernel
LCD_MODEL?=12864
RM = rm
#del /Q
export LCD_MODEL
export DISABLE_KERNEL_MODULES
# Every project should depend on the kernel
kernel:
"$(MAKE)" -C $(ROOT_PATH)kernel kernel.o
# Default compile task
%.o: %.asm kernel makefile $(ROOT_PATH)makefile
$(ACME) -o $@ -l [email protected] -r [email protected] $<
more "$(ROOT_PATH)kernel/kernel.o.rpt" >> [email protected]
# Hex compile task
%.hex: %.asm kernel makefile $(ROOT_PATH)makefile
$(ACME) -f hex -o $@ -l [email protected] -r [email protected] $<
.PHONY: clean