aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-12-13 13:49:38 +0000
committerrodri <rgl@antares-labs.eu>2020-12-13 13:49:38 +0000
commit47b8a9471fe006cef74d1ba8f8a2839fd8164041 (patch)
tree9c06df600c7b690d0ede965f7d589ef8c4aab629 /Makefile
downloadechod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.tar.gz
echod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.tar.bz2
echod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.zip
initial commit. basic udp echo support.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..132c7da
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+CC=cc
+CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -Wno-pointer-to-int-cast -fno-diagnostics-color -I/usr/local/include -ggdb -c -O2
+LDFLAGS=-L/usr/local/lib -pthread -lfmt -lutf
+O=o
+
+TARG=udp7
+OFILES=\
+ main.$O\
+ util.$O\
+
+HFILES=\
+ dat.h\
+ fns.h\
+ args.h\
+
+.PHONY: all clean
+all: $(TARG)
+
+%.$O: %.c
+ $(CC) $(CFLAGS) $<
+
+$(OFILES): $(HFILES)
+
+$(TARG): $(OFILES)
+ $(CC) -o $@ $(OFILES) $(LDFLAGS)
+
+clean:
+ rm $(OFILES) $(TARG)