#############################################################################
# Automatically generated from /usr/lib/qt-2.1.1/./src/moc/Makefile.in
# Build options from 
#############################################################################

QT_CXXFLAGS_OPT = -DQT_BUILTIN_GIF_READER  -I$(QTDIR)/src/3rdparty/zlib -I$(QTDIR)/src/3rdparty/libpng
QT_CFLAGS_OPT   = -I$(QTDIR)/src/3rdparty/zlib -I$(QTDIR)/src/3rdparty/libpng
QT_LIBS_OPT	=  
QT_PNG_OBJ      = $(PNG_OBJECTS)
QT_ZLIB_OBJ	= $(ZLIB_OBJECTS)

# Compiling
SYSCONF_CXX		= g++
SYSCONF_CC		= gcc

# Compiling with support libraries
SYSCONF_CXXFLAGS_X11	= -I/usr/X11R6/include
SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include
SYSCONF_CXXFLAGS_OPENGL	= -I/usr/X11R6/include

# Compiline YACC output
SYSCONF_CXXFLAGS_YACC     = -Wno-unused -Wno-parentheses

# Linking with support libraries
# X11
SYSCONF_LFLAGS_X11	= -L/usr/X11R6/lib
SYSCONF_LIBS_X11	= -lXext -lX11 -lm
# Qt, Qt+OpenGL
SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
SYSCONF_LIBS_QT		= -lqt
SYSCONF_LIBS_QT_OPENGL	= -lqgl
# OpenGL
SYSCONF_LFLAGS_OPENGL	= -L/usr/X11R6/lib
SYSCONF_LIBS_OPENGL	= -lGLU -lGL -lXmu
# Yacc
SYSCONF_LIBS_YACC	= 

# Linking applications
SYSCONF_LINK		= g++
SYSCONF_LFLAGS		= 
SYSCONF_LIBS		= 

# Link flags shared objects
SYSCONF_LFLAGS_SHOBJ	= -shared

# Meta-object compiler
SYSCONF_MOC		= $(QTDIR)/bin/moc

# Linking shared libraries
#   - Build the $(TARGET) library, eg. lib$(TARGET).so.2.0.1
#   - Place target in $(DESTDIR) - which has a trailing /
#   - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH)
#
SYSCONF_LINK_SHLIB	= g++
SYSCONF_LINK_TARGET_SHARED	= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH)
SYSCONF_LINK_LIB_SHARED	=  $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \
				     $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \
				     $(OBJECTS) $(OBJMOC) $(LIBS) && \
				 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
				 cd $(DESTDIR) && \
				 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN); \
				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \
				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \
				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)

# Linking static libraries
#   - Build the $(TARGET) library, eg. lib$(TARGET).a
#   - Place target in $(DESTDIR) - which has a trailing /
#
SYSCONF_AR		= ar cqs
SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a
SYSCONF_LINK_LIB_STATIC	= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \
				 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) 
# Compiling application source
SYSCONF_CXXFLAGS	= -pipe -O2
SYSCONF_CFLAGS		= -pipe -O2
# Compiling library source
SYSCONF_CXXFLAGS_LIB	= -fPIC
SYSCONF_CFLAGS_LIB	= -fPIC
# Compiling shared-object source
SYSCONF_CXXFLAGS_SHOBJ	= -fPIC
SYSCONF_CFLAGS_SHOBJ	= -fPIC
# Default link type (static linking is still be used where required)
SYSCONF_LINK_LIB	= $(SYSCONF_LINK_LIB_SHARED)
SYSCONF_LINK_TARGET	= $(SYSCONF_LINK_TARGET_SHARED)
#############################################################################

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

