CC      = g++
CFLAGS  = -Wall
LDLIBS  = -lX11 -lXpm -lXext
LDFLAGS = -L/usr/X11R6/lib -L/usr/include/lib
BINDIR  = /usr/local/bin
TARGET  = bbbutton


all:: bbbutton

clean::
	rm -f *.o ${TARGET} core

install:
	install -c -s -o root -g root -m 555 ${TARGET} ${BINDIR}
	cp .bbbuttonrc ${HOME}

uninstall:
	cd ${BINDIR} && rm ${TARGET}
	cd ${HOME} && rm .bbbuttonrc
