tmake-1.8/ 40775 773 773 0 7365566433 11074 5ustar aavitaavittmake-1.8/CHANGES100444 773 773 4153 7365566355 12166 0ustar aavitaavit Changes from version 1.6 to 1.8 * Platform fixes for Tru64, Borland, Irix, HP-UX, AIX, UnixWare7 and Reliant UNIX * Support for Intel C++ * Initial support for Qt/Embedded on FreeBSD Changes from version 1.5 to 1.6 * Better support for threaded applications/libraries * Platform fixes for Solaris, Windows, IRIX, and others. Changes from version 1.4 to 1.5 * Support for threaded applications/libraries * Platform fixes, particularly on AIX * Support for the .ui files used by the Qt Designer Changes from version 1.3 to 1.4 * Support for the new Q_COMPONENT and other news in Qt 2.1 * A huge number of platform fixes * Windows Registry support Changes from version 1.2 to 1.3 * Improved Qt 2.0 support. * INCLUDEPATH can have directories containing whitespace (use semicolon) as separator. * Many, many code fixes and doc improvements. Changes from version 1.1 to 1.2 * tmake is no longer restricted to C++ only. You can now use both C++ and C files in your project. Thanks to Ulrich Ring for valuable feed- back and comments. * Added support for building DLL libraries under Windows. NOTE: Qt 1.42 and later now uses qtmain.lib in addition to qt.lib when your application uses the Qt DLL. Add "DEFINES = QT_DLL" to your project file to use the Qt DLL. * New dist target added in the app and lib templates. Run "make dist" to pack all files in your project using tar/gzip or zip. Thanks to Kalle Dalheimer for this patch. * Fixed bad command line interpretation bug in tmake.exe and progen.exe. * Added support for Borland C++ builder 3. * Initial support for QNX/g++ and the IBM Visual Age compiler on Win32. Thanks to Igor Kovalenko and Joost Kraaijeveld. * Many fixes in tmake.conf for several Unix configurations. Changes from version 1.0 to 1.1 * Provides tmake.exe and progen.exe for Windows users without perl. * Added many new Unix templates. * Added subdirs.t templates. * Added system-dependent project settings (e.g. solaris-cc:TMAKE_CFLAGS = -pts) * Many bug fixes and improvements for existing templates. * Improved documentation. tmake-1.8/LICENSE100444 773 773 670 7175526476 12157 0ustar aavitaavit License Statement for tmake Copyright (C) 1996-2000 by Trolltech AS. All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that this copyright notice appears in all copies. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. tmake-1.8/README100444 773 773 530 7365566355 12026 0ustar aavitaavit tmake version 1.8 tmake is an easy-to-use tool for creating and maintaining makefiles across many platforms and compilers. For information about installing and using tmake, see: doc/tmake.html -- User's Guide doc/tmake_ref.html -- Reference Manual Download the latest version from: tmake-1.8/bin/ 40775 773 773 0 7365566433 11644 5ustar aavitaavittmake-1.8/bin/progen100555 773 773 14006 7362431265 13165 0ustar aavitaavit#!/usr/bin/perl ############################################################################ # $Id: progen,v 1.21 1999/09/08 06:59:22 hanord Exp $ # # Generates a tmake project file. # # Copyright (C) 1996-2000 by Trolltech AS. All rights reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, provided # that this copyright notice appears in all copies. # No representations are made about the suitability of this software for any # purpose. It is provided "as is" without express or implied warranty. # ############################################################################ # Default project settings $project{"TEMPLATE"} = "app"; $project{"CONFIG"} = "qt warn_on release"; @project_extra = (); while ( @ARGV ) { # parse command line args $_ = shift @ARGV; if ( s/^-// ) { if ( /^o(.*)/ ) { $outfile = ($1 eq "") ? shift @ARGV : $1; ($outfile eq "-") && ($outfile = ""); } elsif ( /^n(.*)/ ) { $project{"TARGET"} = ($1 eq "") ? shift @ARGV : $1; } elsif ( /^t(.*)/ ) { $project{"TEMPLATE"} = ($1 eq "") ? shift @ARGV : $1; $project{"TEMPLATE"} =~ s/\.t$//i; } elsif ( /lower/ ) { $tolower = 1; } elsif ( /^d(.*)/ ) { @files = &find_files("$1",".*",1); } else { &progen_usage; } } elsif ( /^\s*(?:[\w\-]+:)?\w+\s*[\+\-\*\/]?=/ ) { # project override push( @project_extra, $_ ); } else { push (@files, $_ ); } } $outfile eq "" || open(STDOUT,">" . $outfile) || &progen_error("Can't create \"$outfile\""); if ( ! @files ) { @files = &find_files(".",".*",1); } if ( $tolower ) { foreach $f ( @files ) { $f =~ tr/A-Z/a-z/; } } @hdr = sort grep(/\.(h|hh|hpp|hxx)$/i,@files); @src = sort grep(/\.(c|cpp|cc|cxx)$/i && ! /moc_/i,@files); @uic = sort grep(/\.(ui)$/i,@files); # Remove source files that are included by other source files foreach $f ( @src ) { $srcdict{$f} = 1; } foreach $f ( @src ) { if ( open(F,"< $f") ) { while ( ) { if ( /^\s*#\s*include\s+\"([^\"]*)\"/ ) { $srcdict{$1} = 0; } } } } foreach $f( @src ) { $srcdict{$f} && (push(@src2,$f)); } @src = @src2; $project{"HEADERS"} = join(" ",sort @hdr); $project{"SOURCES"} = join(" ",sort @src); $project{"INTERFACES"} = join(" ",sort @uic); foreach $p ( @project_extra ) { if ( $p =~ /^\s*((?:[\w\-]+:)?\w+)\s*([\+\-\*\/])?=\s*(.*)/ ) { if ( $project{$1} ne "" ) { Project($p); } } } $project{"HEADERS"} =~ s/\s+/ \\\n\t\t /g; $project{"SOURCES"} =~ s/\s+/ \\\n\t\t /g; $project{"INTERFACES"} =~ s/\s+/ \\\n\t\t /g; print "TEMPLATE\t= " . $project{"TEMPLATE"} . "\n"; print "CONFIG\t\t= " . $project{"CONFIG"} . "\n"; print "HEADERS\t\t= " . $project{"HEADERS"} . "\n"; print "SOURCES\t\t= " . $project{"SOURCES"} . "\n"; print "INTERFACES\t= " . $project{"INTERFACES"} . "\n"; if ( $project{"TARGET"} ne "" ) { print "TARGET\t\t= " . $project{"TARGET"} . "\n"; } foreach ( @project_extra ) { if ( /^\s*((?:[\w\-]+:)?\w+)\s*([\+\-\*\/])?=\s*(.*)/ ) { if ( $project{$1} eq "" ) { $t = $1; if ( length($t) < 8 ) { $t .= "\t\t"; } elsif ( length($t) < 16 ) { $t .= "\t"; } else { $t .= " "; } print "$t$2= $3\n"; } } } exit 0; # # progen_usage() # # Prints a message about program usage and exits # sub progen_usage { print STDERR "Usage:\n progen [options] [files]\n"; print STDERR "Options:\n"; print STDERR " -lower Lower-case letters filenames (useful for non-Unix)\n"; print STDERR " -n name Specify a project name (= TARGET)\n"; print STDERR " -o file Write output to \"file\"\n"; print STDERR " -t file Specify a template file other than qtapp\n"; print STDERR " -d directory Search for files in specified directory and subdirectories"; exit 1; } # # progen_error(msg) # # Prints the message and exits # sub progen_error { my($msg) = @_; print STDERR "progen error: " . $msg . "\n"; exit 1; } # # Finds files. # # Examples: # find_files("/usr","\.cpp$",1) - finds .cpp files in /usr and below # find_files("/tmp","^#",0) - finds #* files in /tmp # sub find_files { my($dir,$match,$descend) = @_; my($file,$p,@files); local(*D); $dir =~ s=\\=/=g; ($dir eq "") && ($dir = "."); if ( opendir(D,$dir) ) { if ( $dir eq "." ) { $dir = ""; } else { ($dir =~ /\/$/) || ($dir .= "/"); } foreach $file ( readdir(D) ) { next if ( $file =~ /^\.\.?$/ ); $p = $dir . $file; ($file =~ /$match/i) && (push @files, $p); if ( $descend && -d $p && ! -l $p ) { push @files, &find_files($p,$match,$descend); } } closedir(D); } return @files; } # # strip_project_val(tag) # # Strips white space from project value strings. # sub strip_project_val { my($v) = @_; $v =~ s/^\s+//; # trim white space $v =~ s/\s+$//; return $v; } # # Project(strings) # # This is a powerful function for setting or reading project variables. # Returns the resulting project variables (joined with space between). # # This is a slightly modified version of the Project function in tmake. sub Project { my @settings = @_; my($r,$t,$s,$v,$p,$c); $r = ""; foreach ( @settings ) { $v = $_; if ( $v =~ s/^\s*((?:[\w\-]+:)?\w+)\s*(\+=|\*=|\-=|\/=|=)\s*// ) { $t = $1; $s = $2; $v = strip_project_val($v); $p = $project{$t}; if ( $s eq "=" ) { # set variable $p = $v; } elsif ( $s eq "+=" ) { # append if ( $p eq "" ) { $p = $v; } else { $p .= " " . $v; } } elsif ( $s eq "*=" ) { # append if not contained if ( !($p =~ /(?:^|\s)\Q$v\E(?:\s|$)/) ) { if ( $p eq "" ) { $p = $v; } else { $p .= " " . $v; } } } elsif ( $s eq "-=" ) { # subtract $p =~ s/$v//g; } elsif ( $s eq "/=" ) { # sed $cmd = '$p =~ ' . $v; eval $cmd; } $project{$t} = strip_project_val($p); } else { $p = strip_project_val($project{$v}); } if ( $p ne "" ) { $r = ($r eq "") ? $p : ($r . " " . $p); } } return $r; } tmake-1.8/bin/tmake100555 773 773 76732 7365566356 13027 0ustar aavitaavit#!/usr/bin/perl ############################################################################ # $Id: tmake,v 1.80 1999/12/07 01:38:20 paul Exp $ # # Creates a Makefile from a template and a project file. # # Copyright (C) 1996-2000 by Trolltech AS. All rights reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, provided # that this copyright notice appears in all copies. # No representations are made about the suitability of this software for any # purpose. It is provided "as is" without express or implied warranty. # # # Some important, global variables in tmake: # cpp_ext C++ extension added to moc output (.cpp) # obj_ext Object file extension (.o on Unix, .obj otherwise) # moc_aware Will scan for files containing Qt signals/slots # moc_pre Moc prefix for generated moc file: x.h -> moc_x.cpp # moc_ext Moc extension for generated moc file: x.cpp -> x.moc # moc_cmd The moc command in your makefile, $(MOC) # uic_decl Uic extension for generated declaration file: x.ui -> x.h # uic_impl Uic extension for generated implementation file: x.ui -> x.cpp # uic_cmd The uic command in your makefile, $(UIC) # uic_decl_path The path where the generated decl files from uic files are created, $(INTERFACE_DECL_PATH) # linebreak Line break character (\) # dir_sep Directory separator (/ on Unix, \ on Windows) # is_unix Autodetected. If not Unix, assume Windows (Win32). # # If you need to customize any of these settings, do it before # calling StdInit() in the template file. # ############################################################################ $TMAKE_VERSION = "1.8"; if ($] < 5.0) { &tmake_error("This program requires perl version 5 or newer"); } $cpp_ext = "cpp"; $moc_aware = 0; $moc_pre = "moc_"; $moc_ext = "moc"; $moc_cmd = '$(MOC)'; $uic_decl = "h"; $uic_impl = "cpp"; $uic_cmd = '$(UIC)'; $uic_decl_path = '$(INTERFACE_DECL_PATH)'; %uic_dependency = (); $linebreak = "\\"; $really_unix = &check_unix(); $is_unix = $really_unix; $dir_sep = $is_unix ? "/" : "\\"; $obj_ext = $is_unix ? "o" : "obj"; $depend_path = ""; $nodepend = 0; $output_count = 0; $notrim_whitespace = 0; $read_tmakeconf = 0; $template_name = ""; $project_name = ""; $outfile = ""; %project = (); $eval_quit = 0; $project{"TMAKEPATH"} = $ENV{"TMAKEPATH"} . ";" . $ENV{"HOME"} . "/.tmake/"; while ( @ARGV ) { # parse command line args $_ = shift @ARGV; if ( s/^-// ) { if ( /^e(.*)/ ) { if ( ! $read_tmakeconf ) { $read_tmakeconf = 1; &ScanProject( &find_template("tmake.conf") ); } $text = ""; eval( ($1 eq "") ? shift @ARGV : $1 ); die $@ if $@; print $text . "\n" if ($text ne ""); $eval_quit = 1; } elsif ( /^t(.*)/ ) { $template_name = ($1 eq "") ? shift @ARGV : $1; } elsif ( /^o(.*)/ ) { $outfile = ($1 eq "") ? shift @ARGV : $1; ($outfile eq "-") && ($outfile = ""); if ( $outfile ne "" ) { open(STDOUT,">" . &fix_path($outfile)) || &tmake_error("Cannot create \"$outfile\": $!"); } $project{"OUTFILE"} = $outfile; } elsif ( /^p(.*)/ ) { # # The -p option is obsolete and will be removed in the next # tmake release. # &tmake_warning( "-p option obsolete, instead use \"tmake file1.pro file2.pro ...\""); my($pf) = ($1 eq "") ? shift @ARGV : $1; if ( ! $read_tmakeconf ) { $read_tmakeconf = 1; &ScanProject( &find_template("tmake.conf") ); } if ( ! ($pf =~ /\.pro$/i) && -f &fix_path($pf . ".pro") ) { $pf .= ".pro"; } if ( $project_name eq "" ) { $project_name = $pf; $project{"PROJECT"} = $project_name; $project{"PROJECT"} =~ s/\.pro$//i; $project{"TARGET"} = $project{"PROJECT"}; } if ( !&ScanProject($pf) ) { &tmake_error("Cannot open project file \"$pf\""); } } elsif ( /^unix$/ ) { $is_unix = 1; $dir_sep = "/"; $obj_ext = "o"; } elsif ( /^win32$/ ) { $is_unix = 0; $dir_sep = "\\"; $obj_ext = "obj"; } elsif ( /^nodepend$/ ) { $nodepend = 1; # don't generate dependencies } elsif ( /^v$/ ) { $verbose = 1; } else { &tmake_usage(); } } elsif ( /^\s*((?:[^:\s]*?:)?)(\w+)\s*(\+=|\*=|\-=|\/=|=)/ ) { my($arg) = $_; if ( ! $read_tmakeconf && ! (/^\s*TMAKEPATH/) ) { $read_tmakeconf = 1; &ScanProject( &find_template("tmake.conf") ); } Project( $arg ); # manual project setting } else { my($pf) = $_; if ( ! $read_tmakeconf ) { $read_tmakeconf = 1; &ScanProject( &find_template("tmake.conf") ); } if ( ! ($pf =~ /\.pro$/i) && -f &fix_path($pf . ".pro") ) { $pf .= ".pro"; } if ( $project_name eq "" ) { $project_name = $pf; $project{"PROJECT"} = $project_name; $project{"PROJECT"} =~ s/\.pro$//i; $project{"TARGET"} = $project{"PROJECT"}; } if ( !&ScanProject($pf) ) { &tmake_error("Cannot open project file \"$pf\""); } } } &tmake_verb("Version $TMAKE_VERSION (runtime environment: " . ($really_unix ? "Unix" : "Win32") . ")\n" ); if ( $eval_quit ) { &tmake_verb("Done!"); exit 0; } ($project_name eq "") && &tmake_usage(); if ( $template_name eq "" ) { $template_name = $project{"TEMPLATE"} ? $project{"TEMPLATE"} : "default.t"; } $template_name = &find_template($template_name); &IncludeTemplate($template_name); &tmake_verb("Done!"); exit 0; # finished! ############################################################################## # Subroutines from here ############################################################################## # # tmake_usage() # # Prints a message about program usage and exits # sub tmake_usage { print STDERR "Usage:\n tmake [options] project-files\n"; print STDERR "Options:\n"; print STDERR " -e expr Evaluate expression, ignore template file\n"; print STDERR " -nodepend Don't generate dependency information\n"; print STDERR " -o file Write output to file\n"; print STDERR " -t file Specify a template file\n"; print STDERR " -unix Create output for Unix (auto detects)\n"; print STDERR " -v Verbose/debug mode\n"; print STDERR " -win32 Create output for Win32 (auto detects)\n"; exit 1; } # # tmake_error(msg) # # Prints the message and exits # sub tmake_error { my($msg) = @_; print STDERR "tmake error: " . $msg . "\n"; exit 1; } # # tmake_warning(msg) # # Prints the warning message # sub tmake_warning { my($msg) = @_; print STDERR "tmake warning: " . $msg . "\n"; } # # tmake_verb() # # Prints a verbose message # sub tmake_verb { my($msg) = @_; $verbose && print STDERR "tmake: " . $msg . "\n"; } # # check_unix() # # Returns 1 if this is a Unix, 0 otherwise. # sub check_unix { my($r); $r = 0; if ( -f "/bin/uname" ) { $r = 1; (-f "\\bin\\uname") && ($r = 0); } if ( -f "/usr/bin/uname" ) { $r = 1; (-f "\\usr\\bin\\uname") && ($r = 0); } return $r; } # # find_template(filename) # # Looks for the template file. # 1. search the current directory # 2. search the directories in TMAKEPATH # 3. search in $HOME/.tmake # sub find_template { my($filename) = @_; my($tb,$d,$p,@dirs); if ( !defined($template_base) || ($template_base eq "") ) { $tb = ""; } else { $tb = $template_base . ";"; } $d = $tb . $project{"TMAKEPATH"}; @dirs = (""); push @dirs, &split_path( $d ); $filename .= ".t" unless ($filename =~ /\.\w+$/); for $d ( @dirs ) { $p = $d . $filename; if ( -f &fix_path($p) ) { if ( $filename eq "tmake.conf" ) { $tmake_platform = $d; $tmake_platform =~ s-.*[/\\]([^/\\]*)[/\\]-$1-; &tmake_verb("Detected platform $tmake_platform"); } return $p; } return ($d . $filename) if ( -f &fix_path($d . $filename) ); } &tmake_error("Template file " . $filename . " not found"); } ############################################################################## # User functions ############################################################################## # # StdInit() # # Standard initialization # sub StdInit { my($p); return if $stdinit_done; $stdinit_done = 1; if ( defined($project{"OBJECTS_DIR"}) ) { $project{"OBJECTS_DIR"} = FixPath($project{"OBJECTS_DIR"}); &mkdirp($project{"OBJECTS_DIR"},0777); } if ( defined($project{"MOC_DIR"}) ) { $project{"MOC_DIR"} = FixPath($project{"MOC_DIR"}); &mkdirp($project{"MOC_DIR"},0777); } if ( defined($project{"DESTDIR"}) ) { $project{"DESTDIR"} = FixPath($project{"DESTDIR"}); &mkdirp($project{"DESTDIR"},0777); } $project{"OBJECTS"} = &Objects($project{"SOURCES"}); if ( $moc_aware ) { $project{"_HDRMOC"} = &list_moc($project{"HEADERS"},$moc_pre,$cpp_ext); $project{"_SRCMOC"} = &list_moc($project{"SOURCES"},"",$moc_ext); $project{"OBJMOC"} = &Objects($project{"_HDRMOC"}); $p = $project{"_HDRMOC"} . " " . $project{"_SRCMOC"}; $project{"SRCMOC"} = $p; } $project{"UICDECLS"}= &UicDecls($project{"INTERFACES"}); $project{"UICIMPLS"}= &UicImpls($project{"INTERFACES"}); $project{"UICOBJECTS"}= &Objects($project{"INTERFACES"}); # $project{"HEADERS"}.= " " . &UicDecls($project{"INTERFACES"}); # $project{"SOURCES"}.= " " . &UicImpls($project{"INTERFACES"}); $project{"OBJECTS"}.= " " . &Objects($project{"INTERFACES"}); foreach $m ( $project{"INTERFACES"} ) { $decl = $m; $decl =~ s/\.ui$/\.$uic_decl/; $impl = $m; $impl =~ s/\.ui$/\.$uic_impl/; $uic_dependency{ $impl } = $decl . " ${linebreak}\n\t\t" . $m; } $p = $project{"OBJMOC"} . " " . &Objects( &MocSources($project{"INTERFACES"} ) ); $p =~ s/^\s+//; $p =~ s/\s+$//; $project{"OBJMOC"} = $p; $p = $project{"SRCMOC"} . " " . &MocSources($project{"INTERFACES"} ); $p =~ s/^\s+//; $p =~ s/\s+$//; $project{"SRCMOC"} = $p; &AddIncludePath(""); } sub FixPath { my($p) = @_; if ( !defined($p) || ($p eq "") || ($p eq ".") ) { $p = ""; } else { $p .= $dir_sep; $p =~ s-[\\/]+-${dir_sep}-g; } return $p; } # # Config(name) # # Returns true if the project variable CONFIG contains the # configuration name. # sub Config { my($name) = @_; return $project{"CONFIG"} =~ /\b\Q$name\E\b/; } # # DisableOutput() # # Disables tmake output. Must be restored by calling a corresponding # EnableOutput(). # sub DisableOutput { $output_count++; } # # EnableOutput() # # Enables tmake output again after DisableOutput() has been called. # sub EnableOutput { $output_count--; } # # Now() - sets $text # # Sets $text to the current date and time. # sub Now { my($sec,$min,$hour,$mday,$mon,$year); ($sec,$min,$hour,$mday,$mon,$year) = localtime(time()); $text = sprintf("%02d:%02d, %4d/%02d/%02d", $hour, $min, 1900+$year, 1+$mon, $mday); } # # expand_project_var(var) # # Internal function for Project(). # Expands a project value string. # sub expand_project_var { my($v) = @_; my($c); return "" if !defined($v); $c = 0; while ( $c < 100 ) { # expand $$ if ( $v =~ s/(\$\$\w+)/\035/ ) { $_ = $1; s/\$\$//g; if ( !defined($project{$_}) ) { $v =~ s/\035//g; } else { $v =~ s/\035/$project{$_}/g; } $c++; } else { $c = 100; } } return $v; } # # Project(strings) # # This is a powerful function for setting or reading project variables. # Returns the resulting project variables (joined with space between). # # Get a project variable: # $s = Project("TEMPLATE"); -> $s = "TEMPLATE" # # Set a project variable: # Project("TEMPLATE = lib"); -> TEMPLATE = lib # Project("CONFIG =";) -> CONFIG empty # # Append to a project variable: # Project("CONFIG = qt"); -> CONFIG = qt # Project("CONFIG += debug"); -> CONFIG = qt debug # # Append to a project variable if it does not contain the value already: # Project("CONFIG = qt release"); -> CONFIG = qt release # Project("CONFIG *= qt"); -> CONFIG = qt release # Project("CONFIG *= opengl"); -> CONFIG = qt release opengl # # Subtract from a project variable: # Project("THINGS = abc xyz"); -> THINGS = abc xyz # Project("THINGS -= abc"); -> THINGS = xyz # # Search/replace on a project variable: # Project("CONFIG = tq opengl"); -> CONFIG = tq opengl # Project("CONFIG /= s/tq/qt/"); -> CONFIG = qt opengl # # The operations can be performed on several project variables at a time. # # Project("TEMPLATE = app", "CONFIG *= opengl", "THINGS += klm"); # sub Project { my @settings = @_; my($r,$if_var,$t,$s,$v,$p,$c); $r = ""; foreach ( @settings ) { $v = $_; if ( $v =~ s/^\s*((?:[^:\s]*?:)?)(\w+)\s*(\+=|\*=|\-=|\/=|=)// ) { $if_var = $1; if ( $if_var ne "" ) { chop $if_var; if ( $if_var eq "unix" ) { return "" if !$is_unix; } elsif ( $if_var eq "win32" ) { return "" if $is_unix; } elsif ( ($if_var ne $tmake_platform) && !Config($if_var) ) { return ""; } } $t = $2; $s = $3; if ( ! $notrim_whitespace ) { $v =~ s/^\s+//; # trim white space $v =~ s/\s+$//; } $v = expand_project_var($v); $p = $project{$t}; if ( $s ne "=" && $v eq "" ) { # nothing to append, subtract or sed } elsif ( $s eq "=" ) { # set variable $p = $v; } elsif ( $s eq "+=" ) { # append if ( $p eq "" ) { $p = $v; } else { $p .= " " . $v; } } elsif ( $s eq "*=" ) { # append if not contained if ( !($p =~ /(?:^|\s)\Q$v\E(?:\s|$)/) ) { if ( $p eq "" ) { $p = $v; } else { $p .= " " . $v; } } } elsif ( $s eq "-=" ) { # subtract $p =~ s/$v//g; } elsif ( $s eq "/=" ) { # sed $cmd = '$p =~ ' . $v; eval $cmd; } $project{$t} = expand_project_var($p); } else { $p = expand_project_var($project{$v}); } if ( $p ne "" ) { $r = ($r eq "") ? $p : ($r . " " . $p); } } return $r; } # # Substitute(string) # # This function substitutes project variables in a text. # # Example: # Substitute('The project name is "$$PROJECT"') # sub Substitute { my($subst) = @_; $text = expand_project_var($subst); return $text; } # # ScanProject(file) # # Scans a project file. Inserts project variables into the global # associative project array. # sub ScanProject { my($file) = @_; my($var,$val,@v,$more,$line,$endmark); $var = ""; $line = 0; open(TMP,&fix_path($file)) || return 0; &tmake_verb("Reading the project file $file"); while ( ) { $line++; s/\#.*//; # strip comment s/^\s+//; # strip white space s/\s+$//; if ( /^\s*((?:(?:[^:\s]*?:)?)\w+\s*(\+|\-|\*|\/)?=)/ ) { $var = $1; # var also contains the ".=" s/^.*?=\s*//; if ( /^\<\<(.*)$/ ) { $endmark = $1; $val = ""; while ( ) { $line++; if ( /^\Q$endmark\E$/ ) { $endmark = ""; last; } $val .= $_; } if ( $endmark ne "" ) { tmake_error("$file:$line: End marker $endmark not found"); } chop $val if ( $val ne "" ); $notrim_whitespace++; Project( $var . $val ); $notrim_whitespace--; $var = ""; $_ = ""; } } if ( $var ne "" ) { $more = ( $_ =~ s/\s*\\\s*$// ); # more if \ at end of line push( @v, split( /\s+/, $_ ) ); if ( ! $more ) { $val = join(" ",@v); Project( $var . $val ); $var = ""; @v = (); } } elsif ( $_ ne "" ) { tmake_error("$file:$line: Syntax error"); } } close(TMP); &tmake_verb("Done reading the project file $file"); return 1; } # # IncludeTemplate(template_name) # # Includes and processes a template file. # # Below, we read the template file and executes any perl code found. # Perl code comes after "#$". The variable $text contains the text # to replace the perl code that was executed. # Template comments begin with "#!". # sub IncludeTemplate { my($t_name) = @_; my($cmd,$cmd_block,$cmd_end,$is_cmd_block,$saveline,$spaceonly); local($text); local(*T); $t_name = &find_template($t_name); if ( $tmake_template_dict{$t_name} ) { &tmake_error("Cyclic template inclusion for $t_name"); } else { $tmake_template_dict{$t_name} = 1; } $template_base = $t_name; $template_base =~ s-(.*[/\\]).*-$1-; &tmake_verb("Reading the template $t_name"); open(T,&fix_path($t_name)) || &tmake_error("Cannot open template file \"$t_name\""); while ( ) { if ( /\#\!/ ) { # tmake comment s/\s*\#\!.*//; next if /^$/; } if ( /\#\$(\{)?\s*(.*)\n/ ) { # code $cmd = $2; $is_cmd_block = defined($1) && ($1 eq "{"); s/\#\$.*\n//; if ( $is_cmd_block ) { # code block #${ ... $saveline = $_; $cmd_block = $cmd; $cmd_end = 0; while ( ) { $cmd = $_; $cmd =~ s/\s*\#\!.*//; # tmake comment if ( $cmd =~ /^\s*\#\$\}/ ) { $_ = ""; $cmd_end = 1; last; } $cmd =~ s/^\s*\#(\$)?\s*//; $cmd_block .= $cmd; } $cmd_end || &tmake_error('#$} expected but not found'); $cmd = $cmd_block; $_ = $saveline; } $spaceonly = /^\s*$/; $saveline = $_; &tmake_verb("Evaluate: $cmd"); $text = ""; eval $cmd; die $@ if $@; next if $spaceonly && ($text =~ /^\s*$/); print $saveline . $text . "\n" if $output_count <= 0; } else { # something else print if $output_count <= 0; } } close( T ); } # # Expand(var) - appends to $text # # Expands a list of $project{} variables with a space character between them. # sub Expand { my @vars = @_; my($t); $t = Project(@vars); if ( $text eq "" ) { $text = $t; } elsif ( $t ne "" ) { $text .= " " . $t; } return $text; } # # ExpandGlue(var,prepend,glue,append) - appends to $text # # Expands a $project{} variable, splits on whitespace # and joins with $glue. $prepend is put at the start # of the string and $append is put at the end of the # string. The resulting string becomes "" if the project # var is empty or not defined. # # Example: # # The project file defines: # SOURCES = a b c # # ExpandGlue("SOURCES","<","-",">") # # The result: # $text = "" # sub ExpandGlue { my($var,$prepend,$glue,$append) = @_; my($t,$v); $v = Project($var); if ( $v eq "" ) { $t = ""; } else { $t = $prepend . join($glue,split(/\s+/,$v)) . $append; } if ( $text eq "" ) { $text = $t; } elsif ( $t ne "" ) { $text .= " " . $t; } return $text; } # # ExpandList(var) - sets $text. # # Suitable for expanding HEADERS = ... etc. in a Makefile # sub ExpandList { my($var) = @_; return ExpandGlue($var,""," ${linebreak}\n\t\t",""); } # # ExpandPath(var,prepend,glue,append) - appends to $text # # Expands a $project{} variable, splits on either ';' or # whitespace and joins with $glue. $prepend is put at the # start of the string and $append is put at the end of the # string. The resulting string becomes "" if the project # variable is empty or not defined. # # If the variable contains at least one semicolon or tmake # is running on Windows, the resulting items are put in # double-quotes. # # Example: # # The project file defines: # INCLUDEPATH = "C:\qt\include;c:\program files\msdev\include # # ExpandPath("INCLUDEPATH","-I","-I","") # # The result: # $text = -I"c:\qt\include" -I"c:\program files\msdev\include" # sub ExpandPath { my($var,$prepend,$glue,$append) = @_; my($t,$v); my($s); $v = Project($var); if ( $v eq "" ) { $t = ""; } else { if ( $v =~ /;/ || !$is_unix ) { $prepend .= '"'; $glue = '"' . $glue . '"'; $append = '"' . $append; } if ( $v =~ /;/ ) { $t = $prepend . join($glue,split(/;+/,$v)) . $append; } else { $t = $prepend . join($glue,split(/\s+/,$v)) . $append; } } if ( $text eq "" ) { $text = $t; } elsif ( $t ne "" ) { $text .= " " . $t; } return $text; } # # TmakeSelf() # # Generates makefile rule to regenerate the makefile using tmake. # sub TmakeSelf { my $a = "tmake $project_name"; if ( $nodepend ) { $a .= " -nodepend"; } if ( $outfile ) { $text = "tmake: $outfile\n\n$outfile: $project_name\n\t"; $a .= " -o $outfile"; } else { $text = "tmake:\n\t"; } $text .= $a } # # Objects(files) # # Replaces any extension with .o ($obj_ext). # sub Objects { local($_) = @_; my(@a); @a = split(/\s+/,$_); foreach ( @a ) { s-\.\w+$-.${obj_ext}-; if ( defined($project{"OBJECTS_DIR"}) ) { s-^.*[\\/]--; $_ = $project{"OBJECTS_DIR"} . $_; } } return join(" ",@a); } # # UicImpls(files) # # Replaces any extension with .h ($uic_impl). # sub UicImpls { local($_) = @_; my(@a); @a = split(/\s+/,$_); foreach ( @a ) { s-\.\w+$-.${uic_impl}-; } return join(" ",@a); } # # UicDecls(files) # # Replaces any extension with .cpp ($uic_decl). # sub UicDecls { local($_) = @_; my(@a); @a = split(/\s+/,$_); foreach ( @a ) { s-\.\w+$-.${uic_decl}-; } return join(" ",@a); } # # MocSources(files) # # Only useful for uic files! # # Replaces any extension with .cpp ($cpp_ext) and adds moc_ ($moc_pre) # sub MocSources { local($_) = @_; my( @a, $t, $h, $f ); @a = split(/\s+/,$_); foreach $t ( @a ) { $h = $t; $h =~ s-\.\w+$-.${uic_decl}-; $f = $t; $t =~ s-^(.*[/\\])?([^/\\]*?)\.(\w+)$-$1${moc_pre}$2.${cpp_ext}-; if ( defined($project{"MOC_DIR"}) ) { $t =~ s-^.*[\\/]--; $t = $project{"MOC_DIR"} . $t; } $moc_output{$h} = $t; $moc_input{$t} = $h; } return join(" ",@a); } # # list_moc(files,prefix,extension) # # Scans all files and selects all files that contain Q_OBJECT. # Insert a prefix before the filename and replaces the filename extention. # sub list_moc { my($files,$pre,$ext) = @_; my(@v,@m,@lines,$contents,$n,$f,$t); @v = split(/\s+/,$files); undef $/; foreach $f ( @v ) { if ( open(TMP,&fix_path($f)) ) { $contents = ; close(TMP); $n = 0; @lines = split(/\n/,$contents); grep( /tmake\s+ignore\s+Q_OBJECT/ && $n--, @lines ); $contents =~ s-//.*\n--g; # strip C/C++ comments $contents =~ s-/\*.*?\*/--gs; @lines = split(/\n/,$contents); grep( /(^|\W)(Q_OBJECT)|(Q_COMPONENT)(\W|$)/ && $n++, @lines ); if ( $n > 0 ) { $t = $f; $t =~ s-^(.*[/\\])?([^/\\]*?)\.(\w+)$-$1${pre}$2.${ext}-; if ( defined($project{"MOC_DIR"}) ) { $t =~ s-^.*[\\/]--; $t = $project{"MOC_DIR"} . $t; } $moc_output{$f} = $t; $moc_input{$t} = $f; push(@m,$t); } $contents = ""; } } $/ = "\n"; return join(" ",@m); } # # BuildObj(objects,sources) # # Builds the object files. # sub BuildObj { my($obj,$src) = @_; my(@objv,$srcv,$i,$s,$o,$d,$c,$comp,$cimp); @objv = split(/\s+/,$obj); @srcv = split(/\s+/,$src); for $i ( 0..$#objv ) { $s = $srcv[$i]; $o = $objv[$i]; next if $s eq ""; $text .= $o . ": " . $s; if ( defined($moc_output{$s}) && ($moc_output{$s} ne "") ) { $text .= " ${linebreak}\n\t\t" . $moc_output{$s}; } if ( defined($uic_dependency{ $s } ) ) { $d = $uic_dependency{ $s }; } else { $d = &make_depend($s); } $text .= " ${linebreak}\n\t\t" . $d if $d ne ""; if ( ($s =~ /\.c$/) ) { $comp = "TMAKE_RUN_CC"; $cimp = "TMAKE_RUN_CC_IMP"; } else { $comp = "TMAKE_RUN_CXX"; $cimp = "TMAKE_RUN_CXX_IMP"; } if ( defined($project{"OBJECTS_DIR"}) || !defined($project{$cimp}) ) { $c = $project{$comp}; $c =~ s/\$src/$s/; $c =~ s/\$obj/$o/; $text .= "\n\t$c"; } $text .= "\n\n"; } chomp $text; } # # BuildMocObj(objects,sources) # # Builds the moc object files. # sub BuildMocObj { my($obj,$src) = @_; my(@objv,$srcv,$i,$s,$o,$hdr,$d); @objv = split(/\s+/,$obj); @srcv = split(/\s+/,$src); for $i ( 0..$#objv ) { $s = $srcv[$i]; $o = $objv[$i]; $hdr = $moc_input{$srcv[$i]}; $text .= $o . ": " . $s . " ${linebreak}\n\t\t" . $hdr; $d = &make_depend($hdr); $text .= " ${linebreak}\n\t\t" . $d if $d ne ""; if ( defined($project{"OBJECTS_DIR"}) || defined($project{"MOC_DIR"})|| !defined($project{"TMAKE_RUN_CXX_IMP"}) ) { $c = $project{"TMAKE_RUN_CXX"}; $c =~ s/\$src/$s/; $c =~ s/\$obj/$o/; $text .= "\n\t$c"; } $text .= "\n\n"; } chop $text; } # # BuildMocSrc(files) # # Builds the moc source files from headers and sources. # sub BuildMocSrc { my($f) = @_; my(@v,$m,$o); @v = split(/\s+/,$f); foreach $m ( @v ) { $o = $moc_output{$m}; if ( defined($o) && ($o ne "") ) { $text .= "$o: $m\n\t$moc_cmd $m -o $o\n\n"; } } chop $text; } # # BuildUicSrc(files) # # Builds the uic source files from interface definitions # sub BuildUicSrc { my($f) = @_; my(@v,$m,$o); @v = split(/\s+/,$f); foreach $m ( @v ) { $decl = $m; $decl =~ s/\.ui$/\.$uic_decl/; $impl = $m; $impl =~ s/\.ui$/\.$uic_impl/; $text .= "$decl: $m\n\t$uic_cmd $m -o $uic_decl_path/$decl\n\n"; $fulldecl = $decl; $decl =~ s/.*\///; # No path - use -I... to find it. if ( ! ( $fulldecl eq $decl ) ) { $text .= "$decl: $m\n\t$uic_cmd $m -o $decl\n\n"; } $text .= "$impl: $m\n\t$uic_cmd $m -i $decl -o $impl\n\n"; } chop $text; } # # AddIncludePath(path) # # Adds path to the current include path, $project{"INCLUDEPATH"}. # sub AddIncludePath { my($path) = @_; my($p); if ( $project{"INCPATH"} && ($project{"INCPATH"} =~ /(?:^|\s)\Q$path\E(?:\s|$)/) ) { return; } $project{"INCLUDEPATH"} = "" if !defined($project{"INCLUDEPATH"}); if ( !defined($project{"INCPATH_SEP"}) ) { if ( $project{"INCLUDEPATH"} =~ /;/ ) { $project{"INCPATH_SEP"} = ";"; } else { $project{"INCPATH_SEP"} = " "; } } $p = $project{"INCLUDEPATH"}; $p = ($p && $path) ? ($p . ";" . $path) : ($p . $path); $project{"INCLUDEPATH"} = $p; $p = join($project{"INCPATH_SEP"},&split_path($p)); $p =~ s=[\\/]($project{"INCPATH_SEP"}|$)=$project{"INCPATH_SEP"}=g; $project{"INCPATH"} = $p; } # # FindHighestLibVersion(dir,name) # # Returns the newest library version. Scans all the files in the specifies # directory and returns the highest version number. # # Used on Windows only. # # Example: # FindHighestLibVersion("c:\qt\lib","qt") returns "200" if # the c:\qt\lib directory contains qt141.lib and qt200.lib. # sub FindHighestLibVersion { my($dir,$name) = @_; my(@files,$f,$v,$highest); $highest = ""; @files = find_files($dir,"${name}.*\.lib"); for $f ( @files ) { if ( $f =~ /(\d+)\.lib$/i ) { $v = $1; if ( $highest eq "" || $v > $highest ) { $highest = $v; } } elsif ( $f =~ /(-mt(?:\d+)nc)\.lib$/i ) { $v = $1; if ( $highest eq "" || $v gt $highest ) { $highest = $v; } } } return $highest; } # # Finds files. # # Examples: # find_files("/usr","\.cpp$",1) - finds .cpp files in /usr and below # find_files("/tmp","^#",0) - finds #* files in /tmp # sub find_files { my($dir,$match,$descend) = @_; my($file,$p,@files); local(*D); $dir =~ s=\\=/=g; ($dir eq "") && ($dir = "."); if ( opendir(D,&fix_path($dir)) ) { if ( $dir eq "." ) { $dir = ""; } else { ($dir =~ /\/$/) || ($dir .= "/"); } foreach $file ( readdir(D) ) { next if ( $file =~ /^\.\.?$/ ); $p = $dir . $file; if ( $is_unix ) { ($file =~ /$match/) && (push @files, $p); } else { ($file =~ /$match/i) && (push @files, $p); } if ( $descend && -d $p && ! -l $p ) { push @files, &find_files($p,$match,$descend); } } closedir(D); } return @files; } # # make_depend(file) # # Returns a list of included files. # Uses the global $depend_path variable. # sub make_depend { my($file) = @_; my($i,$count); if ( $nodepend ) { return ""; } if ( ! $depend_path_fixed ) { $depend_path_fixed = 1; if ( defined($project{"DEPENDPATH"}) ) { $depend_path = $project{"DEPENDPATH"}; } else { $depend_path = ""; } $count = 0; while ( $count < 100 ) { if ( $depend_path =~ s/(\$[\{\(]?\w+[\}\)]?)/035/ ) { $_ = $1; s/[\$\{\}\(\)]//g; $depend_path =~ s/035/$ENV{$_}/g; } else { $count = 100; } } @dep_path = &split_path($depend_path); } @cur_dep_path = @dep_path; if ( $file =~ /(.*[\/\\])/ ) { $dep_curdir = $1; push @cur_dep_path, $dep_curdir; } else { $dep_curdir = ""; } $dep_file = $file; &canonical_dep($file); %dep_dict = (); $i = &build_dep($file); chop $i; $i =~ s=/=$dir_sep=g unless $is_unix; $i =~ s=([a-zA-Z]):/=//$1/=g if (defined($gnuwin32) && $gnuwin32); return join(" ${linebreak}\n\t\t",split(/ /,$i) ); } # # build_dep() - Internal for make_depend() # sub build_dep { my($file) = @_; my(@i,$a,$n); $a = ""; return $a if !(defined $depend_dict{$file}); @i = split(/ /,$depend_dict{$file}); for $n ( @i ) { if ( !defined($dep_dict{$n}) && ( defined($full_path{$n}) ) ) { $dep_dict{$n} = 1; $a .= $full_path{$n} . " " . &build_dep($n); } } return $a; } # # canonical_dep(file) - Internal for make_depend() # # Reads the file and all included files recursively. # %depend_dict associates a file name to a list of included files. # sub canonical_dep { my($file) = @_; my(@inc,$i); @inc = &scan_dep($file); if ( @inc ) { $depend_dict{$file} = join(" ",@inc); for $i ( @inc ) { &canonical_dep($i) if !defined($depend_dict{$i}); } } } # # scan_dep(file) - Internal for make_depend() # # Returns an array of included files. # sub scan_dep { my($file) = @_; my($dir,$path,$found,@allincs,@includes,%incs); $path = $file; @includes = (); return @includes if $file =~ /\.$moc_ext$/; # avoid .moc files if ( ! (-f &fix_path($path)) ) { $found = 0; for $dir ( @cur_dep_path ) { $path = $dir . $file; last if ( $found = (-f &fix_path($path)) ); } return @includes if ! $found; } undef $/; if ( open(TMP,&fix_path($path)) ) { $full_path{$file} = $path; $_ = ; s-/\*.*?\*/--gs; # strip C/C++ comments s-//.*\n-\n-g; @allincs = split(/\n/,$_); @allincs = grep(/^\s*\#\s*include/,@allincs); foreach ( @allincs ) { # all #include lines next if !(/^\s*\#\s*include\s+[<\"]([^>\"]*)[>\"]/) || defined($incs{$1}); push(@includes,$1); $incs{$1} = "1"; my $headerfile = $1; my $hfile = $headerfile; $hfile =~ s/\+/\\\+/g; $full_path{$headerfile} ||= &fix_path( $headerfile ) if ( $project{"UICDECLS"} =~ /\b$hfile\b/ ); } close(TMP); } $/ = "\n"; return @includes; } # # split_path(path) # # Splits a path containing : (Unix) or ; (MSDOS, NT etc.) separators. # Returns an array. # sub split_path { my($p) = @_; my($s,@d); @d = (); return @d if !defined($p) || $p eq ""; $p =~ s=:=;=g if $is_unix; $p =~ s=[/\\]+=/=g; if ( !($p =~ /;/) ) { $p =~ s/\s+/;/g; } $p =~ s/\s*;\s*/;/g; while( $p =~ /(?:(?:[^\"\;][^\;]*;*)|(?:\"[^\"]*\";*))/g ) { $s = $&; $s =~ s=\"==g; $s =~ s=[\s\;]+$==g; $s =~ s=([^/:])$=$1/=g; $s =~ s=/=$dir_sep=g unless $is_unix; push @d, $s; } return @d; } # # fix_path(path) # # Converts all '\' to '/' if this really seems to be a Unix box. # Also expands $(...) environment variables (god for $(QTDIR)). # sub fix_path { my($p) = @_; if ( $really_unix ) { $p =~ s-\\-/-g; } else { $p =~ s-/-\\-g; } $p =~ s/\$\(([^)]*)\)/$ENV{$1}/gs; return $p; } # # mkdirp(filename,mode) - Internal for StdInit() # # Creates the directory specified by $filename, with permissions # specified by mode (as modified by umask). Recursively calls # mkdir, similar to 'mkdir -p'. # sub mkdirp { my($filename,$mode) = @_; if ( $filename =~ /\$\(\w+\)/ ) { # ignore "$(something)" return 0; } $filename =~ s-[\\:/]+-/-g; if ( -d $filename ) { return 1; } $filename =~ m-^((.*)/)?(.*)-; if ( defined($2) && ! mkdirp($2,$mode) ) { return 0; } return mkdir($filename,$mode); } tmake-1.8/bin/tmake_win100444 773 773 166 7175526477 13624 0ustar aavitaavit# # tmake_win32_registry() # # Loads the Win32::Registry # sub tmake_use_win32_registry { use Win32::Registry; } tmake-1.8/doc/ 40775 773 773 0 7365566422 11637 5ustar aavitaavittmake-1.8/doc/m-linux-gcc.html100444 773 773 3054 7175526477 14750 0ustar aavitaavit Generated Makefile for Linux / GNU g++

