aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-01-13 02:54:34 +0000
committerubq323 <ubq323@ubq323.website>2022-01-13 03:14:05 +0000
commit1e73bdc8b81a37a8b674f4d1596e29d0b0a50902 (patch)
tree8b0d1c06a1e073dfbd041260e11f570cfd15498f /Makefile
parenta0069d69d064ba98176c7c19dc6c503909661ed0 (diff)
fix irc handling code and also add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..df7073c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+.POSIX:
+.SUFFIXES:
+
+CFLAGS=-Wall
+CC=cc
+debug=-g -DDEBUG -DLOCAL
+fs=thing.c
+
+all: thing
+
+thing: $(fs)
+ $(CC) $(CFLAGS) -o thing $(fs)
+
+debug:
+ $(CC) $(CFLAGS) $(debug) -o thing $(fs)
+
+run: all
+ ./thing
+
+dr: debug
+ ./thing