#############################################################################
# Makefile for building: analyzer
# Generated by qmake (1.07a) (Qt 3.3.8c) on: Fri Apr 10 23:39:03 2015
# Project:  analyzer.pro
# Template: app
# Command: $(QMAKE) -o Makefile analyzer.pro
#############################################################################

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

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DUSE_LIB64_PATHES -fno-strict-aliasing -Wall -W -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DUSE_LIB64_PATHES -fno-strict-aliasing  -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DUSE_LIB64_PATHES -fno-strict-aliasing -Wall -W -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DUSE_LIB64_PATHES -fno-strict-aliasing  -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/lib/qt3/mkspecs/default -I. -I/usr/include -I$(QTDIR)/include
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L/usr/lib64/ -L$(QTDIR)/lib64/ -L/usr/X11R6/lib64/ -lqt-mt -lXext -lX11 -lm
AR       = ar cqs
RANLIB   = 
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/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 = ./

####### Files

HEADERS = mainwindow.h \
		scandata.h \
		graphcanvas.h \
		seriallink.h \
		graph.h \
		graphcursor.h \
		eventreceiver.h
SOURCES = main.cpp \
		mainwindow.cpp \
		scandata.cpp \
		graphcanvas.cpp \
		seriallink.cpp \
		graph.cpp \
		graphcursor.cpp \
		eventreceiver.cpp
OBJECTS = main.o \
		mainwindow.o \
		scandata.o \
		graphcanvas.o \
		seriallink.o \
		graph.o \
		graphcursor.o \
		eventreceiver.o \
		mainwindow.o
FORMS = mainwindow.ui
UICDECLS = mainwindow.h
UICIMPLS = mainwindow.cpp
SRCMOC   = moc_mainwindow.cpp \
		moc_graphcanvas.cpp \
		moc_graphcursor.cpp \
		moc_mainwindow.cpp
OBJMOC = moc_mainwindow.o \
		moc_graphcanvas.o \
		moc_graphcursor.o \
		moc_mainwindow.o
DIST	   = analyzer.pro
QMAKE_TARGET = analyzer
DESTDIR  = 
TARGET   = analyzer

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

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

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

Makefile: analyzer.pro  /usr/lib/qt3/mkspecs/default/qmake.conf /usr/lib/qt3/lib64/libqt-mt.prl
	$(QMAKE) -o Makefile analyzer.pro
qmake: 
	@$(QMAKE) -o Makefile analyzer.pro

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

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

main.o: main.cpp mainwindow.h \
		eventreceiver.h \
		seriallink.h

mainwindow.o: mainwindow.cpp scandata.h \
		mainwindow.h \
		eventreceiver.h \
		seriallink.h \
		mainwindow.h

scandata.o: scandata.cpp eventreceiver.h \
		scandata.h

graphcanvas.o: graphcanvas.cpp scandata.h \
		graphcanvas.h \
		eventreceiver.h \
		graph.h \
		graphcursor.h

seriallink.o: seriallink.cpp scandata.h \
		seriallink.h \
		eventreceiver.h

graph.o: graph.cpp graph.h

graphcursor.o: graphcursor.cpp graphcursor.h

eventreceiver.o: eventreceiver.cpp eventreceiver.h

mainwindow.h: mainwindow.ui 
	$(UIC) mainwindow.ui -o mainwindow.h

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

mainwindow.o: mainwindow.cpp scandata.h \
		mainwindow.h \
		eventreceiver.h \
		seriallink.h \
		mainwindow.h

moc_mainwindow.o: moc_mainwindow.cpp  mainwindow.h eventreceiver.h \
		seriallink.h

moc_graphcanvas.o: moc_graphcanvas.cpp  graphcanvas.h graph.h \
		graphcursor.h

moc_graphcursor.o: moc_graphcursor.cpp  graphcursor.h 

moc_mainwindow.o: moc_mainwindow.cpp  mainwindow.h eventreceiver.h \
		seriallink.h

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

moc_graphcanvas.cpp: $(MOC) graphcanvas.h
	$(MOC) graphcanvas.h -o moc_graphcanvas.cpp

moc_graphcursor.cpp: $(MOC) graphcursor.h
	$(MOC) graphcursor.h -o moc_graphcursor.cpp

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

####### Install

install:  

uninstall:  

