diff options
author | B. Stack <bgstack15@gmail.com> | 2022-10-08 16:34:20 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-10-09 16:45:23 -0400 |
commit | dcdbbc74d4ea4340b18b77369c7512bb167b43f1 (patch) | |
tree | e7b52877678abcc81243f0b016d2cacad33af2e8 /experimental/Makefile | |
parent | change #ifdef DEBUG to if(debug) to use -d (diff) | |
download | keyboard-leds-trayicons-experimental.tar.gz keyboard-leds-trayicons-experimental.tar.bz2 keyboard-leds-trayicons-experimental.zip |
almost-production-worthy KLT.cexperimental
added sockets, fifos, click-to-switch, libxdo support
Diffstat (limited to 'experimental/Makefile')
-rw-r--r-- | experimental/Makefile | 14 |
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) |