mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-08 22:30:30 +00:00
3e3efcc005
Do not use #include <capstone/..> This ensures compatibility with both capstone v3 and capstone as installed on most distributions, where the pkg-config file of capstone already adds -I/usr/include/capstone (with that dir directly containing the headers).
16 lines
406 B
Makefile
16 lines
406 B
Makefile
ifeq ($(USE_CAPSTONE),1)
|
|
CS_CFLAGS=${CAPSTONE_CFLAGS}
|
|
CS_LDFLAGS=${CAPSTONE_LDFLAGS}
|
|
else
|
|
CS_CFLAGS=-I../../shlr/capstone/include
|
|
CS_CFLAGS+=-I../../../shlr/capstone/include
|
|
CS_CFLAGS+=-I../../shlr/capstone/include/capstone
|
|
CS_CFLAGS+=-I../../../shlr/capstone/include/capstone
|
|
CS_LDFLAGS=$(SHLR)/capstone/libcapstone.a
|
|
endif
|
|
|
|
ifeq ($(CS_CFLAGS_INCLUDED),)
|
|
CFLAGS+=$(CS_CFLAGS)
|
|
CS_CFLAGS_INCLUDED=Yes
|
|
endif
|