From 47b8a9471fe006cef74d1ba8f8a2839fd8164041 Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 13 Dec 2020 13:49:38 +0000 Subject: initial commit. basic udp echo support. --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3