~nhoad/roland

ref: d7fbf88565552f72677caa836d76ffa427288c76 roland/webextensions/Makefile -rw-r--r-- 545 bytes View raw
d7fbf885 — Nathan Hoad In practice, related webviews are basically always available, so this creates a single enormous webview. 2 years ago
                                                                                
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
#
# Makefile
# Adrian Perez, 2015-08-25 11:58
#

CFLAGS ?= -Os -Wall

PYTHON        ?= python3
PKG_MODULES   := pygobject-3.0 webkit2gtk-web-extension-4.0 ${PYTHON}
WEB_EXT_FLAGS := $(shell pkg-config ${PKG_MODULES} --cflags)
WEB_EXT_LIBS  := $(shell pkg-config ${PKG_MODULES} --libs)

CPPFLAGS += ${WEB_EXT_FLAGS}
LDLIBS   += ${WEB_EXT_LIBS}

all: pythonloader.so

pythonloader.so: pythonloader.o
	${LD} ${LDFLAGS} -fPIC -shared -o $@ $^ ${LDLIBS}
pythonloader.so: CFLAGS += -fPIC

clean:
	${RM} pythonloader.o pythonloader.so

# vim:ft=make
#