-SUBDIRS = include
+SUBDIRS = . include
-if USE_FILE_CONFIG
- SUBDIRS += libfreeswan starter ipsec _copyright
+if USE_LIBSTRONGSWAN
+ SUBDIRS += libstrongswan
endif
-if USE_PLUTO
- SUBDIRS += libcrypto pluto whack
+if USE_LIBIPSEC
+ SUBDIRS += libipsec
endif
-if USE_LIBSTRONGSWAN
- SUBDIRS += libstrongswan
+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_PLUTO_OR_CHARON
- SUBDIRS += _updown _updown_espmark
+if USE_UPDOWN
+ SUBDIRS += _updown
+endif
+
+if USE_SCEPCLIENT
+ SUBDIRS += scepclient
+endif
+
+if USE_PKI
+ SUBDIRS += pki
+endif
+
+if USE_SWANCTL
+ SUBDIRS += swanctl
endif
-if USE_TOOLS
- SUBDIRS += openac scepclient
+if USE_CONFTEST
+ SUBDIRS += conftest
endif
-if USE_UML
- SUBDIRS += dumm
+if USE_FAST
+ SUBDIRS += libfast
endif
if USE_MANAGER
SUBDIRS += manager
endif
-if USE_FILE_CONFIG
-install-exec-local :
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/cacerts
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/ocspcerts
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/certs
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/acerts
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/aacerts
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/crls
- mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/reqs
- mkdir -p -m 700 $(DESTDIR)$(confdir)/ipsec.d/private
+if USE_MEDSRV
+ SUBDIRS += medsrv
+endif
+
+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
+
+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