aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-11-10 17:19:33 -0500
committerFranklin Wei <git@fwei.tk>2015-11-10 17:19:33 -0500
commit1511952de93d7a85bb3b252d6ed47d434ff208f6 (patch)
tree83ace48d8dbeffa62050c847dfe3db10fd303c91 /Makefile
parent768628ea1767b966418f21dced0572e222a6208b (diff)
downloadducky-1511952de93d7a85bb3b252d6ed47d434ff208f6.zip
ducky-1511952de93d7a85bb3b252d6ed47d434ff208f6.tar.gz
ducky-1511952de93d7a85bb3b252d6ed47d434ff208f6.tar.bz2
ducky-1511952de93d7a85bb3b252d6ed47d434ff208f6.tar.xz
add a rudimentary bytecode compiler
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 691e291..9aa209f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,12 @@ CC = gcc
OUT = build
PLATFORM = unix
-DUCKY_OBJ = src/interp.o
+DUCKY_OBJ = src/interp.o src/compile.o
CFLAGS = -lbsd -lm -Og -g -I src/ -I target/$(PLATFORM)
+all: $(OUT)/$(PLATFORM).bin
+
$(OUT)/$(PLATFORM).bin: $(DUCKY_OBJ) target/$(PLATFORM)/main.o Makefile
mkdir -p $(OUT)
$(CC) $(DUCKY_OBJ) target/$(PLATFORM)/main.o $(CFLAGS) -o $(OUT)/$(PLATFORM).bin