X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FMakefile.am;h=ef61ff85d3773427ddd4685df33a21c3fb05597d;hb=761b7b93543ad2e8dfd307ee3679b3a2a7082ddc;hp=558c7b8c908c0fc11ba8c5bf2b52e941e4e4588d;hpb=59991393caa63499898526fed6f0145302f00755;p=simgear.git diff --git a/simgear/io/Makefile.am b/simgear/io/Makefile.am index 558c7b8c..ef61ff85 100644 --- a/simgear/io/Makefile.am +++ b/simgear/io/Makefile.am @@ -8,7 +8,7 @@ include_HEADERS = \ sg_binobj.hxx \ sg_file.hxx \ sg_serial.hxx \ - sg_socket.hxx + sg_socket.hxx \ sg_socket_udp.hxx libsgio_a_SOURCES = \ @@ -20,9 +20,33 @@ libsgio_a_SOURCES = \ sg_socket.cxx \ sg_socket_udp.cxx +if OLD_AUTOMAKE INCLUDES += -I$(top_srcdir) +else +INCLUDES = -I$(top_srcdir) +endif -noinst_PROGRAMS = decode_binobj socktest lowtest +if IS_MINGW +NETWORK_LIB = -lwsock32 +else +NETWORK_LIB = +endif + +noinst_PROGRAMS = decode_binobj socktest lowtest tcp_server tcp_client + +tcp_server_SOURCES = tcp_server.cxx + +tcp_server_LDADD = \ + $(top_builddir)/simgear/io/libsgio.a \ + $(top_builddir)/simgear/debug/libsgdebug.a \ + -lplibnet + +tcp_client_SOURCES = tcp_client.cxx + +tcp_client_LDADD = \ + $(top_builddir)/simgear/io/libsgio.a \ + $(top_builddir)/simgear/debug/libsgdebug.a \ + -lplibnet socktest_SOURCES = socktest.cxx @@ -32,7 +56,7 @@ socktest_LDADD = \ $(top_builddir)/simgear/debug/libsgdebug.a \ $(top_builddir)/simgear/misc/libsgmisc.a \ $(top_builddir)/simgear/xml/libsgxml.a \ - -lz + -lplibnet -lz lowtest_SOURCES = lowtest.cxx @@ -47,4 +71,4 @@ decode_binobj_LDADD = \ $(top_builddir)/simgear/misc/libsgmisc.a \ $(top_builddir)/simgear/debug/libsgdebug.a \ $(top_builddir)/simgear/xml/libsgxml.a \ - -lz + $(NETWORK_LIB) -lz