CC=g++
CFLAGS=-Wall -O2
OBJS=KInetEd.o main.o KRequestDlg.o KSheet.o KSheetDlg.o KReqSheet.o \
 KMenuSheet.o KServerSheet.o
LIBS=-L/usr/local/kde/lib -lkdeui -lkdecore -L/usr/local/qt-1.33/lib -lqt -L/usr/X11R6/lib -lXext -L./libinetd -linetd
INC=-I/usr/local/kde/include -I./libinetd

.SUFFIXES: .cpp

all: showwarning makemocs $(OBJS)
	$(CC) -o kie $(OBJS) $(LIBS) 
	strip kie

dep: 
	makedepend $(INC) *.cpp 2> /dev/null


.cpp.o:
	$(CC) -c $< $(CFLAGS) $(INC)

makemocs:
	moc -o KInetEd.moc KInetEd.h
	moc -o KRequestDlg.moc KRequestDlg.h
	moc -o KSheetDlg.moc KSheetDlg.h
	moc -o KSheet.moc KSheet.h
	moc -o KReqSheet.moc KReqSheet.h
	moc -o KServerSheet.moc KServerSheet.h
clean: 
	rm -f $(OBJS)
distclean: clean
	rm -f *.moc kie
	makedepend 2> /dev/null
	rm -f Makefile.bak
	rm -f *~

showwarning:
	@echo '*********** Read this *****************'
	@echo If linking fails, make sure that libinetd has been built.
	@echo You can do that by 'cd libinetd ; make ; cd ..'
	@echo '***************************************'

# DO NOT DELETE
