#############################################################################
# Makefile for building xmlparse
# Generated by tmake at 10:42, 2005/03/28
#     Project: xmlparse
#    Template: app.t
#############################################################################

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

CC	=	gcc
CXX	=	g++
CFLAGS	=	-pipe -Wall -W -fno-exceptions -g
CXXFLAGS=	-pipe -Wall -W -fno-exceptions -g
INCPATH	=	-I../../../qtools -I../include
LINK	=	g++
LFLAGS	=	-g
LIBS	=	-L../../../lib -L../lib -ldoxmlparser -lqtools 
MOC	=	/usr/qt/3/bin/moc

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	
SOURCES =	main.cpp
OBJECTS =	../objects/main.o
SRCMOC	=	
OBJMOC	=	
DIST	=	
TARGET	=	xmlparse

####### 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: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMOC) ../lib/libdoxmlparser.a
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake xmlparse.pro

dist:
	$(TAR) xmlparse.tar xmlparse.pro $(SOURCES) $(HEADERS) $(DIST)
	$(GZIP) xmlparse.tar

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET)
	-rm -f *~ core

####### Compile

../objects/main.o: main.cpp \
		../include/doxmlintf.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o ../objects/main.o main.cpp