Generated Makefile for Linux / GNU gcc

#############################################################################
# Makefile for building hello
# Generated by tmake at 10:11, 1998/07/07
#     Project: hello
#    Template: app
#############################################################################

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

CC	=	g++
CFLAGS	=	-Wall -W -O2 -fno-strength-reduce
INCPATH	=	-I$(QTDIR)/include
LINK	=	g++
LFLAGS	=	
LIBS	=	-L$(QTDIR)/lib -lqt -L/usr/X11R6/lib -lX11
MOC	=	moc

####### Files

HEADERS =	hello.h
SOURCES =	hello.cpp \
		main.cpp
OBJECTS =	hello.o \
		main.o
SRCMOC	=	moc_hello.cpp
OBJMOC	=	moc_hello.o
TARGET	=	hello

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .C .c

.cpp.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake hello.pro

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET)
	-rm -f *~ core

####### Compile

hello.o: hello.cpp \
		hello.h

main.o: main.cpp \
		hello.h

moc_hello.o: moc_hello.cpp \
		hello.h

moc_hello.cpp: hello.h
	$(MOC) hello.h -o moc_hello.cpp
tmake-1.8/doc/m-win32-msvc.html100444 773 773 3234 7175526477 14767 0ustar aavitaavit Generated Makefile for Win32 / Microsoft Visual C++

