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