-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
34 lines (25 loc) · 885 Bytes
/
Makefile
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
34
VERSION = $(shell cat VERSION)
CFLAGS += -g -Wall -DAPP_VERSION="\"$(VERSION)\"" -Wno-address-of-packed-member -Wextra
LDFLAGS +=
CC ?= gcc
all: pdf-webslides
pdf-webslides: webslides.o cli.o utils.o res.o
$(CC) webslides.o cli.o utils.o res.o $(LDFLAGS) -o pdf-webslides `pkg-config --libs poppler-glib`
webslides.o: webslides.c
$(CC) webslides.c -c $(CFLAGS) `pkg-config --cflags --static poppler-glib`
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
deb: pdf-webslides
fakeroot -u ./makedeb.sh
clean:
rm -f *.o *.deb pdf-webslides resconv