mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-03-04 04:17:46 +00:00
Makefile: move the calculation of API_MAJOR advance. this fixes versioning lib for OSX
This commit is contained in:
parent
6db860a246
commit
315f02df36
2
Makefile
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user