aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-12 12:07:57 +0200
committerkdx <kikoodx@paranoici.org>2023-06-12 12:07:57 +0200
commit762808190ed93824ba3e4139a153ebf0699bb3f8 (patch)
tree14b516c2ab1e56d8f941b452f81f4330e6db2ce9 /Makefile
parent0bf3be956c9cc8d919aea9f1c6f4ab7f3b735a52 (diff)
downloadorga-762808190ed93824ba3e4139a153ebf0699bb3f8.tar.gz
makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0f17b34
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+#!/bin/sh
+CFLAGS = -std=c99 -Wall -Wextra -O3 -s
+LIBS =
+
+ifeq ($(NO_SDL),true)
+ CFLAGS += -DNO_SDL=
+else
+ LIBS += -lSDL2
+endif
+
+ifeq ($(EMBED),true)
+ CFLAGS += -DEMBED_ROM=
+endif
+
+all: orgaasm orgaemu
+
+orgaasm: src/orgaasm.c
+ $(CC) $(CFLAGS) -o $@ $<
+
+orgaemu: src/orgaemu.c
+ $(CC) $(CFLAGS) -o $@ $<
+
+clean:
+ rm -f orgaasm orgaemu
+
+.PHONY: all clean