CFLAGS= -pedantic -Wall -W -pipe -O2 -g -fPIC
COMPILE= $(CC) $(CFLAGS)
RM=rm -fv

all:limits.so

limits.so:globals.o limits.o commands.o
	$(COMPILE) -shared $? -o $@

.o:.c commands.h globals.h limits.h weechat-plugin.h
	$(COMPILE) -c $<

clean:
	$(RM) *.{o,so}

rebuild:clean all