Generated Makefile for Win32 / Microsoft Visual C++

#############################################################################
# Makefile for building hello
# Generated by tmake at 20:40, 1998/02/27
#     Project: hello
#    Template: app
#############################################################################

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

CC	=	cl
CFLAGS	=	-nologo -W3 -O2
INCPATH	=	-I"$(QTDIR)\include"
LINK	=	link
LFLAGS	=	/NOLOGO /SUBSYSTEM:windows
LIBS	=	$(QTDIR)\lib\qt.lib user32.lib gdi32.lib comdlg32.lib wsock32.lib
MOC	=	moc

####### Files

HEADERS =	hello.h
SOURCES =	hello.cpp \
		main.cpp
OBJECTS =	hello.obj \
		main.obj
SRCMOC	=	moc_hello.cpp
OBJMOC	=	moc_hello.obj
TARGET	=	hello.exe

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .c

.cpp.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.cxx.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.cc.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.c.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
	    $(OBJECTS) $(OBJMOC) $(LIBS)
<<

moc: $(SRCMOC)

tmake: Makefile

Makefile: hello.pro
	tmake hello.pro -o Makefile

clean:
	-del hello.obj
	-del main.obj
	-del moc_hello.cpp
	-del moc_hello.obj
	-del $(TARGET)

####### Compile

hello.obj: hello.cpp \
		hello.h

main.obj: main.cpp \
		hello.h

moc_hello.obj: moc_hello.cpp \
		hello.h

moc_hello.cpp: hello.h
	$(MOC) hello.h -o moc_hello.cpp
tmake-1.8/doc/tmake.html100444 773 773 51303 7175526477 13746 0ustar aavitaavit User's Guide - tmake

User's Guide - tmake


Introduction

tmake is an easy-to-use tool from Trolltech to create and maintain makefiles for software projects. It can be a painful task to manage makefiles manually, especially if you develop for more than one platform or use more than one compiler. tmake automates and streamlines this process and lets you spend your valuable time on writing code, not makefiles.

Our main motivation for developing tmake was that we spent far too much time maintaining makefiles for Qt, our cross-platform GUI toolkit. Qt supports around 15 flavors of Unix, Microsoft Windows, and around 15 different C++ compilers. We looked at GNU autoconf, but it was Unix-specific and not flexible enough in our opinion. Our makefile system also had to deal with Qt meta object compiler (moc) issues. The moc program extracts meta information from C++ files and generates a C++ file with data tables etc. It takes extra work to add makefile rules for the moc and wanted to automate this task.

tmake is written in Perl and requires that you have installed perl version 5 or newer. Basic use of tmake requires no perl knowledge, but if you know perl you can extend tmake and write your own makefile templates.

Windows users: The tmake distribution for Win32 includes tmake.exe (built by the perl2exe utility) and you do not need to download and install perl unless you want to modify the tmake source code or run other perl scripts. You can download perl for Win32 (Windows NT and 95) from www.activestate.com

tmake is free software and you may use, copy, modify and distribute tmake and its documentation for any purpose and without any fee. See the LICENSE file for details.

Feedback is highly appreciated. Contact the author, Haavard Nord (hanord@trolltech.com), if you have ideas, patches etc. for tmake.


Installation

  1. Make sure you have perl version 5 or later installed (optional for Windows users).
  2. Unpack the tmake tar.gz archive for Unix or the tmake .zip file for Windows.
  3. Set the TMAKEPATH environment variable to the directories containing the template files (see below).
  4. Add the tmake/bin directory to your PATH.
Here are some examples:

Unix Bourne shell:

    TMAKEPATH=/local/tmake/lib/linux-g++
    PATH=$PATH:/local/tmake/bin
    export TMAKEPATH PATH
Unix C shell:
    setenv TMAKEPATH /local/tmake/lib/linux-g++
    setenv PATH $PATH:/local/tmake/bin
Microsoft Windows:
    set TMAKEPATH=c:\tmake\lib\win32-msvc
    set PATH=%PATH%;c:\tmake\bin

The template directory name has the form platform-compiler and contains a platform configuration file (tmake.conf) and tmake template files.

Supported platforms: AIX, Data General, FreeBSD, HPUX, SGI Irix, Linux, NetBSD, OpenBSD, OSF1/DEC, SCO, Solaris, SunOS, Ultrix, Unixware and Win32.

You can find your platform-compiler combination in the tmake/lib.

Unix users: tmake requires that perl is in /usr/bin. If your version of perl is elsewehere, either change the first line of tmake or make a small shell script which invokes tmake with the correct perl.


Getting Started

Let's assume you have a small Qt application consisting of one C++ header file and two source files. First you need to create a tmake project file, e.g. hello.pro:
  HEADERS   =  hello.h
  SOURCES   =  hello.cpp main.cpp
  TARGET    =  hello
Then run tmake to create a Makefile:
  tmake hello.pro -o Makefile
And finally:
  make
This builds the hello program. Remember to set the TMAKEPATH environment variable before you run tmake.

See Makefile for Linux/g++.
See Makefile for Win32/msvc (Microsoft Visual C++).


Makefile Templates

The tmake distribution includes three makefile templates and one configuration file for each platform/compiler combination. The TMAKEPATH environment variable tells tmake where to find these files:

  app.t   Creates a makefile for building applications.
  lib.t   Creates a makefile for building libraries.
  subdirs.t   Creates a makefile for building targets in subdirectories.
  tmake.conf   This configuration file contains compiler options and lists tools and libraries.

The hello.pro project file above does not have a TEMPLATE or a CONFIG variable. The default template is app (the .t extension is optional) and the default configuration is qt warn_on release. This project file produces exactly the same result as the hello.pro above:

  TEMPLATE =  app
  CONFIG   =  qt warn_on release
  HEADERS  =  hello.h
  SOURCES  =  hello.cpp main.cpp
  TARGET   =  hello

Makefile Configuration

The CONFIG variable is recognized by both the app.t and lib.t templates and specifies what compiler options to use and which extra libraries to link in. These options control the compilation flags:

  release   Compile with optimization enabled, ignored if "debug" is specified.
  debug   Compile with debug options enabled.
  warn_on   The compiler should emit more warnings than normally, ignored if "warn_off" is specified.
  warn_off   The compiler should emit no warnings or as few as possible.

These options defines the application/library type:

  qt   The target is a Qt application/library and requires Qt header files/library.
  opengl   The target requires the OpenGL (or Mesa) headers/libraries.
  thread   The target is a multi-threaded application or library.
  x11   The target is a X11 application or library.
  windows   The target is a Win32 window application (app.t only).
  console   The target is a Win32 console application (app.t only).
  dll   The target is a shared object/DLL.
  staticlib   The target is a static library (lib.t only).

As an example, if the hello application uses both Qt and OpenGL and you want to compile it for debugging, your CONFIG line should read:

  CONFIG = qt opengl debug

The most common tmake options and project variables are described here. See the tmake reference manual for details.

The Application Template

The application template, app.t, lets you compile and link executable programs or shared objects (DLLs). This template recognizes several variables.

  HEADERS   Header files.
  SOURCES   Source files.
  TARGET   Name of executable (adds .exe if on Windows).
  DESTDIR   Where to put the target.
  DEFINES   Tell compiler to define C preprocessor macros (-D option).
  INCLUDEPATH   Sets the include file search path for the compiler (-I option).
  DEPENDPATH   Sets the dependency search path for tmake.
  DEF_FILE   Win32 only: Link with a .def file.
  RC_FILE   Win32 only: Use a .rc file (compile to temporary .res).
  RES_FILE   Win32 only: Link with a .res file.

The Library Template

The library template, lib.t, lets you compile and create static or shared libraries.

The lib.t template supports the same project variables as app.t, but also VERSION. VERSION is the version number of the target library, e.g. 1.40. The version is important for shared libraries.

The Subdirs Template

The subdirs template, subdirs.t, lets you invoke make in subdirectories.

The SUBDIRS variable contains the name of all subdirectories to be processed.

Special Templates for Microsoft Visual C++

If you have Microsoft Visual C++ 5.0, you can use two special templates to generate a MSVC++ IDE project (.dsp file). After you have generated e.g. hello.dsp, choose "File"->"Open Workspace" and select the hello.dsp file. Visual C++ will then create a workspace (.dsw file) for you.

  vcapp.t   Creates an application project file (Microsoft Visual C++ 5.0 only).
  vclib.t   Creates a library project file (Microsoft Visual C++ 5.0 only).

Run tmake to create a hello.dsp file (use -t to override the default template):

  tmake -t vcapp -o hello.dsp hello.pro

Project File Syntax

The tmake project file has a very simple syntax. You may set project variables, append to project variables, remove from project variable and substitute project variables. To set a project variable:
    HEADERS = gui.h xml.h url.h
If you cannot fit everything on one line, use '\' to split it up:
    HEADERS = gui.h \
	      xml.h \
	      url.h

Project variables contains lists of items (such as header files, compiler options etc.) and use whitespace to separate the items. This means that tmake cannot deal with items containing whitespace. The INCLUDEPATH variable is an exception. If INCLUDEPATH contains one or more semicolons (;), tmake uses the semicolon to separate the include directories, hence you can have include directories containing whitespace (this is quite common on Windows).

Here is an example:

    INCLUDEPATH = C:\Program Files\DBLib\Include;C:\qt\include

tmake supports project variable expension. Use $$ to expand any project variable:

    ALLFILES = $$HEADERS $$SOURCES

Most often you assign some value to a project variable, but you can also add to, remove from or replace parts of a project variable.

    A   = abc
    X   = xyz
    A  += def			# A = abc def
    X  *= xyz			# X = xyz
    B   = $$A			# B = abc def
    B  -= abc			# B = def
    X  /= s/y/Y/		# X = xYz
The *= operation adds the value if the variable does not already contain it. The /= operation performs regular expression substitution.

You can also set variables from the command line when running the tmake program. For instance, if you want to generate a makefile with debug information:

    tmake "CONFIG+=debug" hello.pro

Use the unix: or win32: (conditional) qualifier if you want a platform-specific variable:

    SOURCES	   =   common.cpp   # common for all platforms
    unix:SOURCES   +=  unix.cpp	    # additional sources for Unix
    win32:SOURCES  +=  win32.cpp    # additional sources for Windows
    unix:LIBS	   +=  -lm	    # on Unix we need the math lib
If none of the platforms match, tmake looks for the variable in CONFIG variable:
    debug:SOURCES  +=  dbgstuff.cpp # additional source for debugging
Finally, you can set platform and compiler-dependent variables:
    linux-g++:TMAKE_CFLAGS = -fno-rtti

You may define your own project variables to be used by custom templates. A project variable is stored in %project, which is an associative Perl array. Access it like this: $project{"var"} or via the function Project("var"). For example, after reading "hello.pro", $project{"SOURCES"} contains "hello.cpp main.cpp".


Running tmake

Usage:
  tmake [options] project files or project settings
Options:
  -e expr    Evaluate the Perl expression.  Ignores the template file.
  -nodepend  Don't generate dependency information.
  -o file    Write output to file instead of stdout.
  -t file    Specify a template file.
  -unix      Force tmake into Unix mode.
  -v         Verbose/debugging on.
  -win32     Force tmake into Win32 mode.
The -t option overrides any TEMPLATE variable in the project file.

