aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index df7073c..cb02b50 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,27 @@
.POSIX:
-.SUFFIXES:
+.SUFFIXES: .c .o
CFLAGS=-Wall
CC=cc
debug=-g -DDEBUG -DLOCAL
-fs=thing.c
-all: thing
+OBJS=bee.o irc.o util.o
-thing: $(fs)
- $(CC) $(CFLAGS) -o thing $(fs)
+all: apiobot
+apiobot: $(OBJS)
+ $(CC) $(CFLAGS) -o apiobot $(OBJS)
debug:
- $(CC) $(CFLAGS) $(debug) -o thing $(fs)
+ $(CC) $(CFLAGS) $(debug) -o apiobot $(OBJS)
+
+.c.o:
+ $(CC) -c $< $(CFLAGS) -o $@
run: all
- ./thing
+ ./apiobot
dr: debug
- ./thing
+ ./apiobot
+
+clean:
+ rm *.o apiobot