CXX=g++ MOC=$(QTDIR)/bin/moc INCLUDES=-I$(QTDIR)/include -I$(KDEDIR)/include LIBRARIES=-L$(QTDIR)/lib -L$(KDEDIR)/lib CXXFLAGS+=-Wall -g3 -c LDFLAGS=-pthread -lqt-mt -lkdecore -lkdeui DEFINES=-DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE OBJECTS!=ls *.cc | sed -e "s^cc$$^o^g" .SUFFIXES: .h .cc .moc .o .h.moc: $(MOC) -o $(.TARGET) $(.IMPSRC) .cc.o: $(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -o $(.TARGET) $(.IMPSRC) all: .depend krdesktop .depend: *.cc $(CXX) $(DEFINES) $(INCLUDES) -E -MM -MG $(.ALLSRC) > $(.TARGET) @$(MAKE) clean: rm -rf .depend *.o *.so *.moc krdesktop krdesktop: $(OBJECTS) $(CXX) $(LIBRARIES) $(LDFLAGS) -o $(.TARGET) $(OBJECTS) install: install -c -o 0 -g 0 -m 755 -s krdesktop ${PREFIX}/bin