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
+install::
+.PHONY: install
-# And how they are created
-$(o)/subauthd: $(o)/subauthd.o $(LIBUCW)
-$(o)/subauth: $(o)/subauth.o $(LIBUCW)
+include $(s)/server/Makefile
+include $(s)/client/Makefile
+include $(s)/pam/Makefile
-# Configuration files
-CONFIGS+=subauthd
+ifdef CONFIG_APACHE_MOD
+include $(s)/apache/Makefile
+endif
# And finally the default rules of the build system
include $(BUILDSYS)/Makebottom