From dcdbbc74d4ea4340b18b77369c7512bb167b43f1 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 8 Oct 2022 16:34:20 -0400 Subject: almost-production-worthy KLT.c added sockets, fifos, click-to-switch, libxdo support --- experimental/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'experimental/Makefile') 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) -- cgit