#
# $Id$
#
# qmake configuration for macx-g++
#

MAKEFILE_GENERATOR	= UNIX
TEMPLATE		= app
CONFIG			+= qt warn_on release mac

TMAKE_CC		= cc
TMAKE_LEX		= flex
TMAKE_LEXFLAGS		= 
TMAKE_YACC		= yacc
TMAKE_YACCFLAGS		= -d
TMAKE_RESOURCE		= /Developer/Tools/Rez
TMAKE_CFLAGS		= -fno-exceptions -pipe
TMAKE_CFLAGS_WARN_ON	= -Wall -W
TMAKE_CFLAGS_WARN_OFF	=
TMAKE_CFLAGS_RELEASE	= -O3
TMAKE_CFLAGS_DEBUG	= -g
TMAKE_CFLAGS_SHLIB	= -fPIC
TMAKE_EXTENTION_SHLIB	= dylib
TMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses

TMAKE_CXX		= c++
TMAKE_CXXFLAGS		= $$TMAKE_CFLAGS
TMAKE_CXXFLAGS_WARN_ON	= $$TMAKE_CFLAGS_WARN_ON
TMAKE_CXXFLAGS_WARN_OFF	= $$TMAKE_CFLAGS_WARN_OFF
TMAKE_CXXFLAGS_RELEASE	= $$TMAKE_CFLAGS_RELEASE
TMAKE_CXXFLAGS_DEBUG	= $$TMAKE_CFLAGS_DEBUG
TMAKE_CXXFLAGS_SHLIB	= $$TMAKE_CFLAGS_SHLIB
TMAKE_CXXFLAGS_YACC	= $$TMAKE_CFLAGS_YACC

TMAKE_INCDIR		= /usr/local/include \
	/System/Library/Frameworks/CarbonCore.framework/Headers 
#TMAKE_INCIDR += /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/
TMAKE_LIBDIR		= 
TMAKE_INCDIR_QT		= $(QTDIR)/include
TMAKE_LIBDIR_QT		= $(QTDIR)/lib
TMAKE_INCDIR_OPENGL	= /System/Library/Frameworks/OpenGL.framework/Headers \
	/System/Library/Frameworks/AGL.framework/Headers/

TMAKE_LINK		= c++
TMAKE_LINK_SHLIB	= c++
TMAKE_LFLAGS		=
TMAKE_LFLAGS_RELEASE	=
TMAKE_LFLAGS_DEBUG	=
TMAKE_LFLAGS_SHLIB	= -dynamiclib
TMAKE_LFLAGS_PLUGIN	= -bundle
TMAKE_LFLAGS_THREAD	= 
TMAKE_RPATH		= 

#TMAKE_LIBS            += -framework Carbon -framework CoreGraphics
TMAKE_LIBS_QT		= -lqt 
TMAKE_LIBS_QT_THREAD	= -lqt-mt
TMAKE_LIBS_THREAD	= 
TMAKE_LIBS_OPENGL	= -framework OpenGL -framework AGL
TMAKE_LIBS_OPENGL_QT	= $$TMAKE_LIBS_OPENGL

TMAKE_MOC		= $(QTDIR)/bin/moc
TMAKE_UIC		= $(QTDIR)/bin/uic

TMAKE_AR		= ar cq
TMAKE_RANLIB		= ranlib -s

TMAKE_TAR		= tar -cf
TMAKE_GZIP		= gzip -9f

TMAKE_COPY		= cp -f
TMAKE_MOVE		= mv
TMAKE_DEL		= rm -f
