summaryrefslogtreecommitdiff
path: root/schulung_tools/ipc_tcp/Makefile
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-02-01 17:02:02 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-02-01 17:02:02 +0106
commita7453e30ca4c9f42d27d42f96bc223533c330900 (patch)
tree9dcf79c2844c6512af9487e9f0cf2663d0bd01f3 /schulung_tools/ipc_tcp/Makefile
parent80aaf4928e7594f5fdf454de3fa5c43c9eb858c2 (diff)
ipc_tcp: add new ipc example using loopback sockets
This demo should (hopefully serve) as a basis for overlaying pcap and ftrace data within trace compass. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/ipc_tcp/Makefile')
-rw-r--r--schulung_tools/ipc_tcp/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/schulung_tools/ipc_tcp/Makefile b/schulung_tools/ipc_tcp/Makefile
new file mode 100644
index 0000000..be9a747
--- /dev/null
+++ b/schulung_tools/ipc_tcp/Makefile
@@ -0,0 +1,25 @@
+CC = $(CROSS_COMPILE)gcc
+CFLAGS = -Wall -Werror -g -O0 -std=c99 -D_GNU_SOURCE
+LDFLAGS =
+CFLAGS += \
+ -Wchar-subscripts \
+ -Wmissing-declarations \
+ -Wmissing-prototypes \
+ -Wnested-externs \
+ -Wpointer-arith \
+ -Wcast-align \
+ -Wfloat-equal \
+ -Wsign-compare
+
+all: recv send
+
+recv: recv.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o$@ $<
+
+send: send.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o$@ $<
+
+clean:
+ rm -f send recv
+
+.PHONY: clean all