aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2269f1ccf390d1f1c945238ac44bd3120f77112d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.POSIX:
.SUFFIXES: .c .o

CC=cc
debug=-g -DDEBUG -DLOCAL
CFLAGS=$(MORE_CFLAGS) -Wall

OBJS=bee.o irc.o util.o

all: apiobot
apiobot: $(OBJS)
	$(CC) $(CFLAGS) -o apiobot $(OBJS)

debug:
	make apiobot MORE_CFLAGS="-DDEBUG -DLOCAL -g"
	

.c.o:
	$(CC) $(CFLAGS) -c $< -o $@

run: all
	./apiobot

dr: debug
	./apiobot

clean:
	rm *.o apiobot