Sync basetools' source and binary files with r1707 of the basetools project.
[edk2.git] / BaseTools / Source / C / Makefiles / header.makefile
bloba4dc2255e750bad52d32a52a960b501f1def3a23
1 # The makefile can be invoked with
2 # ARCH = x86_64 or x64 for EM64T build
3 # ARCH = ia32 or IA32 for IA32 build
4 # ARCH = ia64 or IA64 for IA64 build
6 ARCH ?= IA32
8 CYGWIN:=$(findstring CYGWIN, $(shell uname -s))
9 LINUX:=$(findstring Linux, $(shell uname -s))
10 DARWIN:=$(findstring Darwin, $(shell uname -s))
12 CC = gcc
13 CXX = g++
14 AS = gcc
15 AR = ar
16 LD = ld
17 LINKER ?= $(CC)
18 ifeq ($(ARCH), IA32)
19 ARCH_INCLUDE = -I $(MAKEROOT)/Include/Ia32/
20 endif
22 ifeq ($(ARCH), X64)
23 ARCH_INCLUDE = -I $(MAKEROOT)/Include/X64/
24 endif
26 INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE) 
27 CPPFLAGS = $(INCLUDE)
28 CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fno-merge-constants -nostdlib -Wall -Werror -c -g
30 .PHONY: all
31 .PHONY: install
32 .PHONY: clean
34 all:
36 $(MAKEROOT)/libs:
37         mkdir $(MAKEROOT)/libs 
39 $(MAKEROOT)/bin:
40         mkdir $(MAKEROOT)/bin