Debian Codegraph @

src/Makefile

raw symbols SCIP
1 # D-ITG Main Makefile
2 #
3 # It automatically includes the right mk files depending
4 # on the host and the T
5
6 # Host OS detection
7 ifndef OS
8 OS := $(shell uname)
9 endif
10
11 # Makefile selection
12 ifeq ($(OS),Linux)
13 ifeq ($(T),win)
14 MKFILE := linux-mingw.mk
15 else
16 MKFILE := unix.mk
17 endif
18 endif
19 ifeq ($(OS),FreeBSD)
20 ifndef T
21 MKFILE := unix.mk
22 endif
23 endif
24 ifeq ($(OS),Darwin)
25 ifndef T
26 MKFILE := unix.mk
27 endif
28 endif
29 ifeq ($(OS),Windows_NT)
30 ifndef T
31 MKFILE := win-mingw.mk
32 endif
33 endif
34
35 # Include the right mk file
36 ifdef MKFILE
37 include $(MKFILE)
38 else
39 error:
40 ifdef T
41 @ echo "Cross-compiling for $(T) target is not currently supported"
42 else
43 @ echo "$(OS) currently not supported"
44 endif
45 endif
46
47 # EOF