summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2020-07-09 14:18:26 +0200
committerPeter Hofmann <scm@uninformativ.de>2020-07-09 14:18:26 +0200
commit7739f77980be760b31395546053577e9fe64ef10 (patch)
treeadd85c7353e7e9697f56fdb45183a725f657d746 /Makefile
parent7f133e35747e63d7e99a4eb89cb5e02a75486a39 (diff)
downloadlariza-7739f77980be760b31395546053577e9fe64ef10.tar.gz
Fix build with non-GNU sed, lint variables
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ac21403..f05e448 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3
__NAME__ = lariza
-__NAME_UPPERCASE__ = `echo $(__NAME__) | sed 's/.*/\U&/'`
-__NAME_CAPITALIZED__ = `echo $(__NAME__) | sed 's/^./\U&\E/'`
+__NAME_UPPERCASE__ = LARIZA
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
@@ -25,7 +24,6 @@ $(__NAME__): browser.c
$(CC) $(CFLAGS) $(LDFLAGS) \
-D__NAME__=\"$(__NAME__)\" \
-D__NAME_UPPERCASE__=\"$(__NAME_UPPERCASE__)\" \
- -D__NAME_CAPITALIZED__=\"$(__NAME_CAPITALIZED__)\" \
-o $@ $< \
`pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0`
@@ -33,7 +31,6 @@ 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`