The default project file extension is ".pro". The default template file extension is ".t". If you do not specify these extension tmake will automatically add them for you.

Example of basic use:

    tmake hello -o Makefile

Example of how to create a makefile with debugging information:

    tmake hello "CONFIG+=debug" -o Makefile

Exmaple of how to specify a TMAKEPATH:

    tmake "TMAKEPATH=/local/tmake/lib/hpux-g++" hello.pro -o Makefile
Example of how to evaluate a perl expression (print names of headers and source files):
    tmake hello -e 'Expand("HEADERS","SOURCES")'
Note that project settings on the command line must come after the project file, otherwise they will be overridden by the settings in the project file.

The progen Utility

The progen utility creates project files for you. It can be used like this:
  progen -n hello -o hello.pro
If no .cpp or .h files are specified on the command line, progen searches for .cpp and .h (except moc_*.cpp) in the current directory and below.

Usage:

  progen [options] [C/C++ header files and source files]
Options:
  -lower   Lower-case letters in filenames (useful on Windows).
  -n name  Specify a project name (TARGET).
  -o file  Write output to file instead of stdout.
  -t file  Specify a template file.

Advanced Topics

In most cases you will be happy with using tmake as described above, but sometimes you need to add special compiler options or even add new makefile rules. This chapter describes how to customize your makefiles.

Conditional Project Settings

If you need a special compiler option etc., you can add platform-dependent settings in your project file:
  
  solaris-cc:TMAKE_CC     = /opt/bin/CC_5.0
  solaris-cc:TMAKE_CFLAGS = -pts
  unix:TMAKE_LIBS         = -lXext
  win32:INCLUDEPATH       = c:\myinclude
  win32-borland:DEFINES   = NO_BOOL
You can prefix a project variable with unix: or win32: to make it specific for either Unix or Windows. You can also prefix a variable with platform-compiler

Your Own Templates

If you know Perl programming, there is virtually no limitation to what you can do with tmake. First you need to know how tmake works.

Template Processing

When you run tmake, it first reads the tmake.conf file. This configuration file has the same syntax as the project file. tmake then reads the project file and sets the project variables it finds, e.g. HEADERS, SOURCES etc. All variables and values are stored in a global associative Perl hash array called project. For example, $project{"SOURCES"} contains "hello.cpp main.cpp" after processing hello.pro. When both the tmake.conf and the project files have been read, tmake starts reading the template file line by line and executes any Perl code it finds in the template.
  • Anything after #$ until newline is evaluated as perl code. The perl code is substituted with the contents of the $text variable.
  • Block of perl code: #${ until #$}.
  • Comments; #! until newline is stripped.
  • Anything else is copied directly from the template to the output.

Example:

    #! This is a comment which will be removed.
    This text will appear in the output.
    #$ $text = "The header file(s) are: " . $project{"HEADERS"};
    # This text also appears in the output.
    #${
       $a = 12;
       $b = 13;
       $text = $a * $b;
    #$}
    That's all.
Output:
    This text will appear in the output.
    The header file(s) are: hello.h
    # This text also appears in the output.
    156
    That's all.

Using tmake With Lex and Yacc

The standard tmake templates knows how to process C and C++ files, but sometimes you need to process additional files and link them into your project. A typical example is to process lex and yacc files when you're building a parser.

Parser template:

  #!
  #! parser.t: This is a custom template for building a parser
  #!
  #$ IncludeTemplate("app.t");

  ####### Lex/yacc programs and options

  LEX	    =	flex
  YACC    =	#$ $text = ($is_unix ? "yacc -d" : "byacc -d");

  ####### Lex/yacc files

  LEXIN   =	#$ Expand("LEXINPUT");
  LEXOUT  =	lex.yy.c
  YACCIN  =	#$ Expand("YACCINPUT");
  YACCOUT =	y.tab.c
  YACCHDR =	y.tab.h
  PARSER  =	#$ Expand("PARSER");

  ####### Process lex/yacc files

  $(LEXOUT): $(LEXIN)
          $(LEX) $(LEXIN)

  $(PARSER): $(YACCIN) $(LEXOUT)
          $(YACC) $(YACCIN)
          #$ $text = ($is_unix ? "-rm -f " : "-del ") . '$(PARSER)';
          #$ $text = ($is_unix ? "-mv " : "-ren ") . '$(YACCOUT) $(PARSER)'; 
The parser template adds some extra rules to the application template in order to build the lex and yacc portions of the project. This template is portable across Unix and Windows since it generates different commands depending on the $is_unix variable.

To learn more about the Expand() function and other Perl functions which tmake provides, consult the reference manual.

Example project file:

  TEMPLATE  = parser.t
  CONFIG    = console release
  LEXINPUT  = lexer.l
  YACCINPUT = grammar.y
  PARSER    = parser.cpp
  SOURCES   = $$PARSER    \
              node.cpp    \
              asmgen.cpp
  TARGET    = parser
Here we use macro expansion $$PARSER to avoid writing parser.cpp two places.

Counting the Number of Code Lines

tmake is generic since it is based on Perl. You can create your own templates for other purposes than producing makefiles. Here is an example template that counts the number of code lines in our project.

Template wc.t:

  #! Template that count number of C++ lines.
  The number of C++ code lines for #$ $text=$project_name;
  #${
    $files = $project{"HEADERS"} . " " . $project{"SOURCES"};
    $text = `wc -l $files`;
  #$}
Run it:
  tmake -t wc hello
Output:
  The number of C++ code lines for hello.pro
       25    hello.h
       98    hello.cpp
       38    main.cpp
      161    total
This will only work if the wc program is installed on your system. tmake-1.8/doc/tmake_ref.html100444 773 773 32037 7175526477 14605 0ustar aavitaavit Reference Manual - tmake

Reference Manual - tmake


Project Variable Reference

ALL_DEPS

Specifies additional dependencies for the makefile target "all:".

CLEAN_FILES

Specifies additional files to be removed for "make clean".

Example:

  CLEAN_FILES = core *~

CONFIG

Sets the make configuration. It tells the tmake templates what compiler options to use and which extra libraries to link in.

These options control the compilation flags:

  release   Compile with optimization enabled, ignored if "debug" is specified.
  debug   Compile with debug options enabled.
  warn_on   The compiler should emit more warnings than normally, ignored if "warn_off" is specified.
  warn_off   The compiler should emit no warnings or as few as possible.

These options defines the application/library type:

  qt   The target is a Qt application/library and requires Qt header files/library.
  opengl   The target requires the OpenGL (or Mesa) headers/libraries.
  x11   The target is a X11 application (app.t only).
  windows   The target is a Win32 window application (app.t only).
  console   The target is a Win32 console application (app.t only).
  dll   The target is a shared object/DLL (app.t only).
  staticlib   The target is a static library (lib.t only).
  thread   The target is a multi-threaded application/library.

DEFINES

Specifies C/C++ macros (-D compiler option). On Windows you need to let DEFINES contain "QT_DLL" if you are building a Qt program which should link with the Qt DLL.

DEF_FILE

Win32/app.t only: Specifies a .def file.

DESTDIR

Specifies where to put the target file. Example:
  DESTDIR = ../../lib
You must create this directory before running make.

DISTFILES

Adds other files to the distribution archive ("dist target"). The source files and project file are always included in the distribution archive. Example:
  DISTFILES = CHANGES README

HEADERS

Defines the header files of the project.

INCPATH

This variable is generated from INCLUDEPATH. The ';' or ':' separators have been replaced by ' ' (single space). This makes it easier to split. qtapp.t and other templates expand INCPATH to set -I options for the C++ compiler.

INCLUDEPATH

This variable specifies the #include directories. It can be set in the project file, or by the AddIncludePath() function.

Example:

  INCLUDEPATH = c:\msdev\include d:\stl\include
Use ';' or space as the directory separator.

LIBS

Defines additional libraries to be linked in when creating an application or a shared library. You probably want to use a platform qualifier since libraries are specified differently on Unix and Win32.

Example:

  unix:LIBS  = -lXext -lm
  win32:LIBS = ole32.lib

MOC_DIR

Specifies where to put the temporary moc output files. By default they are stored in the directory where the moc input files are.

Example:

  MOC_DIR = tmp
You must create this directory before running make.

See also: OBJECTS_DIR.

OBJECTS

This varialble is generated from SOURCES by the StdInit() function. The extension of each source file has been replaced by .o (Unix) or .obj (Win32).

Example:

  SOURCES = a.x b.y
Then OBJECTS become "a.o b.o" on Unix and "a.obj b.obj" on Win32.

OBJECTS_DIR

Specifies where to put object files. By default they are stored in the directory where the source files are.

Example:

  OBJECTS_DIR = tmp
You must create this directory before running make.

See also: MOC_DIR.

OBJMOC

This variable is generated by the StdInit() function if $moc_aware is true. OBJMOC contains the name of all intermediate moc object files.

Example:

  HEADERS = demo.h
  SOURCES = demo.cpp main.cpp
If demo.h and main.cpp define classes that use signals and slots (i.e. the Q_OBJECT "keyword" is found in these two files), OBJMOC becomes:
  OBJMOC  = moc_demo.obj
See also: SRCMOC.

PROJECT

This is the name of the project. It defaults to the name of the project file, excluding the .pro extension.

RC_FILE

Win32/app.t only: Specifies a .rc file. Cannot be used with the RES_FILE variable.

RES_FILE

Win32/app.t only: Specifies a .res file. You can either specify a .rc file or one or more .res files.

SOURCES

Defines the source files of the project.

SRCMOC

This variable is generated by the StdInit() function if CONFIG contains "qt". SRCMOC contains the name of all intermediate moc files.

Example:

  HEADERS = demo.h
  SOURCES = demo.cpp main.cpp
If demo.h and main.cpp define classes that use signals and slots (i.e. the Q_OBJECT "keyword" is found in these two files), SRCMOC becomes:
  SRCMOC  = moc_demo.cpp main.moc
See also: OBJMOC.

TARGET

Sets the makefile target, i.e. what program to build.

TEMPLATE

Sets the default template. This can be overridden by the tmake -t option.

TMAKE_CC

Contains the name of the compiler.

TMAKE_CFLAGS

Contains the default compiler flags.

TMAKE_FILEVARS

Tells tmake which variables contain file names. This is because tmake on Windows replace the directory separator / with \.

Function Reference

This section contains a brief description of some important tmake functions used by the templates.

AddIncludePath(path)

Adds path to the include path variable, INCLUDEPATH. The include path is used for two purposes:
  1. Searching files when generating include dependencies.
  2. Setting -I options for the C/C++ compiler.

Example:

  #$ AddIncludePath('$QTDIR/include;/local/include');

BuildMocObj(objects,sources)

Creates build rules for moc source files. Generates include dependencies.

Example:

  #$ BuildMocObj($project{"OBJMOC"},$project{"SRCMOC"});
Output:
  moc_hello.o: moc_hello.cpp \
		hello.h \
		...

BuildMocSrc(files)

Creates moc source files from C++ files containing classes that define signals and slots. For a header file x.h, the generated moc file is called moc_x.h. For a source file y.cpp, the generates moc file is called y.moc and should be #include'd by y.cpp.

Example:

  #$ BuildMocSrc($project{"HEADERS"});
  #$ BuildMocSrc($project{"SOURCES"});
Output:
  moc_hello.cpp: hello.h
	$(MOC) hello.h -o moc_hello.cpp

BuildObj(objects,sources)

Creates build rules for source files. Generates include dependencies.

Example:

  #$ BuildObj($project{"OBJECTS"},$project{"SOURCES"});
Output:
  hello.o: hello.cpp \
		hello.h \
		...

  main.o: main.cpp \
		hello.h \
		...

Config(string)

Returns true if the CONFIG variable contains the given string.

Example:

  #$ if ( Config("release") { }

DisableOutput()

Call this function to force tmake to generate no output until EnableOutput() is called.

Example:

  #$ Config("debug") && DisableOutput();
      Anything here is skipped if CONFIG contains "debug".
  #$ Config("debug") && EnableOutput();

EnableOutput()

Enables tmake output after DisableOutput() was called.

Expand(var)

Expands a project variable. Equivalent to $text = $project{$var}.

Example:

  VERSION = #$ Expand("VERSION");
Output:
  VERSION = 1.1

ExpandGlue(var,prepend,glue,append)

Expands a $project{} variable, splits on whitespace and joins with $glue. $prepend is put at the start of the string and $append is put at the end of the string. The resulting string ($text) becomes "" if the project variable is empty or not defined.

Example:

  clear:
          #$ ExpandGlue("OBJECTS","-del","\n\t-del ","");
Output (Windows NT):
  clear:
          -del hello.obj
          -del main.obj

ExpandList(var)

This function is suitable for expanding lists of files. Equivalent with ExpandGlue($var,""," \\\n\t\t","").

Example:

  OBJECTS = #$ ExpandList("OBJECTS");
Output:
  OBJECTS = hello.o \
	    main.o

ExpandPath(var,prepend,glue,append)

Similar to ExpandGlue, except that it splits the items on a semicolon instead of space (if the variable contains at least one semicolon).

IncludeTemplate(file)

Includes a template file. The ".t" extension is optional.

Example:

  #$ IncludeTemplate("mytemplate");

Now()

Sets $text to the current date and time.

Example:

  # Generated at #$ Now()
Output:
  # Generated at 12:58, 1996/11/19

Project(strings)

This is a powerful function for setting and reading project variables. Returns the resulting project variables (joined with space between).

Examples:

# Get a project variable:
    $s = Project("TEMPLATE");	    -> $s = "TEMPLATE"

# Set a project variable:
    Project("TEMPLATE = lib");	    -> TEMPLATE = lib
    Project("CONFIG =";)	    -> CONFIG empty

# Append to a project variable:
    Project("CONFIG = qt");	    -> CONFIG = qt
    Project("CONFIG += debug");	    -> CONFIG = qt debug

# Append to a project variable if it does not contain the value already:
    Project("CONFIG = qt release"); -> CONFIG = qt release
    Project("CONFIG *= qt");	    -> CONFIG = qt release
    Project("CONFIG *= opengl");    -> CONFIG = qt release opengl

# Subtract from a project variable:
    Project("THINGS = abc xyz");    -> THINGS = abc xyz
    Project("THINGS -= abc");	    -> THINGS = xyz

# Search/replace on a project variable:
    Project("CONFIG = tq opengl");  -> CONFIG = tq opengl
    Project("CONFIG /= s/tq/qt/");  -> CONFIG = qt opengl

# The operations can be performed on several project variables at a time.

    Project("TEMPLATE = app", "CONFIG *= opengl", "THINGS += klm");

ScanProject(file)

Scans a project file and stores the project variables and values in the global associative %project array.

StdInit()

Standard initialization of tmake. StdInit() should be called from one of the first lines in the template.

This function creates some new project variables:

The moc-related variables are created only if CONFIG contains "qt"

Substitute(string)

This function takes a string and substitutes any occurrence of $$var with the actual content of the variable. Returns the substituted string. Also sets $text.

Important: Use single quotes around the string, otherwise perl will expand any $vars it finds.

Example:

    Substitute('Project name: $$PROJECT, uses template $$TEMPLATE');
