diff --git a/distrib/msw/tmake/Makefile b/distrib/msw/tmake/Makefile new file mode 100644 index 0000000000..e682ebbe81 --- /dev/null +++ b/distrib/msw/tmake/Makefile @@ -0,0 +1,40 @@ +# FIXME we'll generate this makefile with configure later, but for now please +# change it manually +TMAKEDIR=/home/zeitlin/build/tmake +TMAKE=$(TMAKEDIR)/bin/tmake + +WXDIR=../../.. +MSW_MAKEFILES_DIR=$(WXDIR)/src/msw + +all: $(MSW_MAKEFILES_DIR)/makefile.vc \ + $(MSW_MAKEFILES_DIR)/makefile.b32 \ + $(MSW_MAKEFILES_DIR)/makefile.dos \ + $(MSW_MAKEFILES_DIR)/makefile.bcc \ + $(MSW_MAKEFILES_DIR)/makefile.sc \ + $(MSW_MAKEFILES_DIR)/makefile.wat \ + $(MSW_MAKEFILES_DIR)/makefile.g95 \ + $(WXDIR)/Makefile.in + +$(MSW_MAKEFILES_DIR)/makefile.vc: filelist.txt wxwin.pro + $(TMAKE) -t vc wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.b32: filelist.txt wxwin.pro + $(TMAKE) -t b32 wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.dos: filelist.txt wxwin.pro + $(TMAKE) -t dos wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.bcc: filelist.txt wxwin.pro + $(TMAKE) -t bcc wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.sc: filelist.txt wxwin.pro + $(TMAKE) -t sc wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.wat: filelist.txt wxwin.pro + $(TMAKE) -t wat wxwin.pro -o $@ + +$(MSW_MAKEFILES_DIR)/makefile.g95: filelist.txt wxwin.pro + $(TMAKE) -t g95 wxwin.pro -o $@ + +$(WXDIR)/Makefile.in: filelist.txt wxwin.pro + $(TMAKE) -t unx wxwin.pro -o $@ diff --git a/distrib/msw/tmake/tmake.conf b/distrib/msw/tmake/tmake.conf new file mode 100644 index 0000000000..eed7c32a4d --- /dev/null +++ b/distrib/msw/tmake/tmake.conf @@ -0,0 +1,57 @@ +# +# $Id$ +# +# tmake configuration for linux-g++ +# + +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = gcc +TMAKE_CFLAGS = +TMAKE_CFLAGS_WARN_ON = -Wall -W +TMAKE_CFLAGS_WARN_OFF = +TMAKE_CFLAGS_RELEASE = -O2 -fno-strength-reduce +TMAKE_CFLAGS_DEBUG = -g +TMAKE_CFLAGS_SHLIB = -fPIC +TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TMAKE_CXX = g++ +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 = +TMAKE_LIBDIR = +TMAKE_INCDIR_X11 = /usr/X11R6/include +TMAKE_LIBDIR_X11 = /usr/X11R6/lib +TMAKE_INCDIR_QT = $(QTDIR)/include +TMAKE_LIBDIR_QT = $(QTDIR)/lib +TMAKE_INCDIR_OPENGL = /usr/X11R6/include +TMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TMAKE_LINK = g++ +TMAKE_LINK_SHLIB = g++ +TMAKE_LFLAGS = -Wl,-rpath=/lib:/usr/X11R6/lib:$(QTDIR)/lib +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = +TMAKE_LFLAGS_SHLIB = -shared +TMAKE_LFLAGS_SONAME = -Wl,-soname, + +TMAKE_LIBS = +TMAKE_LIBS_X11 = -lX11 -lXext +TMAKE_LIBS_QT = -lqt +TMAKE_LIBS_QT_OPENGL = -lqgl +TMAKE_LIBS_OPENGL = -lMesaGL -lMesaGLU -lXmu -lXext -lm + +TMAKE_MOC = moc + +TMAKE_AR = ar cqs +TMAKE_RANLIB = + +TMAKE_TAR = tar -cf +TMAKE_GZIP = gzip -9f diff --git a/distrib/msw/tmake/unx.t b/distrib/msw/tmake/unx.t index 41007e5159..332baca2b3 100644 --- a/distrib/msw/tmake/unx.t +++ b/distrib/msw/tmake/unx.t @@ -6,7 +6,6 @@ #! Created: 14.07.99 #! Version: $Id$ #!################################################################################ - #${ #! include the code which parses filelist.txt file and initializes #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes. @@ -26,6 +25,7 @@ } foreach $file (sort keys %wxGeneric) { + #! skip generic files not required for the wxGTK port next if $wxGeneric{$file} =~ /\bR\b/; $file =~ s/cp?p?$/\o/;