aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..697e32c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+CC := gcc
+RC := windres
+
+PERL := perl
+PERL_CCOPTS := $(shell $(PERL) -MExtUtils::Embed -e ccopts)
+#PERL_LDOPTS := $(shell $(PERL) -MExtUtils::Embed -e ldopts)
+PERL_LDOPTS := -L/c/strawberry/perl/lib/CORE -lperl510
+
+CFLAGS := $(PERL_CCOPTS) -std=gnu99
+CPPFLAGS :=
+LDFLAGS := $(PERL_LDOPTS) -Wl,--subsystem,windows
+
+all : kephra.exe
+
+starter_xsi.c:
+ $(PERL) -MExtUtils::Embed -e xsinit -- -o $@
+
+icon.o : icon.rc kephra_proton.ico
+ $(RC) $< $@
+
+kephra.exe : starter.o starter_xsi.o icon.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -f *.o starter_xsi.c kephra.exe