Update makefile
This commit is contained in:
parent
56aef5c5ae
commit
8c76adbbe3
23
makefile
23
makefile
|
@ -1,16 +1,12 @@
|
||||||
#CFLAGS += -Wall -Wno-deprecated-declarations
|
|
||||||
CFLAGS += -Wno-deprecated-declarations
|
|
||||||
#LDFLAGS=
|
|
||||||
EXTENSION_DIR=$(DESTDIR)/usr/lib/wyebrowser
|
EXTENSION_DIR=$(DESTDIR)/usr/lib/wyebrowser
|
||||||
DAPPNAME=-DAPPNAME='"wyebadblock"'
|
DAPPNAME=-DAPPNAME='"wyebadblock"'
|
||||||
|
ifeq ($(DEBUG), 1)
|
||||||
ifdef DEBUG
|
|
||||||
DDEBUG=-DDEBUG=${DEBUG}
|
|
||||||
|
|
||||||
ifneq ($(DEBUG), 0)
|
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
|
else
|
||||||
|
DEBUG = 0
|
||||||
|
CFLAGS += -Wno-deprecated-declarations
|
||||||
endif
|
endif
|
||||||
endif
|
DDEBUG=-DDEBUG=${DEBUG}
|
||||||
|
|
||||||
all: adblock.so wyebab librun.o testrun
|
all: adblock.so wyebab librun.o testrun
|
||||||
|
|
||||||
|
@ -46,9 +42,14 @@ install: all
|
||||||
install -Dm755 wyebab $(DESTDIR)/usr/bin/wyebab
|
install -Dm755 wyebab $(DESTDIR)/usr/bin/wyebab
|
||||||
install -Dm755 adblock.so $(EXTENSION_DIR)/adblock.so
|
install -Dm755 adblock.so $(EXTENSION_DIR)/adblock.so
|
||||||
|
|
||||||
re: clean all
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)/usr/bin/wyebab
|
rm -f $(DESTDIR)/usr/bin/wyebab
|
||||||
rm -f $(EXTENSION_DIR)/adblock.so
|
rm -f $(EXTENSION_DIR)/adblock.so
|
||||||
-rmdir $(EXTENSION_DIR)
|
-rmdir $(EXTENSION_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
re: clean all
|
||||||
|
# $(MAKE) clean
|
||||||
|
# $(MAKE) all
|
||||||
|
|
||||||
|
full: re install
|
||||||
|
|
Loading…
Reference in New Issue
Block a user