#############################################################################

####### Compiler, tools and options

CXX	=	$(SYSCONF_CXX) $(QT_CXX_MT)
CXXFLAGS=	$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) $(SYSCONF_CXXFLAGS_LIB)
CC	=	$(SYSCONF_CC) $(QT_C_MT)
CFLAGS	=	$(SYSCONF_CFLAGS) $(SYSCONF_CFLAGS_LIB)
INCPATH =	
LFLAGS	=	$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT)
LIBS	=	$(SUBLIBS) $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_QTAPP)
MOC	=	$(SYSCONF_MOC)
UIC	=	$(SYSCONF_UIC)

####### Target

DESTDIR = $(QTDIR)/lib/
VER_MAJ = 1
VER_MIN = 0
VER_PATCH = 0
TARGET	= qutil
TARGET1 = lib$(TARGET).so.$(VER_MAJ)

####### Files

HEADERS =	../../../include/qdom.h \
		../../../include/qxml.h \
		qprocess.h
SOURCES =	../../../src/xml/qdom.cpp \
		../../../src/xml/qxml.cpp \
		qprocess.cpp \
		qprocess_unix.cpp
OBJECTS =	../../../src/xml/qdom.o \
		../../../src/xml/qxml.o \
		qprocess.o \
		qprocess_unix.o
INTERFACES =    
UICDECLS =      
UICIMPLS =      
SRCMOC	=	moc_qprocess.cpp
OBJMOC	=	moc_qprocess.o


####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .C .c

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules


all: $(DESTDIR)$(SYSCONF_LINK_TARGET)

$(DESTDIR)$(SYSCONF_LINK_TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS)
	$(SYSCONF_LINK_LIB)

moc: $(SRCMOC)

tmake:
	tmake util-pro.pro

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS)
	-rm -f *~ core
	-rm -f allmoc.cpp

####### Extension Modules

listpromodules:
	@echo 

listallmodules:
	@echo 

listaddonpromodules:
	@echo 

listaddonentmodules:
	@echo 


REQUIRES=

####### Sub-libraries


###### Combined headers



####### Compile

../../../src/xml/qdom.o: ../../../src/xml/qdom.cpp \
		../../../src/xml/qdom.h \
		../../../src/xml/qxml.h

../../../src/xml/qxml.o: ../../../src/xml/qxml.cpp \
		../../../src/xml/qxml.h

qprocess.o: qprocess.cpp \
		qprocess.h

qprocess_unix.o: qprocess_unix.cpp \
		qprocess.h

moc_qprocess.o: moc_qprocess.cpp \
		qprocess.h

moc_qprocess.cpp: qprocess.h
	$(MOC) qprocess.h -o moc_qprocess.cpp


