diff options
| author | Franklin Wei <git@fwei.tk> | 2015-11-10 17:19:33 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-11-10 17:19:33 -0500 |
| commit | 1511952de93d7a85bb3b252d6ed47d434ff208f6 (patch) | |
| tree | 83ace48d8dbeffa62050c847dfe3db10fd303c91 /Makefile | |
| parent | 768628ea1767b966418f21dced0572e222a6208b (diff) | |
| download | ducky-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-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |