From 4a6b24a567142317a24a98d2ab998f5093a581cc Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 10 Aug 2012 14:44:17 +0200 Subject: first porting attempts to Windows: nmake support from Wolframe module loader adapted tests for typeinfo and template trickery --- utils/Makefile.W32 | 13 +++++++++++++ utils/win32/Makefile.W32 | 33 +++++++++++++++++++++++++++++++++ utils/win32/README | 2 ++ utils/win32/dos2unix.cpp | 19 +++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 utils/Makefile.W32 create mode 100755 utils/win32/Makefile.W32 create mode 100644 utils/win32/README create mode 100755 utils/win32/dos2unix.cpp (limited to 'utils') diff --git a/utils/Makefile.W32 b/utils/Makefile.W32 new file mode 100644 index 0000000..455376c --- /dev/null +++ b/utils/Makefile.W32 @@ -0,0 +1,13 @@ +TOPDIR = .. + +SUBDIRS = win32 + +!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk + +local_all: + +local_clean: + +local_distclean: + +local_test: diff --git a/utils/win32/Makefile.W32 b/utils/win32/Makefile.W32 new file mode 100755 index 0000000..2edb2d1 --- /dev/null +++ b/utils/win32/Makefile.W32 @@ -0,0 +1,33 @@ +TOPDIR = ..\.. + +SUBDIRS = + +!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk + +INCLUDE_CXXFLAGS = \ + /D_WIN32_WINNT=0x504 + +INCLUDE_DIRS = \ + /I. \ + /I$(TOPDIR)\src + +INCLUDE_LDFLAGS = \ + +INCLUDE_LIBS = \ + +CPP_BINS = \ + dos2unix.exe + +OBJS = + +!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk + +dos2unix.exe: dos2unix.obj + +local_all: + +local_clean: + +local_distclean: + +local_test: diff --git a/utils/win32/README b/utils/win32/README new file mode 100644 index 0000000..53fcb66 --- /dev/null +++ b/utils/win32/README @@ -0,0 +1,2 @@ +Utilities for Windows, mainly used for testing, so that we don't have +to pull in a lot of third party tools diff --git a/utils/win32/dos2unix.cpp b/utils/win32/dos2unix.cpp new file mode 100755 index 0000000..7010d0b --- /dev/null +++ b/utils/win32/dos2unix.cpp @@ -0,0 +1,19 @@ +#include +#include + +#include +#include + +using namespace std; + +int main( void ) +{ + _setmode( _fileno( stdout ), _O_BINARY ); + + string line; + while( getline( cin, line ) ) { + cout << line << "\n"; + } + + return 0; +} -- cgit v1.2.3-54-g00ecf