Copy wininet to branch
[reactos.git] / reactos / tools / tools-check.mak
1 PATH_TO_TOP = ..
2 include $(PATH_TO_TOP)/rules.mak
3
4 #
5 # Get the binutils version
6 #
7 # The "ld -v" output can be in either of these two formats:
8 # "GNU ld version 050113 20050113" (nightly build)
9 # "GNU ld version 2.15.94 20050118" (official release)
10 #
11
12 BINUTILS_VERSION_DATE=$(word 5,$(shell $(PREFIX)ld -v))
13
14 all:
15 ifeq ($(HOST),mingw32-linux)
16 @echo "#define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE)" > tools-check.h
17 endif
18 ifeq ($(HOST),mingw32-windows)
19 @echo #define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE) > tools-check.h
20 endif
21 $(HOST_CC) -c tools-check.c -o tools-check.temp
22 $(RM) tools-check.temp
23 $(RM) tools-check.h