aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile17
-rwxr-xr-xnet/x_net_tcpreceive.c1
-rwxr-xr-xnet/x_net_tcpsend.c1
-rwxr-xr-xnet/x_net_udpreceive.c1
-rwxr-xr-xnet/x_net_udpsend.c1
5 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..576ff87
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|')
+EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|')
+
+default:
+ make -C $(EXTERNALS_ROOT) $(TARGET)
+
+install:
+ make -C $(EXTERNALS_ROOT) $(TARGET)_install
+
+clean:
+ make -C $(EXTERNALS_ROOT) $(TARGET)_clean
+
+test_locations:
+ make -C $(EXTERNALS_ROOT) test_locations
+
+etags:
+ etags *.[ch] ~/cvs/pure-data/pd/src/*.[ch] /usr/include/*.h /usr/include/sys/*.h
diff --git a/net/x_net_tcpreceive.c b/net/x_net_tcpreceive.c
index d5884e1..4cce77d 100755
--- a/net/x_net_tcpreceive.c
+++ b/net/x_net_tcpreceive.c
@@ -10,6 +10,7 @@
#include <winsock2.h>
#include <ws2tcpip.h> /* for socklen_t */
#else
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
diff --git a/net/x_net_tcpsend.c b/net/x_net_tcpsend.c
index 1a9937b..cf8c33d 100755
--- a/net/x_net_tcpsend.c
+++ b/net/x_net_tcpsend.c
@@ -11,6 +11,7 @@
#ifdef MSW
#include <winsock2.h>
#else
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
diff --git a/net/x_net_udpreceive.c b/net/x_net_udpreceive.c
index 1aa9058..cef02b2 100755
--- a/net/x_net_udpreceive.c
+++ b/net/x_net_udpreceive.c
@@ -10,6 +10,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#else
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
diff --git a/net/x_net_udpsend.c b/net/x_net_udpsend.c
index 03c1f18..7b468f9 100755
--- a/net/x_net_udpsend.c
+++ b/net/x_net_udpsend.c
@@ -13,6 +13,7 @@
#ifdef MSW
#include <winsock2.h>
#else
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>