-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (24 loc) · 669 Bytes
/
Makefile
File metadata and controls
40 lines (24 loc) · 669 Bytes
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
35
36
37
38
39
WEBKIT=$(shell pkg-config --cflags --libs webkitgtk-3.0)
CFLAGS=-std=c99
.PHONY: all
all: transparent download-cb screenshot dom-walker js
.PHONY: run
run: transparent
./$< file://$(PWD)/sample.html
transparent: transparent.c
$(CC) $(CFLAGS) -o $@ $< $(WEBKIT)
download-cb: download-cb.c
$(CC) $(CFLAGS) -o $@ $< $(WEBKIT)
dom-walker: dom-walker.c
$(CC) $(CFLAGS) -o $@ $< $(WEBKIT)
js: js.c
$(CC) $(CFLAGS) -o $@ $< $(WEBKIT)
screenshot: screenshot.c
$(CC) $(CFLAGS) -o $@ $< `pkg-config --cflags --libs webkitgtk-3.0 cairo-pdf libsoup-2.4`
.PHONY: clean
clean:
rm -f transparent
rm -f download-cb
rm -f screenshot
rm -f dom-walker
rm -f js