#############################################################################
# Makefile for building: ../moaggedit
# Generated by qmake (1.07a) (Qt 3.3.3) on: Tue Dec 14 14:42:46 2004
# Project:  src.pro
# Template: app
# Command: $(QMAKE) -o Makefile src.pro
#############################################################################

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

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -Wall -W -g -D_REENTRANT  -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG
CXXFLAGS = -pipe -Wall -W -g -D_REENTRANT  -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/share/qt3/mkspecs/linux-g++ -I. -I/usr/include/qt3 -I.ui/ -I. -I.moc/
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
AR       = ar cqs
RANLIB   = 
MOC      = /usr/share/qt3/bin/moc
UIC      = /usr/share/qt3/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = .obj/

####### Files

HEADERS = indexfile.h \
		document.h \
		editor.h \
		mainwindow.h \
		mapdocument.h \
		mapdrag.h \
		mapeditor.h \
		maplayer.h \
		maptool.h \
		maptoolline.h \
		maptoolpoint.h \
		maptoolrectangle.h \
		maptoolselect.h \
		mapview.h \
		resizedialog.h \
		tilecache.h \
		tilegroup.h \
		tileset.h
SOURCES = indexfile.cpp \
		main.cpp \
		mainwindow.cpp \
		mapdocument.cpp \
		mapdrag.cpp \
		mapeditor.cpp \
		maplayer.cpp \
		maptoolline.cpp \
		maptoolpoint.cpp \
		maptoolrectangle.cpp \
		maptoolselect.cpp \
		mapview.cpp \
		resizedialog.cpp \
		tilecache.cpp \
		tilegroup.cpp \
		tileset.cpp
OBJECTS = .obj/indexfile.o \
		.obj/main.o \
		.obj/mainwindow.o \
		.obj/mapdocument.o \
		.obj/mapdrag.o \
		.obj/mapeditor.o \
		.obj/maplayer.o \
		.obj/maptoolline.o \
		.obj/maptoolpoint.o \
		.obj/maptoolrectangle.o \
		.obj/maptoolselect.o \
		.obj/mapview.o \
		.obj/resizedialog.o \
		.obj/tilecache.o \
		.obj/tilegroup.o \
		.obj/tileset.o \
		.obj/mainwindowbase.o \
		.obj/mapeditorbase.o \
		.obj/resizedialogbase.o
FORMS = mainwindowbase.ui \
		mapeditorbase.ui \
		resizedialogbase.ui
UICDECLS = .ui/mainwindowbase.h \
		.ui/mapeditorbase.h \
		.ui/resizedialogbase.h
UICIMPLS = .ui/mainwindowbase.cpp \
		.ui/mapeditorbase.cpp \
		.ui/resizedialogbase.cpp
SRCMOC   = .moc/moc_mainwindow.cpp \
		.moc/moc_mapeditor.cpp \
		.moc/moc_mapview.cpp \
		.moc/moc_resizedialog.cpp \
		.moc/moc_mainwindowbase.cpp \
		.moc/moc_mapeditorbase.cpp \
		.moc/moc_resizedialogbase.cpp
OBJMOC = .obj/moc_mainwindow.o \
		.obj/moc_mapeditor.o \
		.obj/moc_mapview.o \
		.obj/moc_resizedialog.o \
		.obj/moc_mainwindowbase.o \
		.obj/moc_mapeditorbase.o \
		.obj/moc_resizedialogbase.o
DIST	   = src.pro
QMAKE_TARGET = moaggedit
DESTDIR  = ../
TARGET   = ../moaggedit

first: all
####### Implicit rules

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

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

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

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

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

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

####### Build rules

