[teklib-general] teklib: Windows build for the Hal and IO modules reactivated (us...

Timm S. Mueller tmueller at neoscientists.org
Sat Dec 27 22:31:31 CET 2008


details:   http://hg.teklib.org/teklib/rev/dc69b1930852
changeset: 211:dc69b1930852
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Sat Dec 27 22:29:59 2008 +0100
description:
Windows build for the Hal and IO modules reactivated (using a MinGW
cross-development setup under Linux or a native one under Windows)

diffs (truncated from 1673 to 100 lines):

diff -r 5e3ea0d11e14 -r dc69b1930852 Makefile
--- a/Makefile	Sun Dec 21 19:39:32 2008 +0100
+++ b/Makefile	Sat Dec 27 22:29:59 2008 +0100
@@ -2,13 +2,13 @@
 # TEKlib source directory:
 TEKLIB ?= .
 
-# Target platform or standard:
+# Target platform or standard [posix, winnt]:
 PLATFORM ?= posix
 
-# Operating system implementing the platform:
+# Operating system implementing the platform [linux, fbsd, winnt]:
 HOST ?= linux
 
-# Compiler:
+# Compiler [gcc]:
 COMPILER ?= gcc
 
 ###############################################################################
diff -r 5e3ea0d11e14 -r dc69b1930852 build/config.tmk
--- a/build/config.tmk	Sun Dec 21 19:39:32 2008 +0100
+++ b/build/config.tmk	Sat Dec 27 22:29:59 2008 +0100
@@ -6,8 +6,8 @@
 	[case config="posix_fbsd"]
 		[include name="config/posix_fbsd.tmk"/]
 	[/case]
-	[case config="winnt_winnt_gcc"]
-		[include name="config/winnt_winnt_gcc.tmk"/]
+	[case config="winnt_winnt"]
+		[include name="config/winnt_winnt.tmk"/]
 	[/case]
 	[case config="ps2_ps2_gcc"]
 		[include name="config/ps2_ps2_gcc.tmk"/]
diff -r 5e3ea0d11e14 -r dc69b1930852 build/config/posix_linux.tmk
--- a/build/config/posix_linux.tmk	Sun Dec 21 19:39:32 2008 +0100
+++ b/build/config/posix_linux.tmk	Sat Dec 27 22:29:59 2008 +0100
@@ -38,8 +38,6 @@
 	DEF			= -DTEKLIB -DTSYS_POSIX $(EXTRADEFS)
 	WARN		= -Wall -Wno-unused-parameter
 
-#-ansi -pedantic -Wall -Wno-unused-parameter
-
 	MKDIR       = mkdir -p
 	RM          = rm
 	RMDIR       = rm -R
@@ -55,18 +53,18 @@
 
 	[switch]
 		[case config="_gcc_release"]
-			OPT 	= -O2 -fomit-frame-pointer
+			OPT     = -O2 -fomit-frame-pointer
 		[/case]
 		[case config="_gcc_debug"]
-			OPT 	= -O1
-			DEBUG	= -DTDEBUG=5 -g
+			OPT     = -O1
+			DEBUG   = -DTDEBUG=5 -g
 		[/case]
 		[case config="_gcc_small"]
 			OPT 	= -Os -fomit-frame-pointer
 		[/case]
 		[default]
-			OPT 	= -O2
-			DEBUG	= -DTDEBUG=10 -g
+			OPT     = -O2
+			DEBUG   = -DTDEBUG=10 -g
 		[/default]
 	[/switch]
 
@@ -76,7 +74,7 @@
 
 	#
 
-	INCL		 = -I$(TEKLIB) -I. -I./include
+	INCL         = -I$(TEKLIB) -I. -I./include
 	OBJDIR       = build/obj_$(HOST)
 	TEKSYSDIR    = /usr/local/tek/
 	MODINSTDIR   = $(TEKSYSDIR)mod
diff -r 5e3ea0d11e14 -r dc69b1930852 build/config/winnt_winnt.tmk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/config/winnt_winnt.tmk	Sat Dec 27 22:29:59 2008 +0100
@@ -0,0 +1,230 @@
+
+[!-------------------------------------------------------------------------
+
+	$Id: winnt_winnt_gcc.tmk,v 1.4 2006/08/26 12:30:15 tmueller Exp $
+	build/winnt_winnt_gcc.tmk - tmkmf configuration file
+
+--------------------------------------------------------------------------]
+
+[body name="help"]
+	help:
+		\t at echo "==================================================================="
+		\t at echo "=="
+		\t at echo "== winnt_winnt supported builds"
+		\t at echo "== --------------------------------"
+		\t at echo "== all ............... build linklibs, modules, executables"
+		\t at echo "== libs .............. build linklibs"
+		\t at echo "== modules ........... build shared modules"


More information about the teklib-general mailing list