tmake.conf 1.46 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# 
#
# tmake configuration for macosx-c++
#

TEMPLATE		= app
CONFIG			= qt warn_on release

TMAKE_CC		= cc
Dimitri van Heesch's avatar
Dimitri van Heesch committed
11
TMAKE_CFLAGS		= -pipe 
12
TMAKE_CFLAGS_WARN_ON	= -Wall -W -Wno-deprecated-declarations -Wno-invalid-source-encoding
13 14
TMAKE_CFLAGS_WARN_OFF	=
TMAKE_CFLAGS_RELEASE	= -O2
15
TMAKE_CFLAGS_DEBUG	= -g -fstack-protector
16 17 18 19
TMAKE_CFLAGS_SHLIB	= -fPIC
TMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses

TMAKE_CXX		= c++
20
TMAKE_CXXFLAGS		= $$TMAKE_CFLAGS -D__FreeBSD__=6 -DYY_TYPEDEF_YY_SIZE_T -Dyy_size_t=int
21 22 23 24 25 26 27 28 29
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		=
TMAKE_LIBDIR		=
30 31
TMAKE_INCDIR_X11	= 
TMAKE_LIBDIR_X11	= 
32 33 34 35 36 37 38
TMAKE_INCDIR_QT		= $(QTDIR)/include
TMAKE_LIBDIR_QT		= $(QTDIR)/lib
TMAKE_INCDIR_OPENGL	= /usr/X11R6/include
TMAKE_LIBDIR_OPENGL	= /usr/X11R6/lib

TMAKE_LINK		= c++
TMAKE_LINK_SHLIB	= c++
39
TMAKE_LFLAGS		= -Wl,-search_paths_first
40 41 42 43
TMAKE_LFLAGS_RELEASE	=
TMAKE_LFLAGS_DEBUG	=
TMAKE_LFLAGS_SHLIB	= -shared

44
TMAKE_LFLAGS_SONAME	= -dynamiclib -install_name
45

46
TMAKE_LIBS		= -liconv -framework CoreServices
47
TMAKE_LIBS_X11		= 
48
TMAKE_LIBS_QT		= -lqt
49
TMAKE_LIBS_QT_MT	= -lqt-mt
50 51 52 53 54 55 56 57 58 59
TMAKE_LIBS_QT_OPENGL	= -lqgl
TMAKE_LIBS_OPENGL	= -lMesaGL -lMesaGLU -lXmu

TMAKE_MOC		= moc

TMAKE_AR		= ar cq
TMAKE_RANLIB		= ranlib

TMAKE_TAR		= tar -cf
TMAKE_GZIP		= gzip -9f