summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2019-06-22 11:50:50 +1000
committerDamien Zammit <damien@zamaudio.com>2019-06-22 11:50:50 +1000
commit7c7ce642131baf66b9829e91f718a3951ac24e35 (patch)
treeddf0fd692e9120ab2c66803751be5c1e07eed0a9 /Makefile
parent963691f7aff3bc12f95120027a6444041dc3eb06 (diff)
glib: Make dep optional
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d3391d8..125f1e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
+ifdef ($(HAVE_GLIB))
INCL=$(shell pkg-config --cflags glib-2.0) -I.
INCL32=$(shell PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --cflags glib-2.0) -I.
+else
+INCL=-I.
+INCL32=-I.
+endif
+
STRICT=-Wall -Wcast-align -Wextra -Wwrite-strings -Wunsafe-loop-optimizations -Wlogical-op -Wno-unused-function -Wno-implicit-fallthrough -std=c++98
CLANGSTRICT=-Woverloaded-virtual -Wno-mismatched-tags -ansi -Wnon-virtual-dtor -Woverloaded-virtual -fstrict-overflow -Wall -Wcast-align -Wextra -Wwrite-strings -Wno-unused-function -std=c++98