#########################################################################################
# Makefile for building: pvbrowser
# Generated by fake_qmake If fake_qmake is not sufficient please use the original qmake
# Project:  pvbrowser.pro
# Template: 
# Command:  /opt/pvb/fake_qmake/fake_qmake -fake pvbrowser.pro 
#########################################################################################

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

CC            = gcc
CXX           = g++
DEFINES       =
CFLAGS        = -pipe -O2 -Wall -W $(DEFINES)
CXXFLAGS      = -pipe -O2 -Wall -W $(DEFINES)
INCPATH       = -I. -I../qwt/src
LINK          = g++

LIBS          = $(SUBLIBS) -ldl
AR            = ar cqs
RANLIB        = 
QMAKE         = fake_qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = strip
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

####### Files

SOURCES = \
		main.cpp \
		mainwindow.cpp \
		dlgopt.cpp \
		opt.cpp \
		tcputil.cpp \
		interpreter.cpp \
		MyWidgets.cpp \
		MyTextBrowser_v4.cpp \
		QDrawWidget.cpp \
		QImageWidget.cpp \
		qwtplotwidget.cpp \
		dlgtextbrowser.cpp \
		dlgmybrowser.cpp

OBJECTS = \
		main.o \
		mainwindow.o \
		dlgopt.o \
		opt.o \
		tcputil.o \
		interpreter.o \
		MyWidgets.o \
		MyTextBrowser_v4.o \
		QDrawWidget.o \
		QImageWidget.o \
		qwtplotwidget.o \
		dlgtextbrowser.o \
		dlgmybrowser.o


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

.SUFFIXES: .o .c .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 $(DESTDIR_TARGET)


Makefile: pvbrowser.pro
	/opt/pvb/fake_qmake/fake_qmake -fake pvbrowser.pro 

clean:
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core

####### Compile

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

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

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

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

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

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

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

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

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

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

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

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

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

