CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS)
LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS)
-# Programs we want to compile
-PROGS+=$(o)/subauthd $(o)/subauth
+include $(s)/server/Makefile
+include $(s)/client/Makefile
+include $(s)/pam/Makefile
-# And how they are created
-$(o)/subauthd: $(o)/subauthd.o
-$(o)/subauth: $(o)/subauth.o
-
-# 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