diff options
author | Robin Haberkorn <rh@travelping.com> | 2010-12-30 17:29:35 +0100 |
---|---|---|
committer | Robin Haberkorn <rh@travelping.com> | 2010-12-30 17:29:35 +0100 |
commit | 9cae35562022c7ccb0875effcc4f0f11320562b7 (patch) | |
tree | 905756dfe555fcaa664cac6cc845a1a1858e4b55 /Makefile | |
download | perl-starter-9cae35562022c7ccb0875effcc4f0f11320562b7.tar.gz |
preliminary kephra starter with embedded perl
* requires a MinGW environment and installed strawberry perl
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
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 |