.POSIX: .SUFFIXES: .c .o CC=cc debug=-g -DDEBUG -DLOCAL CFLAGS=$(MORE_CFLAGS) -Wall -Wpedantic OBJS=bee.o irc.o util.o unix.o conf.o all: apiobot apiobot: $(OBJS) $(CC) $(CFLAGS) -o apiobot $(OBJS) debug: make apiobot MORE_CFLAGS="-DDEBUG -DLOCAL -g" local: make apiobot MORE_CFLAGS="-DLOCAL" .c.o: $(CC) $(CFLAGS) -c $< -o $@ apiosend.o: apiosend.c bee.o: bee.c irc.h unix.h conf.o: conf.c conf.h irc.o: irc.c irc.h debug.h conf.h util.h unix.o: unix.c unix.h conf.h util.o: util.c util.h conf.h debug.h run: all ./apiobot dr: debug ./apiobot clean: rm *.o apiobot