all: Makefile $(TARGET)

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC)  
	test -d ../ || mkdir -p ../
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC): 
	( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: src.pro  /usr/share/qt3/mkspecs/linux-g++/qmake.conf /usr/share/qt3/lib/libqt-mt.prl
	$(QMAKE) -o Makefile src.pro
qmake: 
	@$(QMAKE) -o Makefile src.pro

dist: 
	@mkdir -p .obj/moaggedit && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/moaggedit/ && ( cd `dirname .obj/moaggedit` && $(TAR) moaggedit.tar moaggedit && $(GZIP) moaggedit.tar ) && $(MOVE) `dirname .obj/moaggedit`/moaggedit.tar.gz . && $(DEL_FILE) -r .obj/moaggedit

mocclean:
	-$(DEL_FILE) $(OBJMOC)
	-$(DEL_FILE) $(SRCMOC)

uiclean:
	-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)

yaccclean:
lexclean:
clean: mocclean uiclean
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) ../$(TARGET) $(TARGET)


FORCE:

####### Compile

.obj/indexfile.o: indexfile.cpp indexfile.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/indexfile.o indexfile.cpp

.obj/main.o: main.cpp mainwindow.h \
		.ui/mainwindowbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/main.o main.cpp

.obj/mainwindow.o: mainwindow.cpp mainwindow.h \
		mapeditor.h \
		.ui/mainwindowbase.h \
		editor.h \
		.ui/mapeditorbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mainwindow.o mainwindow.cpp

.obj/mapdocument.o: mapdocument.cpp mapdocument.h \
		maplayer.h \
		tilegroup.h \
		tileset.h \
		document.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mapdocument.o mapdocument.cpp

.obj/mapdrag.o: mapdrag.cpp mapdocument.h \
		mapdrag.h \
		document.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mapdrag.o mapdrag.cpp

.obj/mapeditor.o: mapeditor.cpp mainwindow.h \
		mapdocument.h \
		mapdrag.h \
		mapeditor.h \
		mapview.h \
		resizedialog.h \
		tilegroup.h \
		tileset.h \
		line.xpm \
		point.xpm \
		rectangle.xpm \
		select.xpm \
		.ui/mainwindowbase.h \
		document.h \
		editor.h \
		.ui/mapeditorbase.h \
		.ui/resizedialogbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mapeditor.o mapeditor.cpp

.obj/maplayer.o: maplayer.cpp maplayer.h \
		tilecache.h \
		tilegroup.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/maplayer.o maplayer.cpp

.obj/maptoolline.o: maptoolline.cpp mapdocument.h \
		maptoolline.h \
		document.h \
		maptool.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/maptoolline.o maptoolline.cpp

.obj/maptoolpoint.o: maptoolpoint.cpp mapdocument.h \
		maptoolpoint.h \
		document.h \
		maptool.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/maptoolpoint.o maptoolpoint.cpp

.obj/maptoolrectangle.o: maptoolrectangle.cpp mapdocument.h \
		maptoolrectangle.h \
		document.h \
		maptool.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/maptoolrectangle.o maptoolrectangle.cpp

.obj/maptoolselect.o: maptoolselect.cpp mapdocument.h \
		maptoolselect.h \
		document.h \
		maptool.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/maptoolselect.o maptoolselect.cpp

.obj/mapview.o: mapview.cpp mapdocument.h \
		maplayer.h \
		mapview.h \
		maptoolline.h \
		maptoolpoint.h \
		maptoolrectangle.h \
		maptoolselect.h \
		document.h \
		maptool.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mapview.o mapview.cpp

.obj/resizedialog.o: resizedialog.cpp resizedialog.h \
		.ui/resizedialogbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/resizedialog.o resizedialog.cpp

.obj/tilecache.o: tilecache.cpp tilecache.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/tilecache.o tilecache.cpp

.obj/tilegroup.o: tilegroup.cpp indexfile.h \
		tilecache.h \
		tilegroup.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/tilegroup.o tilegroup.cpp

.obj/tileset.o: tileset.cpp indexfile.h \
		tilegroup.h \
		tileset.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/tileset.o tileset.cpp

.ui/mainwindowbase.h: mainwindowbase.ui 
	$(UIC) mainwindowbase.ui -o .ui/mainwindowbase.h

