aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 507fbb784e82796743297e16d288ff6949a11c7c (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
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) -mwindows

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