####### This section is automatically generated from
#######    /home/hanord/qt/examples/Makefile

INCDIR	=	$(QTDIR)/include
CFLAGS	=	-O2
LFLAGS	=	-L$(QTDIR)/lib -lqt
CC	=	gcc
MOC	=	moc

####### End of automatically generated section
#
# $Source: /local/lib/cvs/qt/examples/tetris/Makefile,v $
#

#######	Files

HEADERS =	qtetris.h	qtetrisb.h	qdragapp.h	gtetris.h     \
		tpiece.h
SOURCES	=	gtetris.cpp	qtetris.cpp	qtetrisb.cpp	tetris.cpp    \
		tpiece.cpp	qdragapp.cpp
OBJECTS	=	gtetris.o	qtetris.o	qtetrisb.o	tetris.o      \
		tpiece.o  	qdragapp.o
SRCMETA	=	mtetris.cpp	mtetrisb.cpp	mdragapp.cpp
OBJMETA	=	mtetris.o	mtetrisb.o	mdragapp.o
TARGET	=	tetris

#######	Implicit rules

.SUFFIXES: .cpp

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

#######	Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMETA)
	$(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS)

depend: $(SRCMETA)
	makedepend -I$(INCDIR) $(SOURCES) $(SRCMETA) 2> /dev/null

showfiles:
	@echo $(SOURCES) $(HEADERS) Makefile

clean:
	-rm -f *.o *.bak *BAK *~ *% #*
	-rm -f $(TARGET) $(SRCMETA)

#######	Meta objects

$(OBJMETA): $(SRCMETA)

mtetris.cpp: qtetris.h
	$(MOC) qtetris.h -o mtetris.cpp

mtetrisb.cpp: qtetrisb.h
	$(MOC) qtetrisb.h -o mtetrisb.cpp

qdragapp.o: qdragapp.moc

mdragapp.cpp: qdragapp.h
	$(MOC) qdragapp.h -o mdragapp.cpp

qdragapp.moc: qdragapp.cpp
	$(MOC) qdragapp.cpp -o qdragapp.moc


# DO NOT DELETE THIS LINE -- make depend depends on it.
