+tinc_SOURCES = \
+ dropin.c \
+ getopt.c \
+ getopt1.c \
+ info.c \
+ invitation.c \
+ list.c \
+ names.c \
+ netutl.c \
+ sptps.c \
+ subnet_parse.c \
+ tincctl.c \
+ top.c \
+ utils.c
+
+sptps_test_SOURCES = \
+ logger.c \
+ sptps.c \
+ sptps_test.c \
+ utils.c
+
+## Conditionally compile device drivers
+
+if LINUX
+tincd_SOURCES += linux/device.c
+endif
+
+if BSD
+tincd_SOURCES += bsd/device.c
+if TUNEMU
+tincd_SOURCES += bsd/tunemu.c
+endif
+endif
+
+if SOLARIS
+tincd_SOURCES += solaris/device.c
+endif
+
+if MINGW
+tincd_SOURCES += mingw/device.c
+endif
+
+if CYGWIN
+tincd_SOURCES += cygwin/device.c
+endif
+
+if UML
+tincd_SOURCES += uml_device.c
+endif
+
+if VDE
+tincd_SOURCES += vde_device.c
+endif
+
+if OPENSSL
+tincd_SOURCES += \
+ openssl/cipher.c \
+ openssl/crypto.c \
+ openssl/digest.c \
+ openssl/ecdh.c \
+ openssl/ecdsa.c \
+ openssl/prf.c \
+ openssl/rsa.c
+tinc_SOURCES += \
+ openssl/cipher.c \
+ openssl/crypto.c \
+ openssl/digest.c \
+ openssl/ecdh.c \
+ openssl/ecdsa.c \
+ openssl/ecdsagen.c \
+ openssl/prf.c \
+ openssl/rsa.c \
+ openssl/rsagen.c
+sptps_test_SOURCES += \
+ openssl/cipher.c \
+ openssl/crypto.c \
+ openssl/digest.c \
+ openssl/ecdh.c \
+ openssl/ecdsa.c \
+ openssl/prf.c
+endif