SUBPROJECTS += \
GDLAccess \
- GDLContentStore \
- PostgreSQL
+ GDLContentStore
+
+ifeq ($(HAS_LIBRARY_pq),yes)
+SUBPROJECTS += PostgreSQL
+endif
+
+ifeq ($(HAS_LIBRARY_sqlite3),yes)
+SUBPROJECTS += SQLite3
+endif
+
+ifeq ($(HAS_LIBRARY_mysqlclient),yes)
+SUBPROJECTS += MySQL
+endif
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make