forked from sayon/forthress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 655 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 655 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
# ------------------------------------------------
# Forthress, a Forth dialect
#
# Author: igorjirkov@gmail.com
# Date : 15-10-2016
#
# ------------------------------------------------
ASM = nasm
FLAGS = -felf64 -g -Isrc/
LINKER = ld
all: bin/forthress
bin/forthress: obj/forthress.o obj/util.o
mkdir -p bin
ld -o bin/forthress obj/forthress.o obj/util.o
obj/forthress.o: src/forthress.asm src/macro.inc src/words.inc src/util.inc
mkdir -p obj
$(ASM) $(FLAGS) src/forthress.asm -o obj/forthress.o
obj/util.o: src/util.inc src/util.asm
mkdir -p obj
$(ASM) $(FLAGS) src/util.asm -o obj/util.o
clean:
rm -rf build obj
.PHONY: clean