summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net-socket/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/net-socket/Makefile')
-rw-r--r--tools/testing/selftests/net-socket/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/net-socket/Makefile b/tools/testing/selftests/net-socket/Makefile
new file mode 100644
index 0000000..f27ee10
--- /dev/null
+++ b/tools/testing/selftests/net-socket/Makefile
@@ -0,0 +1,16 @@
+# Makefile for net-socket selftests
+
+CC = $(CROSS_COMPILE)gcc
+CFLAGS = -Wall
+
+NET_SOCK_PROGS = socket
+
+all: $(NET_SOCK_PROGS)
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $^
+
+run_tests: all
+ @/bin/sh ./run_netsocktests || echo "vmtests: [FAIL]"
+
+clean:
+ $(RM) $(NET_SOCK_PROGS)
OpenPOWER on IntegriCloud