Makefile (660f79309303d696531ffb394719dfab3e0c42c0) | Makefile (feabc71dfa5807427b6b1a0f8db00d994399210d) |
---|---|
1# Makefile for QEMU. 2 3ifneq ($(words $(subst :, ,$(CURDIR))), 1) 4 $(error main directory cannot contain spaces nor colons) 5endif 6 7# Always point to the root of the build tree (needs GNU make). 8BUILD_DIR=$(CURDIR) --- 141 unchanged lines hidden (view full) --- 150dtc/%: .git-submodule-status 151 @mkdir -p $@ 152 153# Overriding CFLAGS causes us to lose defines added in the sub-makefile. 154# Not overriding CFLAGS leads to mis-matches between compilation modes. 155# Therefore we replicate some of the logic in the sub-makefile. 156# Remove all the extra -Warning flags that QEMU uses that Capstone doesn't; 157# no need to annoy QEMU developers with such things. | 1# Makefile for QEMU. 2 3ifneq ($(words $(subst :, ,$(CURDIR))), 1) 4 $(error main directory cannot contain spaces nor colons) 5endif 6 7# Always point to the root of the build tree (needs GNU make). 8BUILD_DIR=$(CURDIR) --- 141 unchanged lines hidden (view full) --- 150dtc/%: .git-submodule-status 151 @mkdir -p $@ 152 153# Overriding CFLAGS causes us to lose defines added in the sub-makefile. 154# Not overriding CFLAGS leads to mis-matches between compilation modes. 155# Therefore we replicate some of the logic in the sub-makefile. 156# Remove all the extra -Warning flags that QEMU uses that Capstone doesn't; 157# no need to annoy QEMU developers with such things. |
158CAP_CFLAGS = $(patsubst -W%,,$(CFLAGS) $(QEMU_CFLAGS)) | 158CAP_CFLAGS = $(patsubst -W%,,$(CFLAGS) $(QEMU_CFLAGS)) $(CAPSTONE_CFLAGS) |
159CAP_CFLAGS += -DCAPSTONE_USE_SYS_DYN_MEM 160CAP_CFLAGS += -DCAPSTONE_HAS_ARM 161CAP_CFLAGS += -DCAPSTONE_HAS_ARM64 162CAP_CFLAGS += -DCAPSTONE_HAS_POWERPC 163CAP_CFLAGS += -DCAPSTONE_HAS_X86 164 165.PHONY: capstone/all 166capstone/all: .git-submodule-status --- 122 unchanged lines hidden --- | 159CAP_CFLAGS += -DCAPSTONE_USE_SYS_DYN_MEM 160CAP_CFLAGS += -DCAPSTONE_HAS_ARM 161CAP_CFLAGS += -DCAPSTONE_HAS_ARM64 162CAP_CFLAGS += -DCAPSTONE_HAS_POWERPC 163CAP_CFLAGS += -DCAPSTONE_HAS_X86 164 165.PHONY: capstone/all 166capstone/all: .git-submodule-status --- 122 unchanged lines hidden --- |