#############################################################################
# Makefile for building ./qmatrix
# Generated by tmake at 19:28, 2003/04/30
#     Project: qmatrix
#    Template: app
#############################################################################

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

CC	=	gcc
CXX	=	g++
CFLAGS	=	-pipe -Wall -W -O2 -fno-default-inline -DQT_THREAD_SUPPORT -DNO_DEBUG
CXXFLAGS=	-pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DQT_THREAD_SUPPORT -DNO_DEBUG
INCPATH	=	-I$(QTDIR)/library -I$(QTDIR)/include
LINK	=	gcc
LFLAGS	=	
LIBS	=	$(SUBLIBS) -L$(QTDIR)/lib -lqpe -lqte
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	gameWidget.h \
		qmatrixMainWin.h \
		common.h \
		myGtk.h \
		thinkobj.h \
		status_str.h \
		opelate.h \
		status.h \
		enemy.h \
		imageData.h \
		imageLoader.h \
		button.h \
		enemy.h \
		selecter.h
SOURCES =	gameWidget.cpp \
		main.cpp \
		qmatrixMainWin.cpp \
		thinkobj.c \
		opelationnode.c \
		status.c \
		imageLoader.cpp \
		button.cpp \
		enemy.cpp \
		selecter.cpp
OBJECTS =	gameWidget.o \
		main.o \
		qmatrixMainWin.o \
		thinkobj.o \
		opelationnode.o \
		status.o \
		imageLoader.o \
		button.o \
		enemy.o \
		selecter.o
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	moc_gameWidget.cpp \
		moc_qmatrixMainWin.cpp
OBJMOC	=	moc_gameWidget.o \
		moc_qmatrixMainWin.o
DIST	=	
TARGET	=	./qmatrix
INTERFACE_DECL_PATH = .

####### 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): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake: Makefile

Makefile: qmatrix.pro
	tmake qmatrix.pro -o Makefile

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

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

####### Sub-libraries


###### Combined headers


####### Compile

gameWidget.o: gameWidget.cpp \
		myGtk.h \
		gameWidget.h \
		button.h \
		enemy.h \
		imageLoader.h \
		selecter.h \
		common.h \
		thinkobj.h \
		status.h \
		./common.h \
		./status_str.h

main.o: main.cpp \
		qmatrixMainWin.h \
		gameWidget.h \
		button.h \
		enemy.h \
		imageLoader.h \
		selecter.h \
		common.h \
		myGtk.h

qmatrixMainWin.o: qmatrixMainWin.cpp \
		qmatrixMainWin.h \
		gameWidget.h \
		button.h \
		enemy.h \
		imageLoader.h \
		selecter.h \
		common.h \
		myGtk.h

thinkobj.o: thinkobj.c \
		common.h \
		myGtk.h \
		status.h \
		./common.h \
		./status_str.h

opelationnode.o: opelationnode.c \
		common.h \
		myGtk.h

status.o: status.c \
		./common.h \
		myGtk.h \
		./status_str.h \
		./thinkobj.h \
		./opelate.h

imageLoader.o: imageLoader.cpp \
		imageLoader.h \
		images/data.c \
		imageData.h

button.o: button.cpp \
		button.h

enemy.o: enemy.cpp \
		enemy.h \
		common.h \
		myGtk.h \
		status.h \
		./common.h \
		./status_str.h

selecter.o: selecter.cpp \
		selecter.h \
		common.h \
		myGtk.h \
		enemy.h \
		button.h \
		gameWidget.h \
		imageLoader.h \
		images/selectimg.c

moc_gameWidget.o: moc_gameWidget.cpp \
		gameWidget.h \
		button.h \
		enemy.h \
		imageLoader.h \
		selecter.h \
		common.h \
		myGtk.h

moc_qmatrixMainWin.o: moc_qmatrixMainWin.cpp \
		qmatrixMainWin.h \
		gameWidget.h \
		button.h \
		enemy.h \
		imageLoader.h \
		selecter.h \
		common.h \
		myGtk.h

moc_gameWidget.cpp: gameWidget.h
	$(MOC) gameWidget.h -o moc_gameWidget.cpp

moc_qmatrixMainWin.cpp: qmatrixMainWin.h
	$(MOC) qmatrixMainWin.h -o moc_qmatrixMainWin.cpp

