diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-11-30 15:50:51 +0100 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-11-30 15:50:51 +0100 |
commit | dae6061a900777aff7c4bfbddf2cef191743cfce (patch) | |
tree | 6cc6e536a1832a6f60ac33fde4f7602079c4fc14 /Makefile | |
parent | 9a17902a3e548565c7b1dd200cf5d305db1d1325 (diff) | |
download | lariza-dae6061a900777aff7c4bfbddf2cef191743cfce.tar.gz |
Re-implement adblock as a web extension
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -3,6 +3,9 @@ __NAME__ = lariza __NAME_UPPERCASE__ = `echo $(__NAME__) | sed 's/.*/\U&/'` __NAME_CAPITALIZED__ = `echo $(__NAME__) | sed 's/^./\U&\E/'` +.PHONY: all +all: $(__NAME__) we_adblock.so + $(__NAME__): browser.c $(CC) $(CFLAGS) $(LDFLAGS) \ -D__NAME__=\"$(__NAME__)\" \ @@ -11,5 +14,13 @@ $(__NAME__): browser.c -o $@ $< \ `pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0` +we_adblock.so: we_adblock.c + $(CC) $(CFLAGS) $(LDFLAGS) \ + -D__NAME__=\"$(__NAME__)\" \ + -D__NAME_UPPERCASE__=\"$(__NAME_UPPERCASE__)\" \ + -D__NAME_CAPITALIZED__=\"$(__NAME_CAPITALIZED__)\" \ + -shared -o $@ -fPIC $< \ + `pkg-config --cflags --libs glib-2.0 webkit2gtk-4.0` + clean: - rm -f $(__NAME__) + rm -f $(__NAME__) we_adblock.so |