Makefile: move the calculation of API_MAJOR advance. this fixes versioning lib for OSX

This commit is contained in:
Nguyen Anh Quynh 2014-03-25 06:43:19 +08:00
parent 6db860a246
commit 315f02df36

View File

@ -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