CXX	=	$(SYSCONF_CXX)
CXXFLAGS=	$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS_YACC) $(SYSCONF_CXXFLAGS) -DQT_NO_CODECS
CC	=	$(SYSCONF_CC)
CFLAGS	=	$(SYSCONF_CFLAGS) -DQT_NO_CODECS
INCPATH =	-I../../include -I../tools -I.
LFLAGS	=	$(SYSCONF_LFLAGS)
LIBS	=	$(SYSCONF_LIBS_YACC) $(SYSCONF_LIBS)
MOC	=	$(SYSCONF_MOC)

####### Target

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

####### Files

HEADERS =	
SOURCES =	mocgen.cpp \
		../tools/qbuffer.cpp \
		../tools/qcollection.cpp \
		../tools/qcstring.cpp \
		../tools/qdatastream.cpp \
		../tools/qdatetime.cpp \
		../tools/qfile.cpp \
		../tools/qgarray.cpp \
		../tools/qgdict.cpp \
		../tools/qglist.cpp \
		../tools/qglobal.cpp \
		../tools/qgvector.cpp \
		../tools/qiodevice.cpp \
		../tools/qregexp.cpp \
		../tools/qstring.cpp \
		../tools/qstringlist.cpp \
		../tools/qtextcodec.cpp \
		../tools/qtextstream.cpp \
		../tools/qfile_unix.cpp
OBJECTS =	mocgen.o \
		qbuffer.o \
		qcollection.o \
		qcstring.o \
		qdatastream.o \
		qdatetime.o \
		qfile.o \
		qgarray.o \
		qgdict.o \
		qglist.o \
		qglobal.o \
		qgvector.o \
		qiodevice.o \
		qregexp.o \
		qstring.o \
		qstringlist.o \
		qtextcodec.o \
		qtextstream.o \
		qfile_unix.o
SRCMOC	=	
OBJMOC	=	

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

