From 9cae35562022c7ccb0875effcc4f0f11320562b7 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 30 Dec 2010 17:29:35 +0100 Subject: preliminary kephra starter with embedded perl * requires a MinGW environment and installed strawberry perl --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3