#
# wmimagedock Makefile
#
PREFIX = /usr
DESTDIR = # Left BLANK to make it void and NULL

CXX=g++
CXXFLAGS += -Wall -std=c++11 -O2
LDFLAGS += -lXext -lXpm  -lX11 -lImlib2 -lboost_system -lboost_filesystem

OBJECTS =  setBG.o selection.o imagefiles.o wmimagedock.o main.o
TARGET = wmimagedock

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CXX) $(CXXFLAGS)  -o $(TARGET) $(OBJECTS) $(LDFLAGS)

.PHONY:	install clean uninstall

install: all 
	install -D -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)

clean:
	rm -f *~ *.o $(TARGET)
uninstall:
	rm $(PREFIX)/bin/$(TARGET)
# End of file
