summaryrefslogtreecommitdiff
path: root/Makefile
blob: f68e56c503bd890f6ea1b38848044c8d9b7c42e4 (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
26
27
28
29
30
#https://csclub.uwaterloo.ca/~jy2wong/jenerated/blog/2014-12-02.webkit2_webextensions.html
#http://rvr.typepad.com/wind/2011/10/webkit-extending-javascript-1.html
#https://github.com/vain/lariza
#https://github.com/rschroll/webkitdom
#https://github.com/jun7/wyeb


include config.mk

.PHONY: rebuild clean install

surf-webext-dom.so: surf-webext-dom.o
	@echo CREATING SHARED LIB
	$(CC) -shared -o surf-webext-dom.so surf-webext-dom.o 

surf-webext-dom.o: surf-webext-dom.c
	@echo COMPILILNG OBJECT
	$(CC) $(CFLAGS) -fPIC -c surf-webext-dom.c 

rebuild:
	@echo REBUILDING PROJECT

install: surf-webext-dom.so
	@echo INSTALLING SHARED LIB to $(LIBPREFIX)
	cp surf-webext-dom.so $(LIBPREFIX)/
clean:
	@echo CLEANING UP
	-rm surf-webext-dom.o
	-rm surf-webext-dom.so