diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2008-09-27 17:52:05 +0000 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2008-09-27 17:52:05 +0000 |
commit | 6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8 (patch) | |
tree | 0c4e761c5b5aad7010c210a4519a2a72760af55d /makefiles/platform.mk | |
parent | eedc9cd68aef078e4584e43d8055d70e1fa07351 (diff) | |
download | nagios-plugin-curl-6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8.tar.gz nagios-plugin-curl-6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8.tar.bz2 |
- added first runnig version
Diffstat (limited to 'makefiles/platform.mk')
-rw-r--r-- | makefiles/platform.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/makefiles/platform.mk b/makefiles/platform.mk new file mode 100644 index 0000000..175e25f --- /dev/null +++ b/makefiles/platform.mk @@ -0,0 +1,34 @@ +# 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 +# +# requires: +# - TOPDIR +# +# provides: +# - PLATFORM +# - OS_MAJOR_VERSION +# - OS_MINOR_VERSION +# - PLATFORM_COMPILE_FLAGS +# - EXE +# - SO +# +# author: Andreas Baumann, abaumann at yahoo dot com + +PLATFORM = $(shell $(TOPDIR)/makefiles/guess_env --platform) +OS_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/guess_env --os-major-version) +OS_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/guess_env --os-minor-version) + +PLATFORM_COMPILE_FLAGS = \ + -D$(PLATFORM) \ + -DOS_MAJOR_VERSION=$(OS_MAJOR_VERSION) \ + -DOS_MINOR_VERSION=$(OS_MINOR_VERSION) + +LIBS_DL = $(shell $(TOPDIR)/makefiles/guess_env --libs-dl) +LIBS_SSP = $(shell $(TOPDIR)/makefiles/guess_env --libs-ssl) + +EXE = +SO = .so + +GCC_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/guess_env --gcc-major-version $(CC)) +GCC_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/guess_env --gcc-minor-version $(CC)) |