diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
commit | 140e2252be1a2263525ffb6811951c258b8cceea (patch) | |
tree | e19e2b691e819f73f54fae9d14f0b3e38a02eee0 /makefiles/nmake | |
parent | 420a39bb53ad4a24823e924868e67a3966d663f0 (diff) | |
download | wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.gz wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.bz2 |
added platform SDK and started the event logger on Windows
Diffstat (limited to 'makefiles/nmake')
-rw-r--r-- | makefiles/nmake/platform.mk | 63 | ||||
-rw-r--r-- | makefiles/nmake/sub.mk | 2 |
2 files changed, 18 insertions, 47 deletions
diff --git a/makefiles/nmake/platform.mk b/makefiles/nmake/platform.mk index 95843fb..d4085d0 100644 --- a/makefiles/nmake/platform.mk +++ b/makefiles/nmake/platform.mk @@ -1,56 +1,27 @@ -# sets e. g. to LINUX, OS_MAJOR_VERSION to 2 and OS_MINOR_VERSION to 6 -# by calling the 'guess_env' shell script, where the actual probing happens -# Also sets PLATFORM_COMPILE_FLAGS to be included when compiling C/C++ code +# Sets Windows specific variables # # requires: -# - TOPDIR +# - # # provides: -# - PLATFORM -# - OS_MAJOR_VERSION and OS_MINOR_VERSION -# - GCC_MAJOR_VERSION and GCC_MINOR_VERSION -# - PLATFORM_COMPILE_FLAGS -# - EXE -# - SO -# - INSTALL +# - PLATFORM_SDK_DIR: the location of the Windows Platform SDK, used +# for compiling anything from the Win32 API into a binary/library # # author: Andreas Baumann, abaumann at yahoo dot com -PLATFORM = $(shell $(TOPDIR)/makefiles/gmake/guess_env --platform $(CC)) -OS_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-version $(CC)) -OS_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-minor-version $(CC)) -COMPILER = $(shell $(TOPDIR)/makefiles/gmake/guess_env --compiler $(CC)) +# The location of the Windows Platform SDK +PLATFORM_SDK_DIR = D:\Programme\Microsoft Platform SDK -PLATFORM_COMPILE_FLAGS = \ - -D$(PLATFORM) \ - -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \ - -DOS_MINOR_VERSION=$(OS_MINOR_VERSION) +# TODO: maybe we have to probe certain things like the version +# of the visual studio or the availability of certain addons +# like Windows Unix Services, MOSS stuff or SDKs -# extensions for binaries -ifeq "$(PLATFORM)" "CYGWIN" -EXE = .exe -else -EXE = -endif +#PLATFORM = $(shell $(TOPDIR)/makefiles/gmake/guess_env --platform $(CC)) +#OS_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-version $(CC)) +#OS_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-minor-version $(CC)) +#COMPILER = $(shell $(TOPDIR)/makefiles/gmake/guess_env --compiler $(CC)) -# extensions for shared libraries -# (TOOD: HP/Unix has .shlib, Mac/X has .lib, but we can't test it currently) -SO = .so - -# name if the installation program -# (TODO: use the MIT or openradio install-sh script instead?) -INSTALL = $(shell $(TOPDIR)/makefiles/gmake/guess_env --install) -ifeq "$(PLATFORM)" "SUNOS" -INSTALL = /usr/ucb/install -else -INSTALL = install -endif - -# the linker library for dynamically loadable modules -# (TODO: check for all platforms, as soon we add loadable modules here from -# old TextWolf) -ifeq "$(PLATFORM)" "LINUX" -LIBS_DL = -ldl -else -LIBS_DL = -endif +#PLATFORM_COMPILE_FLAGS = \ +# -D$(PLATFORM) \ +# -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \ +# -DOS_MINOR_VERSION=$(OS_MINOR_VERSION) diff --git a/makefiles/nmake/sub.mk b/makefiles/nmake/sub.mk index 15d22c2..f300e9b 100644 --- a/makefiles/nmake/sub.mk +++ b/makefiles/nmake/sub.mk @@ -8,7 +8,7 @@ # provides: # - target: all targets -#-include $(TOPDIR)/makefiles/gmake/platform.mk +!include $(TOPDIR)\makefiles\nmake\platform.mk !include $(TOPDIR)\makefiles\nmake\compiler.mk all: local_all |