aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)