SUBDIRS = . include
-if USE_FILE_CONFIG
- SUBDIRS += libfreeswan starter ipsec _copyright
-endif
-
if USE_LIBSTRONGSWAN
SUBDIRS += libstrongswan
endif
-if USE_PLUTO
- SUBDIRS += libcrypto pluto whack
+if USE_LIBIPSEC
+ SUBDIRS += libipsec
+endif
+
+if USE_SIMAKA
+ SUBDIRS += libsimaka
+endif
+
+if USE_TLS
+ SUBDIRS += libtls
+endif
+
+if USE_RADIUS
+ SUBDIRS += libradius
+endif
+
+if USE_LIBTNCIF
+ SUBDIRS += libtncif
+endif
+
+if USE_LIBTNCCS
+ SUBDIRS += libtnccs
+endif
+
+if USE_LIBPTTLS
+ SUBDIRS += libpttls
+endif
+
+if USE_LIBTPMTSS
+ SUBDIRS += libtpmtss
+endif
+
+if USE_IMCV
+ SUBDIRS += libimcv
+endif
+
+if USE_LIBCHARON
+ SUBDIRS += libcharon
+if USE_KERNEL_NETLINK
+ SUBDIRS += xfrmi
+endif
+endif
+
+if USE_FILE_CONFIG
+ SUBDIRS += starter
+endif
+
+if USE_IPSEC_SCRIPT
+ SUBDIRS += ipsec _copyright
endif
if USE_CHARON
SUBDIRS += charon
endif
+if USE_SYSTEMD
+ SUBDIRS += charon-systemd
+endif
+
+if USE_NM
+ SUBDIRS += charon-nm
+endif
+
if USE_STROKE
SUBDIRS += stroke
endif
if USE_UPDOWN
- SUBDIRS += _updown _updown_espmark
+ SUBDIRS += _updown
+endif
+
+if USE_SCEPCLIENT
+ SUBDIRS += scepclient
+endif
+
+if USE_PKI
+ SUBDIRS += pki
endif
-if USE_TOOLS
- SUBDIRS += libcrypto openac scepclient
+if USE_SWANCTL
+ SUBDIRS += swanctl
endif
-if USE_DUMM
- SUBDIRS += dumm
+if USE_CONFTEST
+ SUBDIRS += conftest
endif
if USE_FAST
SUBDIRS += medsrv
endif
-EXTRA_DIST = strongswan.conf
+if USE_ATTR_SQL
+ SUBDIRS += pool
+else
+if USE_SQL
+ SUBDIRS += pool
+endif
+endif
+
+if USE_TKM
+ SUBDIRS += charon-tkm
+endif
+
+if USE_CMD
+ SUBDIRS += charon-cmd
+endif
-install-exec-local :
- test -e "$(DESTDIR)${sysconfdir}" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)"
- test -e "$(DESTDIR)$(sysconfdir)/strongswan.conf" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -m 640 strongswan.conf $(DESTDIR)$(sysconfdir)/strongswan.conf || true
+if USE_SVC
+ SUBDIRS += charon-svc
+endif
+
+if USE_LIBPTTLS
+ SUBDIRS += pt-tls-client
+endif
+
+if USE_IMC_SWIMA
+ SUBDIRS += sw-collector
+endif
+
+if USE_IMV_SWIMA
+ SUBDIRS += sec-updater
+endif
+
+if USE_INTEGRITY_TEST
+ SUBDIRS += checksum
+endif
+
+if USE_AIKGEN
+ SUBDIRS += aikgen
+endif
+
+if USE_TPM
+ SUBDIRS += tpm_extendpcr
+endif