diff options
author | rodri <rgl@antares-labs.eu> | 2020-12-13 13:49:38 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2020-12-13 13:49:38 +0000 |
commit | 47b8a9471fe006cef74d1ba8f8a2839fd8164041 (patch) | |
tree | 9c06df600c7b690d0ede965f7d589ef8c4aab629 /Makefile | |
download | echod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.tar.gz echod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.tar.bz2 echod-47b8a9471fe006cef74d1ba8f8a2839fd8164041.zip |
initial commit. basic udp echo support.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
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) |