Skip to content

Commit

Permalink
Makefile: move the calculation of API_MAJOR advance. this fixes versi…
Browse files Browse the repository at this point in the history
…oning lib for OSX
  • Loading branch information
aquynh committed Mar 24, 2014
1 parent 6db860a commit 315f02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 315f02d

Please sign in to comment.