$(DESTDIR)$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(SYSCONF_LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake moc.pro

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

####### Compile

mocgen.o: mocgen.cpp \
		../tools/qlist.h \
		../tools/qglist.h \
		../tools/qcollection.h \
		../tools/qglobal.h \
		../tools/qasciidict.h \
		../tools/qgdict.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qdict.h \
		../tools/qstrlist.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h \
		../tools/qdatetime.h \
		../tools/qfile.h \
		lex.yy.c
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mocgen.o mocgen.cpp

qbuffer.o: ../tools/qbuffer.cpp \
		../tools/qbuffer.h \
		../tools/qiodevice.h \
		../tools/qglobal.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qbuffer.o ../tools/qbuffer.cpp

qcollection.o: ../tools/qcollection.cpp \
		../tools/qcollection.h \
		../tools/qglobal.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcollection.o ../tools/qcollection.cpp

qcstring.o: ../tools/qcstring.cpp \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qglobal.h \
		../tools/qregexp.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcstring.o ../tools/qcstring.cpp

qdatastream.o: ../tools/qdatastream.cpp \
		../tools/qdatastream.h \
		../tools/qiodevice.h \
		../tools/qglobal.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h \
		../tools/qbuffer.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qdatastream.o ../tools/qdatastream.cpp

qdatetime.o: ../tools/qdatetime.cpp \
		../tools/qdatetime.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qglobal.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qdatetime.o ../tools/qdatetime.cpp

qfile.o: ../tools/qfile.cpp \
		../tools/qglobal.h \
		../tools/qfile.h \
		../tools/qiodevice.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h \
		../tools/qfiledefs_p.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qfile.o ../tools/qfile.cpp

qgarray.o: ../tools/qgarray.cpp \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qglobal.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qgarray.o ../tools/qgarray.cpp

qgdict.o: ../tools/qgdict.cpp \
		../tools/qgdict.h \
		../tools/qcollection.h \
		../tools/qglobal.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qlist.h \
		../tools/qglist.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qgdict.o ../tools/qgdict.cpp

qglist.o: ../tools/qglist.cpp \
		../tools/qglist.h \
		../tools/qcollection.h \
		../tools/qglobal.h \
		../tools/qgvector.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qglist.o ../tools/qglist.cpp

qglobal.o: ../tools/qglobal.cpp \
		../tools/qglobal.h \
		../tools/qasciidict.h \
		../tools/qgdict.h \
		../tools/qcollection.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qglobal.o ../tools/qglobal.cpp

qgvector.o: ../tools/qgvector.cpp \
		../tools/qgvector.h \
		../tools/qcollection.h \
		../tools/qglobal.h \
		../tools/qglist.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qgvector.o ../tools/qgvector.cpp

qiodevice.o: ../tools/qiodevice.cpp \
		../tools/qiodevice.h \
		../tools/qglobal.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qiodevice.o ../tools/qiodevice.cpp

qregexp.o: ../tools/qregexp.cpp \
		../tools/qregexp.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qglobal.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qregexp.o ../tools/qregexp.cpp

qstring.o: ../tools/qstring.cpp \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qglobal.h \
		../tools/qregexp.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h \
		../tools/qtextcodec.h \
		../tools/qstack.h \
		../tools/qglist.h \
		../tools/qcollection.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qstring.o ../tools/qstring.cpp

qstringlist.o: ../tools/qstringlist.cpp \
		../tools/qstringlist.h \
		../tools/qvaluelist.h \
		../tools/qshared.h \
		../tools/qglobal.h \
		../tools/qdatastream.h \
		../tools/qiodevice.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qstring.h \
		../tools/qregexp.h \
		../tools/qstrlist.h \
		../tools/qlist.h \
		../tools/qglist.h \
		../tools/qcollection.h \
		../tools/qtl.h \
		../tools/qtextstream.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qstringlist.o ../tools/qstringlist.cpp

qtextcodec.o: ../tools/qtextcodec.cpp \
		../tools/qlist.h \
		../tools/qglist.h \
		../tools/qcollection.h \
		../tools/qglobal.h \
		../tools/qtextcodec.h \
		../tools/qstring.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qutfcodec.h \
		../tools/qgbkcodec.h \
		../tools/qeucjpcodec.h \
		../tools/qjpunicode.h \
		../tools/qjiscodec.h \
		../tools/qsjiscodec.h \
		../tools/qeuckrcodec.h \
		../tools/qbig5codec.h \
		../tools/qrtlcodec.h \
		../tools/qfile.h \
		../tools/qiodevice.h \
		../tools/qstrlist.h \
		../tools/qdatastream.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qtextcodec.o ../tools/qtextcodec.cpp

qtextstream.o: ../tools/qtextstream.cpp \
		../tools/qtextstream.h \
		../tools/qiodevice.h \
		../tools/qglobal.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h \
		../tools/qtextcodec.h \
		../tools/qbuffer.h \
		../tools/qfile.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qtextstream.o ../tools/qtextstream.cpp

qfile_unix.o: ../tools/qfile_unix.cpp \
		../tools/qglobal.h \
		../tools/qfile.h \
		../tools/qiodevice.h \
		../tools/qcstring.h \
		../tools/qarray.h \
		../tools/qgarray.h \
		../tools/qshared.h \
		../tools/qstring.h \
		../tools/qfiledefs_p.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qfile_unix.o ../tools/qfile_unix.cpp


####### Lex/yacc programs and options

LEX	=	flex
YACC	=	yacc -d

####### Lex/yacc files

LEXIN	=	moc.l
LEXOUT  =	lex.yy.c
YACCIN	=	moc.y
YACCOUT =	y.tab.c
YACCHDR =	y.tab.h
MOCGEN  =	mocgen.cpp

####### Process lex/yacc files

$(LEXOUT): $(LEXIN)
	$(LEX) $(LEXIN)

$(MOCGEN): $(YACCIN) $(LEXOUT)
	$(YACC) $(YACCIN)
	-rm -f $(MOCGEN)
	-mv $(YACCOUT) $(MOCGEN)
