blob: 94646a9fb541136a41bdf0a0f93bfe728dfbdc44 (
plain)
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
|
####
# source code settings
#
OSNAME := helvetiOS
CSOURCES := $(wildcard *.c)
BINARY := $(OSNAME).bin
###
# compiler settings
#
CC := zcc
CARGS := -Wall -I . -DDEBUG -crt0 loader -asm z80asm -nostdlib
all: $(BINARY)
# build binary
$(BINARY): $(CSOURCES)
cp loader.asm loader.opt
$(CC) $(CARGS) $(CSOURCES) -o $@
dis: $(BINARY)
z80dasm -a -g 0h $<
clean:
- rm $(BINARY)
- rm loader.opt
|