mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
improve dependency on header files *.h, and remove clean from make.sh. see PR #793
This commit is contained in:
parent
0382c90220
commit
3f1df56bf1
2
Makefile
2
Makefile
@ -375,7 +375,7 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
$(LIBOBJ): config.mk
|
||||
$(LIBOBJ): config.mk *.h include/capstone/*.h
|
||||
|
||||
$(LIBOBJ_ARM): $(DEP_ARM)
|
||||
$(LIBOBJ_ARM64): $(DEP_ARM64)
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define CAPSTONE_ENGINE_H
|
||||
|
||||
/* Capstone Disassembly Engine */
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2016 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
4
make.sh
4
make.sh
@ -42,14 +42,11 @@ build_android() {
|
||||
TOOLCHAIN="$NDK/toolchains/$CROSS$GCCVER/prebuilt/$HOSTOS-$HOSTARCH"
|
||||
PLATFORM="$NDK/platforms/$APILEVEL/arch-$TARGARCH"
|
||||
|
||||
${MAKE} clean
|
||||
|
||||
CROSS="$TOOLCHAIN/bin/$CROSS" CFLAGS="--sysroot=$PLATFORM" LDFLAGS="--sysroot=$PLATFORM" ${MAKE} $*
|
||||
}
|
||||
|
||||
# build iOS lib for all iDevices, or only specific device
|
||||
build_iOS() {
|
||||
${MAKE} clean
|
||||
IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path`
|
||||
IOS_CC=`xcrun --sdk iphoneos -f clang`
|
||||
IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
|
||||
@ -69,7 +66,6 @@ build_iOS() {
|
||||
|
||||
build() {
|
||||
[ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64"
|
||||
${MAKE} clean
|
||||
${MAKE} $*
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user