tmake-1.8/example/ 40775 773 773 0 7365566423 12526 5ustar aavitaavittmake-1.8/example/hello.cpp100444 773 773 4614 7175526477 14437 0ustar aavitaavit/**************************************************************************** ** $Id: hello.cpp,v 1.6 1999/08/24 13:08:11 hanord Exp $ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** ** This file is part of an example program for Qt. This example ** program may be used, distributed and modified without limitation. ** *****************************************************************************/ #include "hello.h" #include #include #include #include /* Constructs a Hello widget. Starts a 40 ms animation timer. */ Hello::Hello( const char *text, QWidget *parent, const char *name ) : QWidget(parent,name), t(text), b(0) { QTimer *timer = new QTimer(this); connect( timer, SIGNAL(timeout()), SLOT(animate()) ); timer->start( 40 ); resize( 260, 130 ); } /* This private slot is called each time the timer fires. */ void Hello::animate() { b = (b + 1) & 15; repaint( FALSE ); } /* Handles mouse button release events for the Hello widget. We emit the clicked() signal when the mouse is released inside the widget. */ void Hello::mouseReleaseEvent( QMouseEvent *e ) { if ( rect().contains( e->pos() ) ) emit clicked(); } /* Handles paint events for the Hello widget. Flicker-free update. The text is first drawn in the pixmap and the pixmap is then blt'ed to the screen. */ void Hello::paintEvent( QPaintEvent * ) { static int sin_tbl[16] = { 0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38}; if ( t.isEmpty() ) return; // 1: Compute some sizes, positions etc. QFontMetrics fm = fontMetrics(); int w = fm.width(t) + 20; int h = fm.height() * 2; int pmx = width()/2 - w/2; int pmy = height()/2 - h/2; // 2: Create the pixmap and fill it with the widget's background QPixmap pm( w, h ); pm.fill( this, pmx, pmy ); // 3: Paint the pixmap. Cool wave effect QPainter p; int x = 10; int y = h/2 + fm.descent(); int i = 0; p.begin( &pm ); p.setFont( font() ); while ( !t[i].isNull() ) { int i16 = (b+i) & 15; p.setPen( QColor((15-i16)*16,255,255,QColor::Hsv) ); p.drawText( x, y-sin_tbl[i16]*h/800, t.mid(i,1), 1 ); x += fm.width( t[i] ); i++; } p.end(); // 4: Copy the pixmap to the Hello widget bitBlt( this, pmx, pmy, &pm ); } tmake-1.8/example/hello.h100444 773 773 1445 7175526477 14103 0ustar aavitaavit/**************************************************************************** ** $Id: hello.h,v 1.5 1999/08/24 13:08:12 hanord Exp $ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** ** This file is part of an example program for Qt. This example ** program may be used, distributed and modified without limitation. ** *****************************************************************************/ #ifndef HELLO_H #define HELLO_H #include class Hello : public QWidget { Q_OBJECT public: Hello( const char *text, QWidget *parent=0, const char *name=0 ); signals: void clicked(); protected: void mouseReleaseEvent( QMouseEvent * ); void paintEvent( QPaintEvent * ); private slots: void animate(); private: QString t; int b; }; #endif tmake-1.8/example/hello.pro100444 773 773 163 7175526477 14430 0ustar aavitaavitTEMPLATE = app CONFIG = qt warn_on release HEADERS = hello.h SOURCES = hello.cpp \ main.cpp TARGET = hello tmake-1.8/example/main.cpp100444 773 773 2137 7175526477 14256 0ustar aavitaavit/**************************************************************************** ** $Id: main.cpp,v 1.4 1999/08/24 13:08:14 hanord Exp $ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** ** This file is part of an example program for Qt. This example ** program may be used, distributed and modified without limitation. ** *****************************************************************************/ #include "hello.h" #include /* The program starts here. It parses the command line and builds a message string to be displayed by the Hello widget. */ int main( int argc, char **argv ) { QApplication a(argc,argv); QString s; for ( int i=1; i suggests -h not -soname TMAKE_LFLAGS_SONAME = -Wl,-h, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/dynix-g++/ 40775 773 773 0 7365566423 13346 5ustar aavitaavittmake-1.8/lib/dynix-g++/app.t100444 773 773 105 7362431266 14351 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/dynix-g++/lib.t100444 773 773 105 7362431266 14337 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/dynix-g++/subdirs.t100444 773 773 111 7362431266 15241 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/dynix-g++/tmake.conf100444 773 773 2421 7362431266 15377 0ustar aavitaavit# # $Id$ # # tmake configuration for dynix-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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = 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/include/X11 TMAKE_LIBDIR_X11 = /usr/lib/X11 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /usr/include/X11 TMAKE_LIBDIR_OPENGL = /usr/lib/X11 TMAKE_LINK = g++ #TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = #TMAKE_LFLAGS_SHLIB = -shared #TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/freebsd-g++/ 40775 773 773 0 7365566423 13625 5ustar aavitaavittmake-1.8/lib/freebsd-g++/app.t100444 773 773 105 7175526500 14626 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/freebsd-g++/lib.t100444 773 773 105 7175526500 14614 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/freebsd-g++/subdirs.t100444 773 773 111 7175526500 15516 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/freebsd-g++/tmake.conf100444 773 773 3154 7362431266 15662 0ustar aavitaavit# # $Id$ # # tmake configuration for freebsd-g++ # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = gcc TMAKE_CFLAGS = -pipe -fno-exceptions TMAKE_CFLAGS_WARN_ON = -Wall -W TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = /usr/local/include TMAKE_LIBDIR = /usr/local/lib 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 = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = -pthread TMAKE_RPATH = -Wl,-rpath, # soname does not work on fbsd 2.x TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_X11SM = -lICE -lSM TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hpux-acc/ 40775 773 773 0 7365566424 13352 5ustar aavitaavittmake-1.8/lib/hpux-acc/app.t100444 773 773 105 7175526500 14352 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hpux-acc/lib.t100444 773 773 105 7175526500 14340 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hpux-acc/subdirs.t100444 773 773 111 7175526500 15242 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hpux-acc/tmake.conf100444 773 773 3161 7362431266 15404 0ustar aavitaavit# # $Id$ # # tmake configuration for hpux-acc # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -Ae +DAportable +DS1.1 -w TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O +Onolimit TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = +Z TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE TMAKE_CXX = aCC TMAKE_CXXFLAGS = -Aa +DAportable -w -D__STRICT_ANSI__ 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/include/X11R6 TMAKE_LIBDIR_X11 = /usr/lib/X11R6 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include TMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib TMAKE_LINK = aCC TMAKE_LINK_SHLIB = aCC TMAKE_LFLAGS = +DAportable TMAKE_LFLAGS_RELEASE = -O -s TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared TMAKE_LFLAGS_SONAME = -Wl,+h, TMAKE_LFLAGS_THREAD = TMAKE_HPUX_SHLIB = 1 TMAKE_LIBS = -lm TMAKE_LIBS_X11 = -lXext -lX11 TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_LIBS_YACC = -ly TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hpux-cc/ 40775 773 773 0 7365566424 13211 5ustar aavitaavittmake-1.8/lib/hpux-cc/app.t100444 773 773 105 7175526500 14211 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hpux-cc/lib.t100444 773 773 105 7175526500 14177 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hpux-cc/subdirs.t100444 773 773 111 7175526500 15101 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hpux-cc/tmake.conf100444 773 773 3241 7362431266 15242 0ustar aavitaavit# # $Id$ # # tmake configuration for hpux-cc # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -Ae +DA1.1e +DS1.1 -w TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = +Z TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE TMAKE_CXX = CC TMAKE_CXXFLAGS = +DA1.1e +DS1.1 -w +a1 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/include/X11R6 TMAKE_LIBDIR_X11 = /usr/lib/X11R6 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include TMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib TMAKE_LINK = CC TMAKE_LINK_SHLIB = CC # CC generates template code during linking, and so needs -I's TMAKE_LFLAGS = +DA1.1e +DS1.1 -L/usr/lib -I$$TMAKE_INCDIR_X11 -I$$TMAKE_INCDIR_QT TMAKE_LFLAGS_RELEASE = -O -s TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -b TMAKE_LFLAGS_SONAME = -Wl,+h, TMAKE_LFLAGS_THREAD = TMAKE_HPUX_SHLIB = 1 TMAKE_LIBS = -lm TMAKE_LIBS_X11 = -lXext -lX11 TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hpux-g++/ 40775 773 773 0 7365566424 13200 5ustar aavitaavittmake-1.8/lib/hpux-g++/app.t100444 773 773 105 7175526500 14200 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hpux-g++/lib.t100444 773 773 105 7175526500 14166 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hpux-g++/subdirs.t100444 773 773 111 7175526500 15070 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hpux-g++/tmake.conf100444 773 773 3113 7362431266 15227 0ustar aavitaavit# # $Id$ # # tmake configuration for hpux-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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLGAS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE 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_CXXFLAGS_THREAD = $$TMAKE_CFLGAS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/include/X11R6 TMAKE_LIBDIR_X11 = /usr/lib/X11R6 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include TMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -fPIC -shared TMAKE_LFLAGS_SONAME = -Wl,+h, TMAKE_LFLAGS_THREAD = TMAKE_HPUX_SHLIB = 1 TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hpux-n64/ 40775 773 773 0 7365566424 13233 5ustar aavitaavittmake-1.8/lib/hpux-n64/app.t100444 773 773 105 7175526500 14233 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hpux-n64/lib.t100444 773 773 105 7175526500 14221 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hpux-n64/subdirs.t100444 773 773 111 7175526500 15123 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hpux-n64/tmake.conf100444 773 773 3211 7365566356 15275 0ustar aavitaavit# # $Id$ # # tmake configuration for hpux-n64 # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -Ae +DA2.0W -w -D__STRICT_ANSI__ TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O +Osize TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = +Z TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE TMAKE_CXX = aCC TMAKE_CXXFLAGS = -Aa +DA2.0W -w -D__STRICT_ANSI__ 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/include/X11R6 TMAKE_LIBDIR_X11 = /usr/lib/X11R6/pa20_64 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include TMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/pa20_64 /usr/contrib/X11R6/lib/pa20_64 TMAKE_LINK = aCC TMAKE_LINK_SHLIB = aCC TMAKE_LFLAGS = +DA2.0W +DS2.0 TMAKE_LFLAGS_RELEASE = -s TMAKE_LFLAGS_DEBUG = -Wl,+tools -g TMAKE_LFLAGS_SHLIB = -b TMAKE_LFLAGS_SONAME = -Wl,+h, TMAKE_LFLAGS_THREAD = TMAKE_HPUX_SHLIB = 3 TMAKE_LIBS = -lm TMAKE_LIBS_X11 = -lXext -lX11 TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_YACC = -ly TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hpux-o64/ 40775 773 773 0 7365566424 13234 5ustar aavitaavittmake-1.8/lib/hpux-o64/app.t100444 773 773 105 7175526500 14234 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hpux-o64/lib.t100444 773 773 105 7175526500 14222 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hpux-o64/subdirs.t100444 773 773 111 7175526500 15124 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hpux-o64/tmake.conf100444 773 773 3156 7362431266 15272 0ustar aavitaavit# # $Id$ # # tmake configuration for hpux-o64 # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -Ae +DA2.0 +DS2.0 -w -D__STRICT_ANSI__ TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O +Oentrysched +Onolimit TMAKE_CFLAGS_DEBUG = -y -g TMAKE_CFLAGS_SHLIB = +Z TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE TMAKE_CXX = aCC TMAKE_CXXFLAGS = +DA2.0 +DS2.0 -w -D__STRICT_ANSI__ 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 = -g TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC TMAKE_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/include/X11R6 TMAKE_LIBDIR_X11 = /usr/lib/X11R6 TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include TMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib TMAKE_LINK = aCC TMAKE_LINK_SHLIB = aCC TMAKE_LFLAGS = +DA2.0 +DS2.0 TMAKE_LFLAGS_RELEASE = -O -s TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -b TMAKE_LFLAGS_SONAME = -Wl,+h, TMAKE_LFLAGS_THREAD = TMAKE_HPUX_SHLIB = 2 TMAKE_LIBS = -lm TMAKE_LIBS_X11 = -lXext -lX11 TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_YACC = -ly TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/hurd-g++/ 40775 773 773 0 7365566424 13156 5ustar aavitaavittmake-1.8/lib/hurd-g++/app.t100444 773 773 105 7175526500 14156 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/hurd-g++/lib.t100444 773 773 105 7175526500 14144 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/hurd-g++/subdirs.t100444 773 773 111 7175526500 15046 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/hurd-g++/tmake.conf100444 773 773 2672 7362431266 15216 0ustar aavitaavit# # $Id$ # # tmake configuration for hurd-g++ # # Submitted by uch@nop.or.jp as "gnu-g++". Renamed to "hurd-g++" # because people were confusing gnu with linux. # 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 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 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/irix-64/ 40775 773 773 0 7365566424 13044 5ustar aavitaavittmake-1.8/lib/irix-64/app.t100444 773 773 105 7175526500 14044 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/irix-64/lib.t100444 773 773 105 7175526500 14032 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/irix-64/subdirs.t100444 773 773 111 7175526500 14734 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/irix-64/tmake.conf100444 773 773 3016 7362431266 15075 0ustar aavitaavit# # $Id$ # # tmake configuration for irix-64 # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -64 -woff 1021,1209,1233,1314,1355,1375,1506 TMAKE_CFLAGS_WARN_ON = -fullwarn TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = TMAKE_CFLAGS_YACC = -woff 1110,1174,3262 TMAKE_CFLAGS_THREAD = TMAKE_CXX = CC TMAKE_CXXFLAGS = -64 -LANG:ansi-for-init-scope=ON:bool=ON -woff 1021,1209,1233,1314,1355,1375,1506 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_CXXFLAGS_THREAD = TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = TMAKE_LIBDIR_X11 = TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC TMAKE_LINK_SHLIB = CC TMAKE_LFLAGS = -64 TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_RPATH = -Wl,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_CLEAN = -r so_locations ii_files TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/irix-g++/ 40775 773 773 0 7365566424 13167 5ustar aavitaavittmake-1.8/lib/irix-g++/app.t100444 773 773 105 7175526500 14167 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/irix-g++/lib.t100444 773 773 105 7175526500 14155 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/irix-g++/subdirs.t100444 773 773 111 7175526500 15057 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/irix-g++/tmake.conf100444 773 773 2626 7362431266 15226 0ustar aavitaavit# # $Id$ # # tmake configuration for irix-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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLAGS_THREAD = 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_CXXFLAGS_THREAD = TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = TMAKE_LIBDIR_X11 = TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_RPATH = -Wl,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = ranlib TMAKE_CLEAN = so_locations TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/irix-n32/ 40775 773 773 0 7365566425 13216 5ustar aavitaavittmake-1.8/lib/irix-n32/app.t100444 773 773 105 7175526500 14215 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/irix-n32/lib.t100444 773 773 105 7175526500 14203 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/irix-n32/subdirs.t100444 773 773 111 7175526500 15105 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/irix-n32/tmake.conf100444 773 773 3022 7362431266 15243 0ustar aavitaavit# # $Id$ # # tmake configuration for irix-n32 # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506 TMAKE_CFLAGS_WARN_ON = -fullwarn TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = TMAKE_CFLAGS_YACC = -woff 1110,1174,3262 TMAKE_CFLAGS_THREAD = TMAKE_CXX = CC TMAKE_CXXFLAGS = -n32 -LANG:ansi-for-init-scope=ON:bool=ON -woff 1021,1209,1233,1314,1355,1375,1506 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_CXXFLAGS_THREAD = TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = TMAKE_LIBDIR_X11 = TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC TMAKE_LINK_SHLIB = CC TMAKE_LFLAGS = -n32 TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_RPATH = -Wl,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_CLEAN = -r so_locations ii_files TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/irix-o32/ 40775 773 773 0 7365566425 13217 5ustar aavitaavittmake-1.8/lib/irix-o32/app.t100444 773 773 105 7175526500 14216 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/irix-o32/lib.t100444 773 773 105 7175526500 14204 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/irix-o32/subdirs.t100444 773 773 111 7175526500 15106 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/irix-o32/tmake.conf100444 773 773 2661 7362431266 15254 0ustar aavitaavit# # $Id$ # # tmake configuration for irix-o32 # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = -o32 -woff 3203,3260,3672 TMAKE_CFLAGS_WARN_ON = -fullwarn TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 -Olimit 3000 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = TMAKE_CFLAGS_YACC = -woff 3203,3262 TMAKE_CFLAGS_THREAD = TMAKE_CXX = CC 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_CXXFLAGS_THREAD = TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = TMAKE_LIBDIR_X11 = TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC TMAKE_LINK_SHLIB = CC TMAKE_LFLAGS = -o32 TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_RPATH = -Wl,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_CLEAN = -r so_locations ii_files TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/linux-cxx/ 40775 773 773 0 7365566425 13602 5ustar aavitaavittmake-1.8/lib/linux-cxx/app.t100444 773 773 105 7175526500 14601 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/linux-cxx/lib.t100444 773 773 105 7175526500 14567 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/linux-cxx/subdirs.t100444 773 773 111 7175526500 15471 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/linux-cxx/tmake.conf100444 773 773 2427 7362431266 15637 0ustar aavitaavit# # $Id$ # # tmake configuration for linux-cxx (Compaq C++ for Linux) # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = ccc TMAKE_CFLAGS = -w TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = TMAKE_CFLAGS_YACC = -Olimit 1000 TMAKE_CXX = cxx 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 = cxx TMAKE_LINK_SHLIB = cxx TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/linux-g++/ 40775 773 773 0 7365566425 13354 5ustar aavitaavittmake-1.8/lib/linux-g++/app.t100444 773 773 105 7175526500 14353 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/linux-g++/lib.t100444 773 773 105 7175526500 14341 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/linux-g++/subdirs.t100444 773 773 111 7175526500 15243 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/linux-g++/tmake.conf100444 773 773 3036 7362431266 15406 0ustar aavitaavit# # $Id$ # # tmake configuration for linux-g++ # MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = gcc TMAKE_CFLAGS = -pipe TMAKE_CFLAGS_WARN_ON = -Wall -W TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLAGS_THREAD = -D_REENTRANT 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD 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 = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_LFLAGS_THREAD = TMAKE_RPATH = -Wl,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_X11SM = -lICE -lSM TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lpthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/linux-icc/ 40775 773 773 0 7365566425 13536 5ustar aavitaavittmake-1.8/lib/linux-icc/app.t100444 773 773 105 7362431266 14537 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/linux-icc/lib.t100444 773 773 105 7362431266 14525 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/linux-icc/subdirs.t100444 773 773 111 7362431266 15427 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/linux-icc/tmake.conf100444 773 773 2742 7365566356 15607 0ustar aavitaavit# # $Id$ # # tmake configuration for linux-kcc # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = icc TMAKE_CFLAGS = TMAKE_CFLAGS_WARN_ON = -w1 TMAKE_CFLAGS_WARN_OFF = -w TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -KPIC TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -D_REENTRANT TMAKE_CXX = icpc 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD 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 = icpc TMAKE_LINK_SHLIB = icpc TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, TMAKE_LFLAGS_THREAD = TMAKE_RPATH = -Qoption,ld,-rpath, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_X11SM = -lICE -lSM TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/linux-kcc/ 40775 773 773 0 7365566425 13540 5ustar aavitaavittmake-1.8/lib/linux-kcc/app.t100444 773 773 105 7175526500 14537 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/linux-kcc/lib.t100444 773 773 105 7175526500 14525 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/linux-kcc/subdirs.t100444 773 773 111 7175526500 15427 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/linux-kcc/tmake.conf100444 773 773 3036 7362431266 15572 0ustar aavitaavit# # $Id$ # # tmake configuration for linux-kcc # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = KCC TMAKE_CFLAGS = --c --display_error_number --backend -pipe TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = -w TMAKE_CFLAGS_RELEASE = +K2 -O2 TMAKE_CFLAGS_DEBUG = +K0 TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = --diag_suppress 111,177 TMAKE_CFLAGS_THREAD = --thread_safe TMAKE_CXX = KCC TMAKE_CXXFLAGS = --display_error_number --backend -pipe 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD 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 = KCC TMAKE_LINK_SHLIB = KCC TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = --soname $(TARGET1) TMAKE_LFLAGS_SONAME = TMAKE_LFLAGS_THREAD = --thread_safe TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_X11SM = -lICE -lSM TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/macx-g++/ 40775 773 773 0 7365566425 13145 5ustar aavitaavittmake-1.8/lib/macx-g++/app.t100444 773 773 105 7362431266 14146 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/macx-g++/lib.t100444 773 773 105 7362431266 14134 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/macx-g++/subdirs.t100444 773 773 111 7362431266 15036 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/macx-g++/tmake.conf100444 773 773 3572 7362431266 15204 0ustar aavitaavit# # $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 tmake-1.8/lib/netbsd-g++/ 40775 773 773 0 7365566426 13475 5ustar aavitaavittmake-1.8/lib/netbsd-g++/app.t100444 773 773 105 7175526501 14474 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/netbsd-g++/lib.t100444 773 773 105 7175526501 14462 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/netbsd-g++/subdirs.t100444 773 773 111 7175526501 15364 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/netbsd-g++/tmake.conf100444 773 773 2717 7362431266 15533 0ustar aavitaavit# # $Id$ # # tmake configuration for netbsd-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 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 = ld TMAKE_LINK_SHLIB_CMD = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) \ `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | \ tsort` $(LIBS) TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -Bshareable TMAKE_LFLAGS_SONAME = TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/openbsd-g++/ 40775 773 773 0 7365566426 13650 5ustar aavitaavittmake-1.8/lib/openbsd-g++/app.t100444 773 773 105 7175526501 14647 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/openbsd-g++/lib.t100444 773 773 105 7175526501 14635 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/openbsd-g++/subdirs.t100444 773 773 111 7175526501 15537 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/openbsd-g++/tmake.conf100444 773 773 2725 7362431266 15705 0ustar aavitaavit# # $Id$ # # tmake configuration for openbsd-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 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 = ld TMAKE_LINK_SHLIB_CMD = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) \ `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | \ tsort` $(LIBS) TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -Bshareable TMAKE_LFLAGS_SONAME = TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar q TMAKE_RANLIB = ranlib TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/osf1-cxx/ 40775 773 773 0 7365566426 13314 5ustar aavitaavittmake-1.8/lib/osf1-cxx/app.t100444 773 773 105 7175526501 14313 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/osf1-cxx/lib.t100444 773 773 105 7175526501 14301 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/osf1-cxx/subdirs.t100444 773 773 111 7175526501 15203 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/osf1-cxx/tmake.conf100444 773 773 2664 7362431266 15353 0ustar aavitaavit# # $Id$ # # tmake configuration for osf1-cxx (Tru64 UNIX) # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cxx TMAKE_CFLAGS = TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = TMAKE_CFLAGS_YACC = -Olimit 1000 TMAKE_CFLAGS_THREAD = -pthread TMAKE_CXX = cxx TMAKE_CXXFLAGS = -x cxx $$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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD 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 = cxx TMAKE_LINK_SHLIB = cxx TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -shared TMAKE_LFLAGS_THREAD = -pthread TMAKE_LFLAGS_SONAME = < suggests avoiding $LD_LIBRARY_PATH: TMAKE_LINK_SHLIB = CC -R$(QTDIR)/lib:/usr/openwin/lib TMAKE_LFLAGS = -xarch=v9 TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G -h $(TARGET1) TMAKE_LFLAGS_SONAME = TMAKE_LFLAGS_THREAD = -mt TMAKE_RPATH = -R TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm -lresolv -lsocket -lnsl TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = CC -xar -o TMAKE_RANLIB = TMAKE_CLEAN = -r Templates.DB TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/solaris-cc-gcc/ 40775 773 773 0 7365566431 14431 5ustar aavitaavittmake-1.8/lib/solaris-cc-gcc/app.t100444 773 773 105 7175526502 15435 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/solaris-cc-gcc/lib.t100444 773 773 105 7175526502 15423 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/solaris-cc-gcc/subdirs.t100444 773 773 111 7175526502 16325 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/solaris-cc-gcc/tmake.conf100444 773 773 3122 7362431266 16462 0ustar aavitaavit# # $Id$ # # tmake configuration for solaris-cc-gcc # (Using SunPro CC for C++ code and gcc for C code.) # 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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLAGS_THREAD = -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS TMAKE_CXX = CC TMAKE_CXXFLAGS = TMAKE_CXXFLAGS_WARN_ON = TMAKE_CXXFLAGS_WARN_OFF = -w TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG TMAKE_CXXFLAGS_SHLIB = -KPIC TMAKE_CXXFLAGS_YACC = TMAKE_CXXFLAGS_THREAD = -mt -D_POSIX_PTHREAD_SEMANTICS TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/openwin/include TMAKE_LIBDIR_X11 = /usr/openwin/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC # Jan Wortelboer suggests avoiding $LD_LIBRARY_PATH: TMAKE_LINK_SHLIB = CC -R$(QTDIR)/lib:/usr/openwin/lib TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G -h $(TARGET1) TMAKE_LFLAGS_SONAME = TMAKE_LFLAGS_THREAD = -mt TMAKE_RPATH = -R TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = CC -xar -o TMAKE_RANLIB = TMAKE_CLEAN = -r Templates.DB TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/solaris-cc/ 40775 773 773 0 7365566431 13677 5ustar aavitaavittmake-1.8/lib/solaris-cc/app.t100444 773 773 105 7175526502 14703 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/solaris-cc/lib.t100444 773 773 105 7175526502 14671 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/solaris-cc/subdirs.t100444 773 773 111 7175526502 15573 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/solaris-cc/tmake.conf100444 773 773 3052 7362431266 15732 0ustar aavitaavit# # $Id$ # # tmake configuration for solaris-cc # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = -w TMAKE_CFLAGS_RELEASE = -O TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -KPIC TMAKE_CFLAGS_YACC = TMAKE_CFLAGS_THREAD = -mt -D_POSIX_PTHREAD_SEMANTICS TMAKE_CXX = CC TMAKE_CXXFLAGS = $$TMAKE_CFLAGS TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF TMAKE_CXXFLAGS_RELEASE = -O2 TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC TMAKE_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/openwin/include TMAKE_LIBDIR_X11 = /usr/openwin/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC # Jan Wortelboer suggests avoiding $LD_LIBRARY_PATH: TMAKE_LINK_SHLIB = CC -R$(QTDIR)/lib:/usr/openwin/lib TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G -h $(TARGET1) TMAKE_LFLAGS_SONAME = TMAKE_LFLAGS_THREAD = -mt TMAKE_RPATH = -R TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = CC -xar -o TMAKE_RANLIB = TMAKE_CLEAN = -r Templates.DB TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/solaris-g++/ 40775 773 773 0 7365566431 13666 5ustar aavitaavittmake-1.8/lib/solaris-g++/app.t100444 773 773 105 7175526502 14672 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/solaris-g++/lib.t100444 773 773 105 7175526502 14660 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/solaris-g++/subdirs.t100444 773 773 111 7175526502 15562 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/solaris-g++/tmake.conf100444 773 773 3011 7362431266 15714 0ustar aavitaavit# # $Id$ # # tmake configuration for solaris-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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -fPIC TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CFLAGS_THREAD = -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 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_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD TMAKE_INCDIR = TMAKE_LIBDIR = TMAKE_INCDIR_X11 = /usr/openwin/include TMAKE_LIBDIR_X11 = /usr/openwin/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHAPP = -shared TMAKE_LFLAGS_SHLIB = -shared -h $(TARGET1) TMAKE_LFLAGS_SONAME = TMAKE_LFLAGS_THREAD = TMAKE_RPATH = -Wl,-R, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm -lresolv -lsocket -lnsl TMAKE_LIBS_QT = -lqt TMAKE_LIBS_QT_THREAD = -lqt-mt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_LIBS_THREAD = -lthread TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/sunos-g++/ 40775 773 773 0 7365566431 13361 5ustar aavitaavittmake-1.8/lib/sunos-g++/app.t100444 773 773 105 7175526502 14365 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/sunos-g++/lib.t100444 773 773 105 7175526502 14353 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/sunos-g++/subdirs.t100444 773 773 111 7175526502 15255 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/sunos-g++/tmake.conf100444 773 773 2424 7362431266 15416 0ustar aavitaavit# # $Id$ # # tmake configuration for sunos-g++ (SunOS 4, not Solaris) # 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 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/openwin/include TMAKE_LIBDIR_X11 = /usr/openwin/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -fPIC -shared TMAKE_LFLAGS_SONAME = TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = ranlib TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/ultrix-g++/ 40775 773 773 0 7365566431 13541 5ustar aavitaavittmake-1.8/lib/ultrix-g++/app.t100444 773 773 105 7175526502 14545 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/ultrix-g++/lib.t100444 773 773 105 7175526502 14533 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/ultrix-g++/subdirs.t100444 773 773 111 7175526502 15435 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/ultrix-g++/tmake.conf100444 773 773 2432 7362431266 15575 0ustar aavitaavit# # $Id$ # # tmake configuration for ultrix-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 TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = 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 = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = #TMAKE_LFLAGS_SHLIB = -shared #TMAKE_LFLAGS_SONAME = -Wl,-soname, TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/unix/ 40775 773 773 0 7365566431 12623 5ustar aavitaavittmake-1.8/lib/unix/app.t100444 773 773 323 7175526502 13631 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Unix applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/unix/generic.t100444 773 773 32763 7362431266 14542 0ustar aavitaavit#! #! This is a tmake template for building UNIX applications or libraries. #! #${ Project('TMAKE_LIBS += $$LIBS'); if ( !Project("INTERFACE_DECL_PATH") ) { Project('INTERFACE_DECL_PATH = .' ); } if ( Project("TMAKE_LIB_FLAG") && !Config("staticlib") ) { Project('CONFIG *= dll'); } elsif ( Project("TMAKE_APP_FLAG") || Config("dll") ) { Project('CONFIG -= staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("debug") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Project("TMAKE_LIBDIR") ) { Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR'); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG *= x11lib'); if ( Config("opengl") ) { Project('CONFIG *= x11inc'); } } if ( Config("x11") ) { Project('CONFIG *= x11lib'); Project('CONFIG *= x11inc'); } if ( Config("thread") ) { Project('DEFINES += QT_THREAD_SUPPORT'); Project("TMAKE_CFLAGS_THREAD") && Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_THREAD'); Project("TMAKE_CXXFLAGS_THREAD") && Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_THREAD'); AddIncludePath(Project("TMAKE_INCDIR_THREAD")); Project('TMAKE_LIBS *= $$TMAKE_LIBS_THREAD'); Project("TMAKE_LFLAGS_THREAD") && Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_THREAD'); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( !(((Project("TARGET") eq "qt") || (Project("TARGET") eq "qt-mt") || (Project("TARGET") eq "qte") || (Project("TARGET") eq "qte-mt")) && Project("TMAKE_LIB_FLAG")) ) { Project("TMAKE_LIBDIR_QT") && Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_QT'); if (Config("thread") && Project("TMAKE_LIBS_QT_THREAD")) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_THREAD'); } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); } } } if ( Config("opengl") ) { AddIncludePath(Project("TMAKE_INCDIR_OPENGL")); Project("TMAKE_LIBDIR_OPENGL") && Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_OPENGL'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("x11inc") ) { AddIncludePath(Project("TMAKE_INCDIR_X11")); } if ( Config("x11lib") ) { Project("TMAKE_LIBDIR_X11") && Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_X11'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_X11'); } if ( Config("moc") ) { $moc_aware = 1; } if ( !Project("TMAKE_RUN_CC") ) { Project('TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src'); } if ( !Project("TMAKE_RUN_CC_IMP") ) { Project('TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<'); } if ( !Project("TMAKE_RUN_CXX") ) { Project('TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src'); } if ( !Project("TMAKE_RUN_CXX_IMP") ) { Project('TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<'); } Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS'); if ( Config("embedded") && Project("PRECOMPH") ) { Project('SOURCES += allmoc.cpp'); $project{'HEADERS_ORIG'} = Project('HEADERS'); $project{'HEADERS'} = ""; } StdInit(); $project{"VERSION"} || ($project{"VERSION"} = "1.0.0"); ($project{"VER_MAJ"},$project{"VER_MIN"},$project{"VER_PAT"}) = $project{"VERSION"} =~ /(\d+)\.(\d+)\.(\d+)/; if ( !defined($project{"VER_PAT"}) ) { ($project{"VER_MAJ"},$project{"VER_MIN"}) = $project{"VERSION"} =~ /(\d+)\.(\d+)/; $project{"VER_PAT"} = "0"; } if ( !defined($project{"VER_MIN"}) ) { ($project{"VER_MAJ"}) = $project{"VERSION"} =~ /(\d+)/; $project{"VER_MIN"} = "0"; $project{"VER_PAT"} = "0"; } Project('DESTDIR_TARGET = $(TARGET)'); if ( Project("TMAKE_APP_FLAG") ) { if ( Config("dll") ) { Project('TARGET = $$TARGET.so'); Project("TMAKE_LFLAGS_SHAPP") || ($project{"TMAKE_LFLAGS_SHAPP"} = $project{"TMAKE_LFLAGS_SHLIB"}); Project("TMAKE_LFLAGS_SONAME") && ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET"}); } $project{"TARGET"} = $project{"DESTDIR"} . $project{"TARGET"}; } elsif ( Config("staticlib") ) { $project{"TARGET"} = $project{"DESTDIR"} . "lib" . $project{"TARGET"} . ".a"; Project("TMAKE_AR_CMD") || Project('TMAKE_AR_CMD = $(AR) $(TARGET) $(OBJECTS) $(OBJMOC)'); } else { $project{"TARGETA"} = $project{"DESTDIR"} . "lib" . $project{"TARGET"} . ".a"; if ( Project("TMAKE_AR_CMD") ) { $project{"TMAKE_AR_CMD"} =~ s/\(TARGET\)/\(TARGETA\)/g; } else { Project('TMAKE_AR_CMD = $(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)'); } if ( $project{"TMAKE_HPUX_SHLIB"} ) { $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".sl"; $project{"TARGET_x"} = "lib" . $project{"TARGET"} . "." . $project{"VER_MAJ"}; $project{"TARGET"} = $project{"TARGET_x"}; } elsif ( $project{"TMAKE_AIX_SHLIB"} ) { $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".a"; $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"}; $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"} . "." . $project{"VER_MIN"}; $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"} . "." . $project{"VER_MIN"} . "." . $project{"VER_PAT"}; $project{"TARGET"} = $project{"TARGET_x.y.z"}; } else { $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".so"; $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"}; $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"} . "." . $project{"VER_MIN"}; $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . $project{"VER_MAJ"} . "." . $project{"VER_MIN"} . "." . $project{"VER_PAT"}; $project{"TARGET"} = $project{"TARGET_x.y.z"}; } $project{"TMAKE_LN_SHLIB"} = "-ln -s"; if ( $project{"DESTDIR"} ) { $project{"DESTDIR_TARGET"} = $project{"DESTDIR"} . $project{"TARGET"}; } Project("TMAKE_LFLAGS_SONAME") && ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET_x"}); $project{"TMAKE_LINK_SHLIB_CMD"} || ($project{"TMAKE_LINK_SHLIB_CMD"} = '$(LINK) $(LFLAGS) -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)'); } if ( Config("dll") ) { Project('TMAKE_CFLAGS *= $$TMAKE_CFLAGS_SHLIB' ); Project('TMAKE_CXXFLAGS *= $$TMAKE_CXXFLAGS_SHLIB' ); if ( Project("TMAKE_APP_FLAG") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHAPP'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHLIB $$TMAKE_LFLAGS_SONAME'); } } #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH","-I"," -I",""); #$ Config("staticlib") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = $(SUBLIBS) #$ Expand("TMAKE_LIBDIR_FLAGS"); Expand("TMAKE_LIBS"); #$ Config("staticlib") && EnableOutput(); #$ Project("TMAKE_LIB_FLAG") || DisableOutput(); AR = #$ Expand("TMAKE_AR"); RANLIB = #$ Expand("TMAKE_RANLIB"); #$ Project("TMAKE_LIB_FLAG") || EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); UIC = #$ Expand("TMAKE_UIC"); TAR = #$ Expand("TMAKE_TAR"); GZIP = #$ Expand("TMAKE_GZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); INTERFACES = #$ ExpandList("INTERFACES"); UICDECLS = #$ ExpandList("UICDECLS"); UICIMPLS = #$ ExpandList("UICIMPLS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ Expand("TARGET"); #$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && DisableOutput(); TARGETA = #$ Expand("TARGETA"); #$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); TARGETD = #$ Expand("TARGET_x.y.z"); TARGET0 = #$ Expand("TARGET_"); TARGET1 = #$ Expand("TARGET_x"); TARGET2 = #$ Expand("TARGET_x.y"); #$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); #$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); TARGETD = #$ Expand("TARGET_x"); TARGET0 = #$ Expand("TARGET_"); #$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); #$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && EnableOutput(); INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .C .c .cpp.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .C.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.o: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules #${ if ( Project("SUBLIBS") ) { $text = "SUBLIBS="; for $m ( split / /, Project("SUBLIBS") ) { $text .= "tmp/lib$m.a "; } $text .= "\n"; } #$} #$ Project("TMAKE_APP_FLAG") || DisableOutput(); all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) #$ Project("TMAKE_APP_FLAG") || EnableOutput(); #$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); all: #$ ExpandGlue("ALL_DEPS",""," ",""); Expand("DESTDIR_TARGET"); #$ Substitute('$$DESTDIR_TARGET: $(OBJECTS) $(OBJMOC) $(SUBLIBS) $$TARGETDEPS'); #$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); -rm -f $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) #$ Expand("TMAKE_LINK_SHLIB_CMD"); #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET1)"); #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET2)"); #$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); #$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); -rm -f $(TARGET) $(TARGET0) #$ Expand("TMAKE_LINK_SHLIB_CMD"); #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); #$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); #${ $d = Project("DESTDIR"); if ( $d ) { $d =~ s-([^/])$-$1/-; if ( Project("TMAKE_HPUX_SHLIB") ) { $text = "-rm -f $d\$(TARGET)\n\t" . "-rm -f $d\$(TARGET0)\n\t" . "-mv \$(TARGET) \$(TARGET0) $d"; } else { $text = "-rm -f $d\$(TARGET)\n\t" . "-rm -f $d\$(TARGET0)\n\t" . "-rm -f $d\$(TARGET1)\n\t" . "-rm -f $d\$(TARGET2)\n\t" . "-mv \$(TARGET) \$(TARGET0) \$(TARGET1) \$(TARGET2) $d"; } } #$} staticlib: $(TARGETA) $(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); -rm -f $(TARGETA) #$ Expand("TMAKE_AR_CMD"); #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGETA)"); #$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); #$ Config("staticlib") || DisableOutput(); all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; staticlib: $(TARGET) $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); -rm -f $(TARGET) #$ Expand("TMAKE_AR_CMD"); #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGET)"); #$ Config("staticlib") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(TAR) $$PROJECT.tar $$PROJECT.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)'); #$ Substitute('$(GZIP) $$PROJECT.tar'); clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) #$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); -rm -f $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) #$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); #$ ExpandGlue("TMAKE_CLEAN","-rm -f "," ",""); -rm -f *~ core #$ ExpandGlue("CLEAN_FILES","-rm -f "," ",""); ####### Sub-libraries #${ if ( Project("SUBLIBS") ) { for $m ( split / /, Project("SUBLIBS") ) { $text .= "tmp/lib$m.a:\n\t"; $text .= $project{"MAKELIB$m"}."\n"; } } #$} ###### Combined headers #${ if ( Config("embedded") && Project("PRECOMPH") ) { $t = "allmoc.cpp: ".Project("PRECOMPH")." ".$original_HEADERS; ExpandList("HEADERS_ORIG"); $t.= $text; $t.= "\n\techo '#include \"".Project("PRECOMPH")."\"' >allmoc.cpp"; $t.= "\n\t\$(CXX) -E -DQT_MOC_CPP \$(CXXFLAGS) \$(INCPATH) >allmoc.h allmoc.cpp"; $t.= "\n\t\$(MOC) -o allmoc.cpp allmoc.h"; $t.= "\n\tperl -pi -e 's{\"allmoc.h\"}{\"".Project("PRECOMPH")."\"}' allmoc.cpp"; $t.= "\n\trm allmoc.h"; $t.= "\n"; $text = $t; } #$} ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildUicSrc(Project("INTERFACES")); #$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); #$ BuildMocSrc( Project("UICDECLS")); tmake-1.8/lib/unix/lib.t100444 773 773 320 7175526502 13614 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Unix libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/unix/subdirs.t100444 773 773 2131 7200564015 14531 0ustar aavitaavit############################################################################# #! #! This is a tmake template for creating a makefile that invokes make in #! sub directories - for Unix. #! #${ StdInit(); Project('MAKEFILE') || Project('MAKEFILE = Makefile'); Project('TMAKE') || Project('TMAKE = tmake'); #$} #! # Makefile for building targets in sub directories. # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# MAKEFILE= #$ Expand("MAKEFILE"); TMAKE = #$ Expand("TMAKE"); SUBDIRS = #$ ExpandList("SUBDIRS"); all: $(SUBDIRS) $(SUBDIRS): tmake_all FORCE cd $@; $(MAKE) #$ TmakeSelf(); tmake_all: #${ $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; #$} clean release debug: for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done FORCE: tmake-1.8/lib/unixware-g++/ 40775 773 773 0 7365566431 14054 5ustar aavitaavittmake-1.8/lib/unixware-g++/app.t100444 773 773 105 7175526502 15060 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/unixware-g++/lib.t100444 773 773 105 7175526502 15046 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/unixware-g++/subdirs.t100444 773 773 111 7175526502 15750 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/unixware-g++/tmake.conf100444 773 773 2404 7362431266 16107 0ustar aavitaavit# # $Id$ # # tmake configuration for unixware-g++ (UnixWare 2) # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = gcc TMAKE_CFLAGS = -D_UNIXWARE TMAKE_CFLAGS_WARN_ON = -Wall -W TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 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 = TMAKE_LIBDIR_X11 = /usr/X/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G TMAKE_LFLAGS_SONAME = TMAKE_LIBS = -lc TMAKE_LIBS_X11 = -lXext -lX11 -lsocket -lnsl -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/unixware7-cc/ 40775 773 773 0 7365566432 14155 5ustar aavitaavittmake-1.8/lib/unixware7-cc/app.t100444 773 773 105 7175526502 15160 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/unixware7-cc/lib.t100444 773 773 105 7175526502 15146 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/unixware7-cc/subdirs.t100444 773 773 111 7175526502 16050 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/unixware7-cc/tmake.conf100444 773 773 2336 7365566356 16227 0ustar aavitaavit# # $Id$ # # tmake configuration for unixware7-cc (UnixWare 7) # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cc TMAKE_CFLAGS = TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = -w TMAKE_CFLAGS_RELEASE = -O -T used TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_SHLIB = -K PIC TMAKE_CFLAGS_YACC = TMAKE_CXX = CC 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 = TMAKE_LIBDIR_X11 = /usr/X/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = CC TMAKE_LINK_SHLIB = CC TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G TMAKE_LFLAGS_SONAME = TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/unixware7-g++/ 40775 773 773 0 7365566432 14144 5ustar aavitaavittmake-1.8/lib/unixware7-g++/app.t100444 773 773 105 7175526502 15147 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/app.t"); tmake-1.8/lib/unixware7-g++/lib.t100444 773 773 105 7175526502 15135 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/lib.t"); tmake-1.8/lib/unixware7-g++/subdirs.t100444 773 773 111 7175526502 16037 0ustar aavitaavit#! Use the common Unix template #$ IncludeTemplate("../unix/subdirs.t"); tmake-1.8/lib/unixware7-g++/tmake.conf100444 773 773 2376 7362431266 16206 0ustar aavitaavit# # $Id$ # # tmake configuration for unixware7-g++ # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = gcc TMAKE_CFLAGS = -D_UNIXWARE7 TMAKE_CFLAGS_WARN_ON = -Wall -W TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O2 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 = TMAKE_LIBDIR_X11 = /usr/X/lib TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_LIBDIR_QT = $(QTDIR)/lib TMAKE_INCDIR_OPENGL = TMAKE_LIBDIR_OPENGL = TMAKE_LINK = g++ TMAKE_LINK_SHLIB = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_SHLIB = -G TMAKE_LFLAGS_SONAME = TMAKE_LIBS = TMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm TMAKE_LIBS_QT = -lqt TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt TMAKE_MOC = $(QTDIR)/bin/moc TMAKE_UIC = $(QTDIR)/bin/uic TMAKE_AR = ar cq TMAKE_RANLIB = TMAKE_TAR = tar -cf TMAKE_GZIP = gzip -9f tmake-1.8/lib/win32-borland/ 40775 773 773 0 7365566432 14222 5ustar aavitaavittmake-1.8/lib/win32-borland/app.t100444 773 773 324 7175526502 15230 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-borland/generic.t100444 773 773 20617 7362431266 16133 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( !Project("INTERFACE_DECL_PATH") ) { Project('INTERFACE_DECL_PATH = .' ); } if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("thread") ) { Project('DEFINES += QT_THREAD_SUPPORT'); } if ( Config("debug") ) { if ( Config("thread") ) { if ( Config("dll") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLLDBG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLLDBG'); } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DBG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DBG'); } } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); } Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { if ( Config("thread") ) { if ( Config("dll") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLL'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLL'); } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT'); } } Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("thread") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_RTMT'); } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_RT'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } Project('TMAKE_CLEAN += $$TARGET.tds'); #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# !if !$d(BCB) BCB = $(MAKEDIR)\.. !endif ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); LIB = #$ Expand("TMAKE_LIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); UIC = #$ Expand("TMAKE_UIC"); ZIP = #$ Expand("TMAKE_ZIP"); DEF_FILE = #$ ExpandList("DEF_FILE"); RES_FILE = #$ ExpandList("RES_FILE"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); INTERFACES = #$ ExpandList("INTERFACES"); UICDECLS = #$ ExpandList("UICDECLS"); UICIMPLS = #$ ExpandList("UICIMPLS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .c .cpp.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.obj: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); $(LINK) @&&| $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); -del $(TARGET) $(LIB) $(TARGET) @&&| #${ # $text = "+" . join(" \\\n+",split(/\s+/,$project{"OBJECTS"})) . " \\\n+" # . join(" \\\n+",split(/\s+/,$project{"OBJMOC"})); #$} #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); | #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -copy $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); clean: #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); -del $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildUicSrc(Project("INTERFACES")); #$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); #$ BuildMocSrc(Project("UICDECLS")); tmake-1.8/lib/win32-borland/lib.t100444 773 773 321 7175526502 15213 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-borland/subdirs.t100444 773 773 154 7175526502 16124 0ustar aavitaavit#! Use the common Win32 template #$ Project("TMAKE_NOFORCE = 1"); #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-borland/tmake.conf100444 773 773 3470 7362431266 16260 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/Borland C++ # MAKEFILE_GENERATOR = BMAKE TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = bcc32 TMAKE_CFLAGS = -tWR TMAKE_CFLAGS_WARN_ON = -w TMAKE_CFLAGS_WARN_OFF = -w- TMAKE_CFLAGS_RELEASE = -O2 TMAKE_CFLAGS_DEBUG = -v TMAKE_CFLAGS_MT = -tWM TMAKE_CFLAGS_MT_DBG = -tWM TMAKE_CFLAGS_MT_DLL = -tWM TMAKE_CFLAGS_MT_DLLDBG = -tWM TMAKE_CFLAGS_YACC = TMAKE_CXX = $$TMAKE_CC 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_MT = $$TMAKE_CFLAGS_MT TMAKE_CXXFLAGS_MT_DBG = $$TMAKE_CFLAGS_MT_DBG TMAKE_CXXFLAGS_MT_DLL = $$TMAKE_CFLAGS_MT_DLL TMAKE_CXXFLAGS_MT_DLLDBG= $$TMAKE_CFLAGS_MT_DLLDBG TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)\include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< TMAKE_LINK = ilink32 TMAKE_LFLAGS = -L$(BCB)\lib -c -x -Gn TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = -v TMAKE_LFLAGS_CONSOLE = -ap -Tpe c0w32.obj TMAKE_LFLAGS_WINDOWS = -aa -Tpe c0w32.obj TMAKE_LFLAGS_CONSOLE_DLL= -Gi -ap -Tpd c0d32.obj TMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj TMAKE_LIBS = import32.lib TMAKE_LIBS_RT = cw32i.lib TMAKE_LIBS_RTMT = cw32mti.lib TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib TMAKE_LIBS_OPENGL = TMAKE_MOC = moc TMAKE_UIC = uic TMAKE_LIB = tlib /C /P256 TMAKE_RC = brcc32 TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32-g++/ 40775 773 773 0 7365566432 13155 5ustar aavitaavittmake-1.8/lib/win32-g++/app.t100444 773 773 324 7175526502 14163 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-g++/generic.t100444 773 773 17315 7362431266 15067 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( !Project("INTERFACE_DECL_PATH") ) { Project('INTERFACE_DECL_PATH = .' ); } if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("thread") ) { Project('DEFINES += QT_THREAD_SUPPORT'); } if ( Config("debug") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-/-g; } if ( Project("DEF_FILE") ) { Project('TMAKE_LFLAGS *= $$DEF_FILE'); } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } if ( Project("RES_FILE") ) { Project('TMAKE_LIBS *= $$RES_FILE'); } $obj_ext = "o"; $dir_sep = "/"; $gnuwin32 = 1; if ( Config("qt") ) { $qtdir = $ENV{"QTDIR"}; $project{"INCPATH"} =~ s/\$\(QTDIR\)/$qtdir/; $project{"INCPATH"} =~ s/\\/\//g; $project{"TMAKE_LIBS"} =~ s/\$\(QTDIR\)/$qtdir/; $project{"TMAKE_LIBS"} =~ s/\\/\//g; } StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); AR = #$ Expand("TMAKE_AR"); RANLIB = #$ Expand("TMAKE_RANLIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); UIC = #$ Expand("TMAKE_UIC"); ZIP = #$ Expand("TMAKE_ZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); INTERFACES = #$ ExpandList("INTERFACES"); UICDECLS = #$ ExpandList("UICDECLS"); UICIMPLS = #$ ExpandList("UICIMPLS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .c .cpp.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.o: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.o: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); -rm -f $(TARGET) $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) #$ ExpandGlue("TMAKE_RANLIB","",""," \$(TARGET)"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -cp $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-rm -f "," ",""); -rm -f *~ core #$ ExpandGlue("CLEAN_FILES","-rm -f "," ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildUicSrc(Project("INTERFACES")); #$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); #$ BuildMocSrc(Project("UICDECLS")); tmake-1.8/lib/win32-g++/lib.t100444 773 773 321 7175526502 14146 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-g++/subdirs.t100444 773 773 113 7175526502 15052 0ustar aavitaavit#! Use the common Win32 template #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-g++/tmake.conf100444 773 773 2664 7362431266 15217 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/g++ (Cygnus gnu-win32) # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = g++ TMAKE_CFLAGS = -fvtable-thunks TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = TMAKE_CFLAGS_RELEASE = -O TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses TMAKE_CXX = gcc 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_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)/include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< TMAKE_LINK = g++ TMAKE_LFLAGS = TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = TMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console TMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows TMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console TMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows TMAKE_LIBS = TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = -luser32 -lgdi32 -lcomdlg32 -lwinmm -limm32 -lole32 -luuid -lwsock32 TMAKE_LIBS_QT = -L$(QTDIR)/lib -lqt TMAKE_LIBS_QT_DLL = -lqtmain TMAKE_LIBS_OPENGL = -lopengl32 TMAKE_MOC = moc TMAKE_AR = ar cqs TMAKE_RANLIB = TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32-msvc/ 40775 773 773 0 7365566432 13551 5ustar aavitaavittmake-1.8/lib/win32-msvc/app.t100444 773 773 324 7175526502 14557 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-msvc/generic.t100444 773 773 20411 7362431266 15452 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( !Project("INTERFACE_DECL_PATH") ) { Project('INTERFACE_DECL_PATH = .' ); } if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("thread") ) { Project('DEFINES += QT_THREAD_SUPPORT'); } if ( Config("debug") ) { if ( Config("thread") ) { if ( Config("dll") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLLDBG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLLDBG'); } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DBG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DBG'); } } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); } Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { if ( Config("thread") ) { if ( Config("dll") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLL'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLL'); } else { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT'); } } Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } if ( Project("DEF_FILE") ) { Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } if ( Project("RES_FILE") ) { Project('TMAKE_LIBS *= $$RES_FILE'); } StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } Project('dll:TMAKE_CLEAN += $$TARGET.lib $$TARGET.exp'); Project('debug:TMAKE_CLEAN += $$TARGET.pdb vc*.pdb $$TARGET.ilk'); #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); LIB = #$ Expand("TMAKE_LIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); UIC = #$ Expand("TMAKE_UIC"); ZIP = #$ Expand("TMAKE_ZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); INTERFACES = #$ ExpandList("INTERFACES"); UICDECLS = #$ ExpandList("UICDECLS"); UICIMPLS = #$ ExpandList("UICIMPLS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .c .cpp.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.obj: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< $(OBJECTS) $(OBJMOC) $(LIBS) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); $(LIB) /OUT:$(TARGET) @<< $(OBJECTS) $(OBJMOC) #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); << #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -copy $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES)'); clean: #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); -del $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildUicSrc(Project("INTERFACES")); #$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); #$ BuildMocSrc( Project("UICDECLS")); tmake-1.8/lib/win32-msvc/lib.t100444 773 773 321 7175526502 14542 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-msvc/subdirs.t100444 773 773 113 7175526502 15446 0ustar aavitaavit#! Use the common Win32 template #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-msvc/tmake.conf100444 773 773 3605 7362431266 15607 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/Microsoft C++ # MAKEFILE_GENERATOR = DSP TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = cl TMAKE_CFLAGS = -nologo TMAKE_CFLAGS_WARN_ON = -W3 TMAKE_CFLAGS_WARN_OFF = -W0 TMAKE_CFLAGS_RELEASE = -O1 TMAKE_CFLAGS_DEBUG = -Zi TMAKE_CFLAGS_MT = -MT TMAKE_CFLAGS_MT_DBG = -MTd TMAKE_CFLAGS_MT_DLL = -MD TMAKE_CFLAGS_MT_DLLDBG = -MDd TMAKE_CFLAGS_YACC = TMAKE_CXX = $$TMAKE_CC 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_MT = $$TMAKE_CFLAGS_MT TMAKE_CXXFLAGS_MT_DBG = $$TMAKE_CFLAGS_MT_DBG TMAKE_CXXFLAGS_MT_DLL = $$TMAKE_CFLAGS_MT_DLL TMAKE_CXXFLAGS_MT_DLLDBG= $$TMAKE_CFLAGS_MT_DLLDBG TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)\include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< TMAKE_LINK = link TMAKE_LFLAGS = /NOLOGO TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = /DEBUG TMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console TMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows TMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL TMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL TMAKE_LFLAGS_QT_DLL = /BASE:0x39D00000 TMAKE_LIBS = TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib TMAKE_LIBS_OPENGL = opengl32.lib glu32.lib TMAKE_MOC = moc TMAKE_UIC = uic TMAKE_LIB = lib /NOLOGO TMAKE_RC = rc TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32-msvc/vcapp.t100444 773 773 664 7175526502 15117 0ustar aavitaavit#! #! This is a tmake template for building Win32 application project files. #! #! Sets a flag to indicate that we want to build an application and then #! invoke the common vcgeneric.t template. #! #! The win32app.dsp file is used as a template for building applications. #! You may specify your own .dsp template by setting the project variable #! DSP_TEMPLATE. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("vcgeneric.t"); tmake-1.8/lib/win32-msvc/vcgeneric.t100444 773 773 22225 7362431266 16010 0ustar aavitaavit#! #! This is a tmake template for building MSVC++ project files (.dsp) #! #${ if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt" || Project("TARGET") eq "qt-mt" ) && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); Project('DEFINES *= UNICODE' ); AddIncludePath(Project("TMAKE_INCDIR_QT")); Project('TMAKE_LIBS *= imm32.lib wsock32.lib winmm.lib'); if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_OPENGL'); } if ( (Project("TARGET") eq "qt" || Project("TARGET") eq "qt-mt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('MSVCDSP_DLLBASE = /base:"0x39D00000"'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("thread") ) { Project( 'DEFINES *= QT_THREAD_SUPPORT' ); if ( Config("debug") ) { if ( Config("dll") ) { $project{"MSVCDSP_MTDEF"} = "-MDd"; } else { $project{"MSVCDSP_MTDEF"} = "-MTd"; } } else { if ( Config("dll") ) { $project{"MSVCDSP_MTDEF"} = "-MD"; } else { $project{"MSVCDSP_MTDEF"} = "-MT"; } } } if ( Config("dll") ) { if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } $project{"TARGET"} .= $project{"TARGET_EXT"}; if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } StdInit(); if ( check_unix() ) { $is_msvc5 = 0; } else { tmake_use_win32_registry(); $HKEY_CURRENT_USER->Open("Software\\Microsoft\\DevStudio\\5.0",$is_msvc5); } if ( $is_msvc5 ) { $project{"MSVCDSP_VER"} = "5.00"; $project{"MSVCDSP_DEBUG_OPT"} = "/Zi"; } else { $project{"MSVCDSP_VER"} = "6.00"; $project{"MSVCDSP_DEBUG_OPT"} = "/GZ /ZI"; } $project{"MSVCDSP_PROJECT"} = $project{"OUTFILE"}; $project{"MSVCDSP_PROJECT"} =~ s/\.[a-zA-Z0-9_]*$//; if ( Project("TMAKE_APP_FLAG") ) { $project{"MSVCDSP_TEMPLATE"} = "win32app.dsp"; if ( Config("console") ) { $project{"MSVCDSP_CONSOLE"} = "Console"; $project{"MSVCDSP_WINCONDEF"} = "_CONSOLE"; $project{"MSVCDSP_DSPTYPE"} = "0x0103"; $project{"MSVCDSP_SUBSYSTEM"} = "console"; } else { $project{"MSVCDSP_CONSOLE"} = ""; $project{"MSVCDSP_WINCONDEF"} = "_WINDOWS"; $project{"MSVCDSP_DSPTYPE"} = "0x0101"; $project{"MSVCDSP_SUBSYSTEM"} = "windows"; } } else { if ( Config("dll") ) { $project{"MSVCDSP_TEMPLATE"} = "win32dll.dsp"; } else { $project{"MSVCDSP_TEMPLATE"} = "win32lib.dsp"; } } $project{"MSVCDSP_LIBS"} = $project{"TMAKE_LIBS"}; ExpandGlue("DEFINES",'/D "','" /D "','"'); $project{"MSVCDSP_DEFINES"} = $text; $text = ""; ExpandPath("INCPATH",'/I ',' /I ',''); $project{"MSVCDSP_INCPATH"} = $text; $text = ""; if ( Config("qt") ) { $project{"MSVCDSP_RELDEFS"} = '/D "NO_DEBUG"'; } else { $project{"MSVCDSP_RELDEFS"} = ''; } if ( defined($project{"DESTDIR"}) ) { $project{"TARGET"} = $project{"DESTDIR"} . "\\" . $project{"TARGET"}; $project{"TARGET"} =~ s/\\+/\\/g; $project{"MSVCDSP_TARGET"} = '/out:"' . $project{"TARGET"} . '"'; if ( Config("dll") ) { my $t = $project{"TARGET"}; $t =~ s/\.dll/.lib/; $project{"MSVCDSP_TARGET"} .= " /implib:\"$t\""; } } if ( Config("dll") && Project("DLLDESTDIR") ) { $project{"MSVCDSP_COPY_DLL"} = "# Begin Special Build Tool\n" . "TargetPath=" . $project{"TARGET"} . "\n" . "SOURCE=\$(InputPath)\n" . "PostBuild_Desc=Copy DLL to " . $project{"DLLDESTDIR"} . "\n" . "PostBuild_Cmds=copy \$(TargetPath) \"" . $project{"DLLDESTDIR"} . "\"\n" . "# End Special Build Tool"; } if ( Project("DSP_TEMPLATE") ) { $dspfile = Project("DSP_TEMPLATE"); } else { $dspfile = Project("MSVCDSP_TEMPLATE"); } $dsppath= &fix_path( &find_template($dspfile) ); if ( !open(DSP,$dsppath) ) { &tmake_error("Cannot open dsp template $dspfile at $dsppath"); } if ( Config("moc") ) { $project{"SOURCES"} .= " " . $project{"SRCMOC"}; } if ( $project{"SOURCES"} || $project{"RC_FILE"} ) { $project{"SOURCES"} .= " " . $project{"RC_FILE"}; @files = split(/\s+/,$project{"SOURCES"}); $text = ""; foreach ( @files ) { $file = $_; $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; if ( Config("moc") && ($file =~ /\.moc$/) ) { $build = "\n\n# Begin Custom Build - Moc'ing $moc_input{$file}...\n" . "InputPath=.\\$file\n\n" . '"' . $file . '" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . "\t%QTDIR%\\bin\\moc.exe " . $moc_input{$file} . " -o $file\n\n" . "# End Custom Build\n\n"; $base = $file; $base =~ s/\..*//; $base =~ tr/a-z/A-Z/; $base =~ s/[^A-Z]/_/g; $text .= "USERDEP_$base=" . '"' . $moc_input{$file} . '"' . "\n\n" . '!IF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . $build . '!ELSEIF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . $build . "!ENDIF \n\n"; } $text .= "# End Source File\n"; } $project{"MSVCDSP_SOURCES"} = $text; $text = ""; } if ( $project{"HEADERS"} ) { @files = split(/\s+/,$project{"HEADERS"}); $text = ""; foreach ( @files ) { $file = $_; $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; if ( Config("moc") && $moc_output{$file} ) { $build = "\n\n# Begin Custom Build - Moc'ing $file...\n" . "InputPath=.\\$file\n\n" . '"' . $moc_output{$file} . '" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . "\t%QTDIR%\\bin\\moc.exe $file -o " . $moc_output{$file} . "\n\n" . "# End Custom Build\n\n"; $text .= "\n" . '!IF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . $build . '!ELSEIF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . $build . "!ENDIF \n\n"; } $text .= "# End Source File\n"; } $project{"MSVCDSP_HEADERS"} = $text; $text = ""; } if ($project{"INTERFACES"} ) { $uicpath = Expand("TMAKE_UIC"); $uicpath =~ s/[.]exe//g; $uicpath .= " "; @files = split(/\s+/,$project{"INTERFACES"}); $text = ""; $headtext = ""; $sourcetext = ""; foreach ( @files ) { $file = $_; $filename = $file; $filename =~ s/[.]ui//g; $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; $build = "\n\n# Begin Custom Build - Uic'ing $file...\n" . "InputPath=.\\$file\n\n" . "BuildCmds= " . $uicpath . $file . " -o " . $filename . ".h\\\n" . "\t" . $uicpath . $file . " -i " . $filename . ".h -o " . $filename . ".cpp\\\n" . "\t%QTDIR%\\bin\\moc " . $filename . ".h -o " . $project{"MOC_DIR"} . "moc_" . $filename . ".cpp \\\n\n" . '"' . $filename . '.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . "\t\$(BuildCmds)\n\n" . '"' . $filename . '.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . "\t\$(BuildCmds)\n\n" . '"' . $project{"MOC_DIR"} . 'moc_' . $filename . '.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . "\t\$(BuildCmds)\n\n" . "# End Custom Build\n\n"; $text .= '!IF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . $build . '!ELSEIF "$(CFG)" == "' . $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . $build . "!ENDIF \n\n"; $text .= "# End Source File\n"; $sourcetext .= "# Begin Source File\n\nSOURCE=.\\" . $filename . ".cpp\n# End Source File\n"; $headtext .= "# Begin Source File\n\nSOURCE=.\\" . $filename . ".h\n# End Source File\n"; } $project{"MSVCDSP_INTERFACES"} = $text; $text = ""; $project{"MSVCDSP_INTERFACESOURCES"} = $sourcetext; $sourcetext = ""; $project{"MSVCDSP_INTERFACEHEADERS"} = $headtext; $headtext = ""; } while ( ) { $line = $_; while ( $line =~ s/((\s*)\$\$([a-zA-Z0-9_]+))/__MSVCDSP_SUBST__/ ) { if ( defined($project{$3}) && ($project{$3} ne "")) { $subst = $project{$3}; $space = $2; $line =~ s/__MSVCDSP_SUBST__/${space}${subst}/; if ( $line =~ /^\s*$/ ) { $line = ""; } } else { $line =~ s/__MSVCDSP_SUBST__//; } } $text .= $line; } close(DSP); #$} tmake-1.8/lib/win32-msvc/vclib.t100444 773 773 1021 7175526502 15111 0ustar aavitaavit#! #! This is a tmake template for building Win32 library project files. #! #! Sets a flag to indicate that we want to build a library (either #! a static library or a DLL) and then invoke the common vcgeneric.t #! template. #! #! The win32lib.dsp file is used as a template for building static #! libraries and win32dll.dsp is used as a template for building DLLs. #! You may specify your own .dsp template by setting the project variable #! DSP_TEMPLATE. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("vcgeneric.t"); tmake-1.8/lib/win32-msvc/win32app.dsp100444 773 773 10451 7175526502 16027 0ustar aavitaavit# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) $$MSVCDSP_CONSOLE Application" $$MSVCDSP_DSPTYPE CFG=$$MSVCDSP_PROJECT - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Application") !MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Application") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib $$MSVCDSP_LIBS /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /machine:I386 $$MSVCDSP_TARGET !ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "Debug" # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES /FD /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /debug /machine:I386 /pdbtype:sept # ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib $$MSVCDSP_LIBS /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /debug /machine:I386 $$MSVCDSP_TARGET /nodefaultlib:"libc" /pdbtype:sept !ENDIF # Begin Target # Name "$$MSVCDSP_PROJECT - Win32 Release" # Name "$$MSVCDSP_PROJECT - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" $$MSVCDSP_SOURCES $$MSVCDSP_INTERFACESOURCES # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" $$MSVCDSP_HEADERS $$MSVCDSP_INTERFACEHEADERS # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # Begin Group "Interfaces" $$MSVCDSP_INTERFACES # Prop Default_Filter "ui" # End Group # End Target # End Project tmake-1.8/lib/win32-msvc/win32dll.dsp100444 773 773 10175 7175526502 16025 0ustar aavitaavit# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 CFG=$$MSVCDSP_PROJECT - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib $$MSVCDSP_LIBS /nologo $$MSVCDSP_DLLBASE /dll /machine:I386 $$MSVCDSP_TARGET $$MSVCDSP_COPY_DLL !ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "Debug" # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /debug /machine:I386 /pdbtype:sept # ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib $$MSVCDSP_LIBS /nologo $$MSVCDSP_DLLBASE /dll /debug /machine:I386 $$MSVCDSP_TARGET /pdbtype:sept $$MSVCDSP_COPY_DLL !ENDIF # Begin Target # Name "$$MSVCDSP_PROJECT - Win32 Release" # Name "$$MSVCDSP_PROJECT - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" $$MSVCDSP_SOURCES $$MSVCDSP_INTERFACESOURCES # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" $$MSVCDSP_HEADERS $$MSVCDSP_INTERFACEHEADERS # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # Begin Group "Interfaces" $$MSVCDSP_INTERFACES # Prop Default_Filter "ui" # End Group # End Target # End Project tmake-1.8/lib/win32-msvc/win32lib.dsp100444 773 773 6274 7175526502 16005 0ustar aavitaavit# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Static Library" 0x0104 CFG=$$MSVCDSP_PROJECT - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Static Library") !MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Static Library") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe RSC=rc.exe !IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LIB32=link.exe -lib # ADD BASE LIB32 /nologo # ADD LIB32 /nologo $$MSVCDSP_TARGET !ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "Debug" # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FD /c # ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LIB32=link.exe -lib # ADD BASE LIB32 /nologo # ADD LIB32 /nologo $$MSVCDSP_TARGET !ENDIF # Begin Target # Name "$$MSVCDSP_PROJECT - Win32 Release" # Name "$$MSVCDSP_PROJECT - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" $$MSVCDSP_SOURCES $$MSVCDSP_INTERFACESOURCES # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" $$MSVCDSP_HEADERS $$MSVCDSP_INTERFACEHEADERS # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # Begin Group "Interfaces" $$MSVCDSP_INTERFACES # Prop Default_Filter "ui" # End Group # End Target # End Project tmake-1.8/lib/win32-symantec/ 40775 773 773 0 7365566433 14425 5ustar aavitaavittmake-1.8/lib/win32-symantec/app.t100444 773 773 324 7175526503 15433 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-symantec/generic.t100444 773 773 16114 7175526503 16333 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("debug") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } if ( Project("DEF_FILE") ) { Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } if ( Project("RES_FILE") ) { Project('TMAKE_LIBS *= $$RES_FILE'); } StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); LIB = #$ Expand("TMAKE_LIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); ZIP = #$ Expand("TMAKE_ZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .c .cpp.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.obj: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); -del $(TARGET) #${ # $text = "\t\$(LIB) \$(TARGET) " # . join(" \\\n+",split(/\s+/,$project{"OBJECTS"})) . " \\\n+" # . join(" \\\n+",split(/\s+/,$project{"OBJMOC"})) . ",;"; #$} #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -copy $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); clean: #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); -del $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); tmake-1.8/lib/win32-symantec/lib.t100444 773 773 321 7175526503 15416 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-symantec/subdirs.t100444 773 773 113 7175526503 16322 0ustar aavitaavit#! Use the common Win32 template #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-symantec/tmake.conf100444 773 773 2710 7362431266 16456 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/Symantec C++ # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = sc TMAKE_CFLAGS = -mn -w2 TMAKE_CFLAGS_WARN_ON = TMAKE_CFLAGS_WARN_OFF = -w TMAKE_CFLAGS_RELEASE = -o TMAKE_CFLAGS_DEBUG = -g TMAKE_CFLAGS_YACC = TMAKE_CXX = $$TMAKE_CC 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_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)\include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< TMAKE_LINK = link TMAKE_LFLAGS = /NOLOGO /NOI TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = /DEBUG TMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console TMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows TMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL TMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL TMAKE_LIBS = TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = user32.lib gdi32.lib comdlg32.lib imm32.lib winmm.lib ole32.lib uuid.lib wsock32.lib TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib TMAKE_LIBS_OPENGL = opengl32.lib TMAKE_MOC = moc TMAKE_LIB = lib /C /N /NOI /P:32 TMAKE_RC = rc TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32-visage/ 40775 773 773 0 7365566433 14060 5ustar aavitaavittmake-1.8/lib/win32-visage/app.t100444 773 773 324 7175526503 15066 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-visage/generic.t100444 773 773 15704 7175526503 15772 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("debug") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } if ( Project("DEF_FILE") ) { Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } if ( Project("RES_FILE") ) { Project('TMAKE_LIBS *= $$RES_FILE'); } StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); LIB = #$ Expand("TMAKE_LIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); ZIP = #$ Expand("TMAKE_ZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .c .cpp.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cxx.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .cc.obj: #$ Expand("TMAKE_RUN_CXX_IMP"); .c.obj: #$ Expand("TMAKE_RUN_CC_IMP"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); $(LINK) -B"$(LFLAGS)" $(OBJECTS) $(OBJMOC) $(LIBS) -Fe$(TARGET) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); $(LIB) /OUT:$(TARGET) $(OBJECTS) $(OBJMOC) #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -copy $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); clean: #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); -del $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); tmake-1.8/lib/win32-visage/lib.t100444 773 773 321 7175526503 15051 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-visage/subdirs.t100444 773 773 113 7175526503 15755 0ustar aavitaavit#! Use the common Win32 template #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-visage/tmake.conf100444 773 773 2767 7362431266 16125 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/IBM Visual Age # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = icc -C TMAKE_CFLAGS = -Q -Ft -Gd -Gm+ -qrtti=all TMAKE_CFLAGS_WARN_ON = -W3 TMAKE_CFLAGS_WARN_OFF = -W0 TMAKE_CFLAGS_RELEASE = -Gl+ -O -Oc+ TMAKE_CFLAGS_DEBUG = -Fb* -Ti -Tm TMAKE_CFLAGS_YACC = TMAKE_CXX = $$TMAKE_CC 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_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)\include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo"$obj" $src TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo"$@" $< TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo"$obj" $src TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo"$@" $< TMAKE_LINK = icc -Tdp $(CFLAGS) TMAKE_LFLAGS = -nologo -code:RX -data:RW -def -noe TMAKE_LFLAGS_RELEASE = -OPTF TMAKE_LFLAGS_DEBUG = -de -br TMAKE_LFLAGS_CONSOLE = -pmtype:vio TMAKE_LFLAGS_WINDOWS = -pmtype:pm TMAKE_LFLAGS_CONSOLE_DLL= -DLL TMAKE_LFLAGS_WINDOWS_DLL= -DLL TMAKE_LIBS = TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = user32.lib gdi32.lib comdlg32.lib imm32.lib winmm.lib ole32.lib uuid.lib wsock32.lib TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib TMAKE_LIBS_OPENGL = opengl32.lib glu32.lib TMAKE_MOC = moc TMAKE_LIB = ilib TMAKE_RC = rc TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32-watcom/ 40775 773 773 0 7365566433 14074 5ustar aavitaavittmake-1.8/lib/win32-watcom/app.t100444 773 773 324 7175526503 15102 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 applications. #! #$ Project('TMAKE_APP_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-watcom/generic.t100444 773 773 16272 7175526503 16007 0ustar aavitaavit#! #! This is a tmake template for building Win32 applications or libraries. #! #${ Project('CONFIG += qt') if Config("qt_dll"); if ( Config("qt") ) { if ( !(Project("DEFINES") =~ /QT_NODLL/) && ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { Project('TMAKE_QT_DLL = 1'); if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { Project('CONFIG += dll'); } } } if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { Project('CONFIG -= staticlib'); Project('TMAKE_APP_OR_DLL = 1'); } else { Project('CONFIG += staticlib'); } if ( Config("warn_off") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); } elsif ( Config("warn_on") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); } if ( Config("debug") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); } elsif ( Config("release") ) { Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); } if ( Project("TMAKE_INCDIR") ) { AddIncludePath(Project("TMAKE_INCDIR")); } if ( Config("qt") || Config("opengl") ) { Project('CONFIG += windows' ); } if ( Config("qt") ) { Project('CONFIG *= moc'); AddIncludePath(Project("TMAKE_INCDIR_QT")); if ( !Config("debug") ) { Project('DEFINES += NO_DEBUG'); } if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { if ( Project("TMAKE_QT_DLL") ) { Project('DEFINES *= QT_MAKEDLL'); Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); } } else { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); if ( Project("TMAKE_QT_DLL") ) { my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); if ( !Config("dll") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); } } } } if ( Config("opengl") ) { Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); } if ( Config("dll") ) { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); if ( Project("TMAKE_LIB_FLAG") ) { my $ver = Project("VERSION"); $ver =~ s/\.//g; $project{"TARGET_EXT"} = "${ver}.dll"; } else { $project{"TARGET_EXT"} = ".dll"; } } else { Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); if ( Project("TMAKE_APP_FLAG") ) { $project{"TARGET_EXT"} = ".exe"; } else { $project{"TARGET_EXT"} = ".lib"; } } if ( Config("windows") ) { if ( Config("console") ) { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); } Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); } else { Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); } if ( Config("moc") ) { $moc_aware = 1; } Project('TMAKE_LIBS += $$LIBS'); Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { $project{$_} =~ s-[/\\]+-\\-g; } if ( Project("DEF_FILE") ) { Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); } if ( Project("RC_FILE") ) { if ( Project("RES_FILE") ) { tmake_error("Both .rc and .res file specified.\n" . "Please specify one of them, not both."); } $project{"RES_FILE"} = $project{"RC_FILE"}; $project{"RES_FILE"} =~ s/\.rc$/.res/i; Project('TARGETDEPS += $$RES_FILE'); } if ( Project("RES_FILE") ) { Project('TMAKE_LIBS *= $$RES_FILE'); } $linebreak = '&'; StdInit(); if ( Project("VERSION") ) { $project{"VER_MAJ"} = $project{"VERSION"}; $project{"VER_MAJ"} =~ s/\.\d+$//; $project{"VER_MIN"} = $project{"VERSION"}; $project{"VER_MIN"} =~ s/^\d+\.//; } #$} #! # Makefile for building #$ Expand("TARGET") # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# ####### Compiler, tools and options #$ Config("qt") || DisableOutput(); QTDIR = #$ $text = $ENV{"QTDIR"}; #$ Config("qt") || EnableOutput(); CC = #$ Expand("TMAKE_CC"); CXX = #$ Expand("TMAKE_CXX"); CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-d="," -d=",""); CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-d="," -d=",""); INCPATH = #$ ExpandPath("INCPATH",'-i=',' -i=',''); #$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); LINK = #$ Expand("TMAKE_LINK"); LFLAGS = #$ Expand("TMAKE_LFLAGS"); LIBS = #$ Expand("TMAKE_LIBS"); #$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); LIB = #$ Expand("TMAKE_LIB"); #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); MOC = #$ Expand("TMAKE_MOC"); ZIP = #$ Expand("TMAKE_ZIP"); ####### Files HEADERS = #$ ExpandList("HEADERS"); SOURCES = #$ ExpandList("SOURCES"); OBJECTS = #$ ExpandList("OBJECTS"); SRCMOC = #$ ExpandList("SRCMOC"); OBJMOC = #$ ExpandList("OBJMOC"); DIST = #$ ExpandList("DISTFILES"); TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); TMPLIST = #$ ExpandGlue("TARGET","","",".lst"); ####### Build rules all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; $(TARGET): $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); @%create $(TMPLIST) #$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); @%append $(TMPLIST) NAME #$ Expand("TARGET"); #$ ExpandGlue("OBJECTS",'@%append $(TMPLIST) FIL ',",",""); #$ ExpandGlue("OBJMOC" ,'@%append $(TMPLIST) FIL ',",",""); #$ ExpandGlue("TMAKE_LIBS" ,'@%append $(TMPLIST) LIBR ',",",""); $(LINK) $(LFLAGS) @$(TMPLIST) #$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); #$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' $(LIB) $(TARGET) @$(TMPLIST) #$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); del $(TMPLIST) #$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); -copy $(TARGET) #$ Expand("DLLDESTDIR"); #$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); #$ Project("RC_FILE") || DisableOutput(); #$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); #$ Project("RC_FILE") || EnableOutput(); moc: $(SRCMOC) #$ TmakeSelf(); dist: #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); clean: #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); -del $(TARGET) #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); ####### Compile #$ BuildObj(Project("OBJECTS"),Project("SOURCES")); #$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); #$ BuildMocSrc(Project("HEADERS")); #$ BuildMocSrc(Project("SOURCES")); tmake-1.8/lib/win32-watcom/lib.t100444 773 773 321 7175526503 15065 0ustar aavitaavit############################################################################# #! #! This is a tmake template for building Win32 libraries. #! #$ Project('TMAKE_LIB_FLAG = 1'); #$ IncludeTemplate("generic.t"); tmake-1.8/lib/win32-watcom/subdirs.t100444 773 773 113 7175526503 15771 0ustar aavitaavit#! Use the common Win32 template #$ IncludeTemplate("../win32/subdirs.t"); tmake-1.8/lib/win32-watcom/tmake.conf100444 773 773 2326 7362431266 16130 0ustar aavitaavit# # $Id$ # # tmake configuration for Win32/Watcom C++ # TEMPLATE = app CONFIG = qt warn_on release TMAKE_CC = wcl386 TMAKE_CFLAGS = -zq TMAKE_CFLAGS_WARN_ON = -w2 TMAKE_CFLAGS_WARN_OFF = -w0 TMAKE_CFLAGS_RELEASE = -ox TMAKE_CFLAGS_DEBUG = -d2 TMAKE_CFLAGS_YACC = TMAKE_CXX = $$TMAKE_CC 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_YACC = $$TMAKE_CFLAGS_YACC TMAKE_INCDIR = TMAKE_INCDIR_QT = $(QTDIR)\include TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -fo=$obj $src TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -fo=$obj $src TMAKE_LINK = wlink TMAKE_LFLAGS = op quiet op c TMAKE_LFLAGS_RELEASE = TMAKE_LFLAGS_DEBUG = d all TMAKE_LFLAGS_CONSOLE = sys nt TMAKE_LFLAGS_WINDOWS = sys nt_win TMAKE_LFLAGS_CONSOLE_DLL= sys nt TMAKE_LFLAGS_WINDOWS_DLL= sys nt_win TMAKE_LIBS = TMAKE_LIBS_CONSOLE = TMAKE_LIBS_WINDOWS = TMAKE_LIBS_QT = %QTDIR%\lib\qt.lib TMAKE_LIBS_QT_DLL = %QTDIR%\lib\qtmain.lib TMAKE_LIBS_OPENGL = opengl32.lib TMAKE_MOC = moc TMAKE_LIB = wlib -b -c -n -q -p=512 TMAKE_RC = rc TMAKE_ZIP = zip -r -9 tmake-1.8/lib/win32/ 40775 773 773 0 7365566433 12604 5ustar aavitaavittmake-1.8/lib/win32/subdirs.t100444 773 773 2635 7175526503 14534 0ustar aavitaavit############################################################################# #! #! This is a tmake template for creating a makefile that invokes make in #! sub directories - for Win32. #! #${ StdInit(); $m = ""; foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { $m = $m . "\tcd $_\n\tDOMAKE\n\t\@cd ..\n"; } $project{"SUBMAKE"} = $m; Project('MAKEFILE') || Project('MAKEFILE = Makefile'); Project('TMAKE') || Project('TMAKE = tmake'); #$} #! # Makefile for building targets in sub directories. # Generated by tmake at #$ Now(); # Project: #$ Expand("PROJECT"); # Template: #$ Expand("TEMPLATE"); ############################################################################# MAKEFILE= #$ Expand("MAKEFILE"); TMAKE = #$ Expand("TMAKE"); SUBDIRS = #$ ExpandList("SUBDIRS"); all: $(SUBDIRS) #${ foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { if ( Project("TMAKE_NOFORCE") ) { $text = $text . $_ . ":\n\t" . "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; } else { $text = $text . $_ . ": FORCE\n\t" . "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; } } #$} #$ TmakeSelf(); tmake_all: #${ foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { $text .= "\tcd $_\n\t\$(TMAKE\) $_.pro -o \$(MAKEFILE)\n\t\@cd ..\n"; } #$} clean: #$ $text = $project{"SUBMAKE"}; $text =~ s/DOMAKE/\$(MAKE\) clean/g; #$ Project("TMAKE_NOFORCE") && DisableOutput(); FORCE: #$ Project("TMAKE_NOFORCE") && EnableOutput();