30 lines
813 B
Makefile
30 lines
813 B
Makefile
#CFLAGS += -c -Wall -Wno-deprecated-declarations
|
|
CFLAGS += -Wno-deprecated-declarations
|
|
#LDFLAGS=
|
|
EXTENSION_DIR=$(DESTDIR)/usr/lib/wyebrowser
|
|
DAPPNAME=-DAPPNAME='"wyebadblock"'
|
|
|
|
all: adblock.so
|
|
|
|
adblock.so: ephy-uri-tester.c ephy-uri-tester.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -shared -fPIC \
|
|
`pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0` \
|
|
-DEXTENSION_DIR=\"$(EXTENSION_DIR)\" \
|
|
$(DDEBUG) $(DAPPNAME)
|
|
|
|
cssoutput: ephy-uri-tester.c ephy-uri-tester.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< \
|
|
`pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0` \
|
|
-DEXTENSION_DIR=\"$(EXTENSION_DIR)\" \
|
|
$(DDEBUG) $(DAPPNAME)
|
|
|
|
clean:
|
|
rm -f adblock.so
|
|
|
|
install: all
|
|
install -Dm755 adblock.so $(EXTENSION_DIR)/adblock.so
|
|
|
|
uninstall:
|
|
rm -f $(EXTENSION_DIR)/adblock.so
|
|
-rmdir $(EXTENSION_DIR)
|