client: move sources into separate directory

Let's not mix daemon and client files as client might grow to multiple
files in future. This will also help with upcomming changes to packaging
scripts.
parent f9742127
......@@ -43,9 +43,9 @@ _obj
/aclocal.m4
/ltmain.sh
/ylwrap
/client/kresc
/doc/doxyxml
/doc/html
/daemon/kresc
/daemon/kresd
/daemon/lua/*.inc
/daemon/lua/kres.lua
......
......@@ -187,6 +187,7 @@ $(DESTDIR)$(ETCDIR):
# Sub-targets
include contrib/contrib.mk
include lib/lib.mk
include client/client.mk
include daemon/daemon.mk
include modules/modules.mk
include tests/tests.mk
......
# Experimental client requires libedit
ifeq ($(HAS_libedit), yes)
kresc_SOURCES := client/kresc.c
kresc_CFLAGS += -fPIE $(libedit_CFLAGS)
kresc_LIBS += $(contrib_TARGET) $(libedit_LIBS)
kresc_DEPEND := $(libkres) $(contrib)
$(eval $(call make_sbin,kresc,client,yes))
client: $(kresc)
client-install: kresc-install
client-clean: kresc-clean
.PHONY: client client-install client-clean
endif
......@@ -77,16 +77,4 @@ daemon/lua/kres-gen.lua: | $(libkres)
daemon/lua/kres-gen.sh | sed 's/ /\t/g' > $@
.DELETE_ON_ERROR: daemon/lua/kres-gen.lua
# Client
ifeq ($(HAS_libedit), yes)
kresc_SOURCES := daemon/kresc.c
kresc_CFLAGS += -fPIE $(libedit_CFLAGS)
kresc_LIBS += $(contrib_TARGET) $(libedit_LIBS)
kresc_DEPEND := $(libkres) $(contrib)
$(eval $(call make_sbin,kresc,daemon,yes))
client: $(kresc)
client-install: kresc-install
client-clean: kresc-clean
endif
.PHONY: daemon daemon-install daemon-clean client client-install client-clean
.PHONY: daemon daemon-install daemon-clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment