wyebadblock/makefile

27 lines
741 B
Makefile
Raw Normal View History

2017-07-17 08:21:10 +00:00
#CFLAGS += -c -Wall -Wno-deprecated-declarations
CFLAGS += -Wno-deprecated-declarations
#LDFLAGS=
2017-07-18 05:57:18 +00:00
EXTENSION_DIR=$(DESTDIR)/usr/lib/wyebrowser
2017-07-17 08:21:10 +00:00
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)
2017-07-18 00:24:01 +00:00
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)
2017-07-17 08:21:10 +00:00
clean:
rm -f adblock.so
install: all
install -Dm755 adblock.so $(EXTENSION_DIR)/adblock.so