-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.win
33 lines (25 loc) · 898 Bytes
/
Makefile.win
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
28
29
30
31
32
33
VERSION = $(shell cat VERSION)
CFLAGS += -g -Wall -DAPP_VERSION="\"$(VERSION)\""
LDFLAGS +=
CC ?= gcc
POPPLER_CFLAGS = $(shell pkg-config --cflags --static poppler-glib)
POPPLER_LIBS = $(shell pkg-config --libs poppler-glib)
all: pdf-webslides
pdf-webslides: webslides.o cli.o utils.o res.o
$(CC) webslides.o cli.o utils.o res.o $(LDFLAGS) $(CFLAGS) -o pdf-webslides $(POPPLER_LIBS) -lshlwapi
webslides.o: webslides.c
$(CC) webslides.c -c $(CFLAGS) $(POPPLER_CFLAGS)
cli.o: cli.c
$(CC) cli.c -c $(CFLAGS)
utils.o: utils.c
$(CC) utils.c -c $(CFLAGS)
res.o: resconv res.c freeze.svg black.svg open.svg index.html.template
./resconv freeze.svg > res_gen.c
./resconv black.svg >> res_gen.c
./resconv open.svg >> res_gen.c
./resconv index.html.template >> res_gen.c
$(CC) res.c -c $(CFLAGS)
resconv: resconv.c
$(CC) resconv.c -o resconv
clean:
rm -f *.o pdf-webslides resconv