mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
use PKG_{MAJOR|MINOR} to generate capstone.pc. besides, use dynamic lib rather than static lib for its 'Libs'
This commit is contained in:
parent
5dbe12a85b
commit
d330bf21b6
4
Makefile
4
Makefile
@ -73,13 +73,13 @@ archive: $(LIBOBJ)
|
||||
$(RANLIB) lib$(LIBNAME).$(AR_EXT)
|
||||
|
||||
PC=capstone.pc
|
||||
VERSION=$(shell echo `grep -e MAJOR -e MINOR cs.c|grep -v =| awk '{print $$3}'` | awk '{print $$1"."$$2}')
|
||||
VERSION=$(shell echo `grep -e PKG_MAJOR -e PKG_MINOR cs.c|grep -v =| awk '{print $$3}'` | awk '{print $$1"."$$2}')
|
||||
|
||||
capstone.pc: lib$(LIBNAME).$(AR_EXT)
|
||||
echo Name: capstone > $(PC)
|
||||
echo Description: Capstone disassembler engine >> $(PC)
|
||||
echo Version: $(VERSION) >> $(PC)
|
||||
echo Libs: $(PREFIX)/lib/libcapstone.a >> $(PC)
|
||||
echo Libs: -L$(LIBDIR) -lcapstone >> $(PC)
|
||||
echo Cflags: -I$(PREFIX)/include/capstone >> $(PC)
|
||||
|
||||
install: capstone.pc archive lib
|
||||
|
Loading…
Reference in New Issue
Block a user