aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9d57e9ed3b356926cdd193e9d298dcaafbb4a18b (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 unix.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