From 315f02df369c602dd9d29f6d37947723aef21000 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 25 Mar 2014 06:43:19 +0800 Subject: [PATCH] Makefile: move the calculation of API_MAJOR advance. this fixes versioning lib for OSX --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cbdd1f160..614a8c69e 100644 --- a/Makefile +++ b/Makefile @@ -181,6 +181,7 @@ LIBOBJ += MCInst.o PKGCFCGDIR = $(LIBDATADIR)/pkgconfig +API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}') VERSION_EXT = # OSX? @@ -219,7 +220,6 @@ CFLAGS := $(CFLAGS:-fPIC=) # On Windows we need the shared library to be executable else # Linux, *BSD -API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}') EXT = so VERSION_EXT = $(EXT).$(API_MAJOR) AR_EXT = a