diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 19:55:42 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 19:55:42 +0100 |
commit | 7de22b92399504daf951c830b3b0d7d7cffc3d9f (patch) | |
tree | 192716ad1fd07c1703e9911cf6bbda0f85db50a8 /makefiles/gmake/platform.mk | |
parent | 03e26d2afeba8d7db58106decf195da924b9bd95 (diff) | |
download | crawler-7de22b92399504daf951c830b3b0d7d7cffc3d9f.tar.gz crawler-7de22b92399504daf951c830b3b0d7d7cffc3d9f.tar.bz2 |
moved makefiles
Diffstat (limited to 'makefiles/gmake/platform.mk')
-rw-r--r-- | makefiles/gmake/platform.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk new file mode 100644 index 0000000..36d5ebb --- /dev/null +++ b/makefiles/gmake/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/gmake/guess_env --platform) +OS_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-version) +OS_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/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/gmake/guess_env --libs-dl) +LIBS_SSP = $(shell $(TOPDIR)/makefiles/gmake/guess_env --libs-ssl) + +EXE = +SO = .so + +GCC_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-major-version $(CC)) +GCC_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-minor-version $(CC)) |