cc       = g++
#cflags   = -g -O2 -W -Wall
cflags	 = -g -O2
libs	 = `imlib-config --libs` -lXft
bin      = idesk

objs     = Desk.o Icon.o Database.o Main.o
headers  = Desk.h Icon.h Database.h


all: $(bin)

$(bin): $(objs)
	$(cc) $(objs) -o $(bin) $(libs)

$(objs): %.o: %.cc $(headers)
	$(cc) $(cflags) -c $< -o $@

install:
	install $(bin) /usr/local/bin

clean:
	rm -f $(objs) $(bin) *~ core

