aboutsummaryrefslogtreecommitdiff
path: root/experimental/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/Makefile')
-rw-r--r--experimental/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/experimental/Makefile b/experimental/Makefile
index 17c9660..9d94f55 100644
--- a/experimental/Makefile
+++ b/experimental/Makefile
@@ -1,3 +1,4 @@
+# Startdate: 2022-09-28
# References:
# BUILD_DIR and per-.cpp file https://spin.atomicobject.com/2016/08/26/makefile-c-projects/
# https://bgstack15.ddns.net/blog/posts/2019/11/04/sample-makefile/ 2022-09-28-4 15:34
@@ -23,6 +24,7 @@ CCFLAGS = -g -Wno-deprecated-declarations \
`pkg-config --cflags gtk+-3.0` \
`pkg-config --cflags inih` \
$(DEBUGFLAGS)
+# `pkg-config --cflags xapp` \
CCFLAGS2 = -g -Wsign-conversion -Werror \
`pkg-config --cflags inih`
@@ -32,12 +34,22 @@ LDFLAGS = -g \
`pkg-config --libs x11` \
`pkg-config --libs gtk+-3.0` \
`pkg-config --libs inih`
+
+ifneq (,$(ENABLE_LIBXDO))
+CCFLAGS += -DENABLE_LIBXDO=1
+LDFLAGS += -lxdo
+# -lxdo is not available in pkg-config.
+endif
+
LDFLAGS2 = -g \
`pkg-config --libs inih`
ifneq (,$(DEBUG))
CCFLAGS+=-DDEBUG=1
endif
+ifneq (,$(ENABLE_SOCKETS))
+CCFLAGS+=-DENABLE_SOCKETS=1
+endif
src = $(wildcard *.c)
src := $(filter-out readconf.c, $(src))
@@ -73,7 +85,7 @@ $(OUTEXE): $(obj)
.PHONY: clean cleanall list
list:
- @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | ${awkbin} -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | ${sortbin} | ${grepbin} -E -v -e '^[^[:alnum:]]' -e '^$@$$' -e '\.(cp*|o)'
+ @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | ${awkbin} -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | ${sortbin} | ${grepbin} -E -v -e '^[^[:alnum:]]' -e '^$@$$' -e '\.(cp*|o)' -e '^$$'
clean:
rm -f $(obj) $(obj2)
bgstack15