#############################################################################
# Makefile for building: ../bin/psmain
# Generated by qmake (1.07a) (Qt 3.3.7) on: Wed Nov 22 11:00:51 2006
# 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 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DHAVE_CONFIG_H
CXXFLAGS = -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DHAVE_CONFIG_H
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/lib/qt-3.3/mkspecs/default -I. -I$(QTDIR)/include
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -lqt-mt -lXext -lX11 -lm -lpthread
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 = mainpanel.ui.h \
		../../src/common.h \
		../../src/cshmem.h \
		../../src/gldefs.h \
		../../src/strings_en.h \
		../../src/structs.h \
		../../src/version.h \
		../../src/glfunc.h \
		../../src/clog.h
SOURCES = main.cpp \
		../../src/common.cpp \
		../../src/cshmem.cpp \
		../../src/glfunc.cpp \
		../../src/clog.cpp
OBJECTS = main.o \
		common.o \
		cshmem.o \
		glfunc.o \
		clog.o \
		mainpanel.o
FORMS = mainpanel.ui
UICDECLS = mainpanel.h
UICIMPLS = mainpanel.cpp
SRCMOC   = moc_mainpanel.cpp
OBJMOC = moc_mainpanel.o
DIST	   = src.pro
QMAKE_TARGET = psmain
DESTDIR  = ../bin/
TARGET   = ../bin/psmain

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 ../bin/ || mkdir -p ../bin/
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

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

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

Makefile: src.pro  /usr/lib/qt-3.3/mkspecs/default/qmake.conf /usr/lib/qt-3.3/lib/libqt-mt.prl
	$(QMAKE) -o Makefile src.pro
qmake: 
	@$(QMAKE) -o Makefile src.pro

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

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) ../bin/$(TARGET) $(TARGET)


FORCE:

####### Compile

main.o: main.cpp mainpanel.h \
		../../src/glfunc.h \
		../../src/gldefs.h \
		../../src/common.h \
		../../src/structs.h \
		../../src/cshmem.h \
		../../config.h \
		../../src/strings_en.h \
		../../src/version.h

common.o: ../../src/common.cpp ../../src/gldefs.h \
		../../src/common.h \
		../../config.h \
		../../src/strings_en.h \
		../../src/version.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o common.o ../../src/common.cpp

cshmem.o: ../../src/cshmem.cpp ../../src/cshmem.h \
		../../src/common.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o cshmem.o ../../src/cshmem.cpp

glfunc.o: ../../src/glfunc.cpp ../../config.h \
		../../src/glfunc.h \
		../../src/strings_en.h \
		../../src/gldefs.h \
		../../src/common.h \
		../../src/structs.h \
		../../src/cshmem.h \
		../../src/version.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o glfunc.o ../../src/glfunc.cpp

clog.o: ../../src/clog.cpp ../../src/clog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o clog.o ../../src/clog.cpp

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

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

mainpanel.o: mainpanel.cpp mainpanel.ui.h \
		mainpanel.h

moc_mainpanel.o: moc_mainpanel.cpp  mainpanel.h 

moc_mainpanel.cpp: $(MOC) mainpanel.h
	$(MOC) mainpanel.h -o moc_mainpanel.cpp

####### Install

install:  

uninstall:  