.ui/mainwindowbase.cpp: .ui/mainwindowbase.h mainwindowbase.ui 
	$(UIC) mainwindowbase.ui -i mainwindowbase.h -o .ui/mainwindowbase.cpp

.ui/mapeditorbase.h: mapeditorbase.ui 
	$(UIC) mapeditorbase.ui -o .ui/mapeditorbase.h

.ui/mapeditorbase.cpp: .ui/mapeditorbase.h mapeditorbase.ui 
	$(UIC) mapeditorbase.ui -i mapeditorbase.h -o .ui/mapeditorbase.cpp

.ui/resizedialogbase.h: resizedialogbase.ui 
	$(UIC) resizedialogbase.ui -o .ui/resizedialogbase.h

.ui/resizedialogbase.cpp: .ui/resizedialogbase.h resizedialogbase.ui 
	$(UIC) resizedialogbase.ui -i resizedialogbase.h -o .ui/resizedialogbase.cpp

.obj/mainwindowbase.o: .ui/mainwindowbase.cpp .ui/mainwindowbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mainwindowbase.o .ui/mainwindowbase.cpp

.obj/mapeditorbase.o: .ui/mapeditorbase.cpp .ui/mapeditorbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/mapeditorbase.o .ui/mapeditorbase.cpp

.obj/resizedialogbase.o: .ui/resizedialogbase.cpp .ui/resizedialogbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/resizedialogbase.o .ui/resizedialogbase.cpp

.obj/moc_mainwindow.o: .moc/moc_mainwindow.cpp  mainwindow.h .ui/mainwindowbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_mainwindow.o .moc/moc_mainwindow.cpp

.obj/moc_mapeditor.o: .moc/moc_mapeditor.cpp  mapeditor.h editor.h \
		.ui/mapeditorbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_mapeditor.o .moc/moc_mapeditor.cpp

.obj/moc_mapview.o: .moc/moc_mapview.cpp  mapview.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_mapview.o .moc/moc_mapview.cpp

.obj/moc_resizedialog.o: .moc/moc_resizedialog.cpp  resizedialog.h .ui/resizedialogbase.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_resizedialog.o .moc/moc_resizedialog.cpp

.obj/moc_mainwindowbase.o: .moc/moc_mainwindowbase.cpp  .ui/mainwindowbase.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_mainwindowbase.o .moc/moc_mainwindowbase.cpp

.obj/moc_mapeditorbase.o: .moc/moc_mapeditorbase.cpp  .ui/mapeditorbase.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_mapeditorbase.o .moc/moc_mapeditorbase.cpp

.obj/moc_resizedialogbase.o: .moc/moc_resizedialogbase.cpp  .ui/resizedialogbase.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_resizedialogbase.o .moc/moc_resizedialogbase.cpp

.moc/moc_mainwindow.cpp: $(MOC) mainwindow.h
	$(MOC) mainwindow.h -o .moc/moc_mainwindow.cpp

.moc/moc_mapeditor.cpp: $(MOC) mapeditor.h
	$(MOC) mapeditor.h -o .moc/moc_mapeditor.cpp

.moc/moc_mapview.cpp: $(MOC) mapview.h
	$(MOC) mapview.h -o .moc/moc_mapview.cpp

.moc/moc_resizedialog.cpp: $(MOC) resizedialog.h
	$(MOC) resizedialog.h -o .moc/moc_resizedialog.cpp

.moc/moc_mainwindowbase.cpp: $(MOC) .ui/mainwindowbase.h
	$(MOC) .ui/mainwindowbase.h -o .moc/moc_mainwindowbase.cpp

.moc/moc_mapeditorbase.cpp: $(MOC) .ui/mapeditorbase.h
	$(MOC) .ui/mapeditorbase.h -o .moc/moc_mapeditorbase.cpp

.moc/moc_resizedialogbase.cpp: $(MOC) .ui/resizedialogbase.h
	$(MOC) .ui/resizedialogbase.h -o .moc/moc_resizedialogbase.cpp

####### Install

install:  

uninstall:  

