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 += CFLAGS +=
CXXFLAGS := $(CFLAGS) -std=gnu++17 CXXFLAGS := $(CFLAGS) -std=gnu++17
DEFINES += -DTRACY_NO_STATISTICS DEFINES += -DTRACY_NO_STATISTICS
INCLUDES := -I../../../capstone/include/capstone INCLUDES := $(shell pkg-config --cflags capstone)
LIBS += -lcapstone -lpthread LIBS += $(shell pkg-config --libs capstone) -lpthread
LDFLAGS := -L../../../capstone
PROJECT := tracy-edit PROJECT := tracy-edit
IMAGE := $(PROJECT)-$(BUILD) IMAGE := $(PROJECT)-$(BUILD)