use pkg-config to get libcapstone config

This commit is contained in:
Tiago Rodrigues 2023-11-17 16:52:06 -05:00 committed by trodrigues
parent a887d558f1
commit 94e7da11ec

View File

@ -1,9 +1,8 @@
CFLAGS +=
CXXFLAGS := $(CFLAGS) -std=gnu++17
DEFINES += -DTRACY_NO_STATISTICS
INCLUDES := -I../../../capstone/include/capstone
LIBS += -lcapstone -lpthread
LDFLAGS := -L../../../capstone
INCLUDES := $(shell pkg-config --cflags capstone)
LIBS += $(shell pkg-config --libs capstone) -lpthread
PROJECT := tracy-edit
IMAGE := $(PROJECT)-$(BUILD)