QTINC = -I$(QTDIR)/include
KDEINC = -I$(KDEDIR)/include
QTLIB = -L$(QTDIR)/lib
KDELIB = -L$(KDEDIR)/lib
MOC = /usr/bin/moc

 kcustomactions : kcustomactions.o main.o
	g++ $(QTLIB) $(KDELIB) -lkdeui -lkdecore -lqt -ldl main.o kcustomactions.o -o kcustomactions

 main.o : main.cpp
	g++ -c $(QTINC) $(KDEINC) main.cpp

 kcustomactions.moc : kcustomactions.h
	$(MOC) kcustomactions.h > kcustomactions.moc

 kcustomactions.o : kcustomactions.cpp kcustomactions.moc
	g++ -c $(QTINC) $(KDEINC) kcustomactions.cpp

 clean :
	rm -f *.o *.moc *~ kcustomactions
