EXTRA_RUNDIRS=run
# Add the detected flags to all the global flags
-CFLAGS+=$(LIBUCW_CFLAGS)
-LIBS+=$(LIBUCW_LIBS)
+CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS)
+LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS)
-# Programs we want to compile
-PROGS+=$(o)/subauthd $(o)/subauth
-
-# And how they are created
-$(o)/subauthd: $(o)/subauthd.o $(LIBUCW)
-$(o)/subauth: $(o)/subauth.o $(LIBUCW)
-
-# Configuration files
-CONFIGS+=subauthd
+include $(s)/server/Makefile
+include $(s)/client/Makefile
# And finally the default rules of the build system
include $(BUILDSYS)/Makebottom