# Note: could be that it may not fully compile 'inline'

-include ./config.make

ifeq ($(GNUSTEP_MAKEFILES),)

$(warning Note: Your $(GNUSTEP_MAKEFILES) environment variable is empty!)
$(warning       Either configure SOPE or source GNUstep.sh.)

else

include $(GNUSTEP_MAKEFILES)/common.make


ifeq ($(COMPILE_EMBEDDED_LIBOBJC),yes)
SUBPROJECTS += gnustep-objc
endif

ifeq ($(COMPILE_EMBEDDED_LIBFOUNDATION),yes)
SUBPROJECTS += libFoundation
endif


SUBPROJECTS += \
	sope-xml	\
	sope-core	\
	sope-mime	\
	sope-appserver	\
	sope-ldap	\
	sope-ical	\
	sope-gdl1	\
	xmlrpc_call	\

-include $(GNUSTEP_MAKEFILES)/GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
-include $(GNUSTEP_MAKEFILES)/GNUmakefile.postamble

endif

distclean ::
	if test -f config.make; then rm config.make; fi
	if test -d .makeenv;    then rm -r .makeenv; fi
	rm -f config-*.log install-*.log
	if test -f gnustep-make/GNUmakefile; then \
		cd gnustep-make; \
		$(MAKE) distclean; \
		cd ..; \
	fi
