LEFT | RIGHT |
1 #! gmake | 1 #! gmake |
2 # | 2 # |
3 # This Source Code Form is subject to the terms of the Mozilla Public | 3 # This Source Code Form is subject to the terms of the Mozilla Public |
4 # License, v. 2.0. If a copy of the MPL was not distributed with this | 4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 | 6 |
7 ####################################################################### | 7 ####################################################################### |
8 # (1) Include initial platform-independent assignments (MANDATORY). # | 8 # (1) Include initial platform-independent assignments (MANDATORY). # |
9 ####################################################################### | 9 ####################################################################### |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 ####################################################################### | 41 ####################################################################### |
42 # (7) Execute "local" rules. (OPTIONAL). # | 42 # (7) Execute "local" rules. (OPTIONAL). # |
43 ####################################################################### | 43 ####################################################################### |
44 | 44 |
45 MKPROG = $(CCC) | 45 MKPROG = $(CCC) |
46 CFLAGS += -I$(CORE_DEPTH)/lib/ssl | 46 CFLAGS += -I$(CORE_DEPTH)/lib/ssl |
47 | 47 |
48 include ../../cmd/platrules.mk | 48 include ../../cmd/platrules.mk |
49 | 49 |
50 ifeq (WINNT,$(OS_ARCH)) | 50 ifeq (WINNT,$(OS_ARCH)) |
51 # -MTd (not -MD) because that makes it link to the right library | |
52 # -EHsc because gtest has exception handlers | 51 # -EHsc because gtest has exception handlers |
53 OS_CFLAGS := $(filterout -MD,$(OS_CFLAGS)) | 52 OS_CFLAGS += -EHsc -nologo |
54 OS_CFLAGS += -MTd -EHsc -nologo | |
55 # http://www.suodenjoki.dk/us/archive/2010/min-max.htm | 53 # http://www.suodenjoki.dk/us/archive/2010/min-max.htm |
56 OS_CFLAGS += -DNOMINMAX | 54 OS_CFLAGS += -DNOMINMAX |
57 | 55 |
58 # Linking to winsock to get htonl | 56 # Linking to winsock to get htonl |
59 OS_LIBS += Ws2_32.lib | 57 OS_LIBS += Ws2_32.lib |
60 else | 58 else |
61 CXXFLAGS += -std=c++0x | 59 CXXFLAGS += -std=c++0x |
62 endif | 60 endif |
LEFT | RIGHT |