blob: bcd779dd4e6de65f94afbc7d469a40e00ed92960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
CC := gcc
RC := windres
#PERL := perl
PERL := /c/strawberry/perl/bin/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) -mwindows
all : kephra.exe
starter_xsi.c:
$(PERL) -MExtUtils::Embed -e xsinit -- -o $@
kephra.o : kephra.rc kephra_proton.ico kephra.manifest
$(RC) $< $@
kephra.exe : starter.o starter_xsi.o kephra.o
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o starter_xsi.c kephra.exe
|