aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-28 01:17:59 +0100
committerubq323 <ubq323@ubq323.website>2022-10-28 01:17:59 +0100
commitc524506e04927a39648d47ba55af4fdff32faab6 (patch)
tree94fb88c53b7b1530753872277ec8f3d2caaa8161 /Makefile
parent7a17c3a4ea869a04041ff2568fd02ec676ab8dff (diff)
horrible makefile tricks, making the buffer thing actually buffer the buffers bufferously, properly, also fix typos
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cb02b50..2269f1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
.POSIX:
.SUFFIXES: .c .o
-CFLAGS=-Wall
CC=cc
debug=-g -DDEBUG -DLOCAL
+CFLAGS=$(MORE_CFLAGS) -Wall
OBJS=bee.o irc.o util.o
@@ -12,10 +12,11 @@ apiobot: $(OBJS)
$(CC) $(CFLAGS) -o apiobot $(OBJS)
debug:
- $(CC) $(CFLAGS) $(debug) -o apiobot $(OBJS)
+ make apiobot MORE_CFLAGS="-DDEBUG -DLOCAL -g"
+
.c.o:
- $(CC) -c $< $(CFLAGS) -o $@
+ $(CC) $(CFLAGS) -c $< -o $@
run: all
./apiobot