improve dependency on header files *.h, and remove clean from make.sh. see PR #793

This commit is contained in:
Nguyen Anh Quynh 2016-10-23 02:09:14 +08:00
parent 0382c90220
commit 3f1df56bf1
3 changed files with 2 additions and 6 deletions

View File

@ -375,7 +375,7 @@ else
endif endif
endif endif
$(LIBOBJ): config.mk $(LIBOBJ): config.mk *.h include/capstone/*.h
$(LIBOBJ_ARM): $(DEP_ARM) $(LIBOBJ_ARM): $(DEP_ARM)
$(LIBOBJ_ARM64): $(DEP_ARM64) $(LIBOBJ_ARM64): $(DEP_ARM64)

View File

@ -2,7 +2,7 @@
#define CAPSTONE_ENGINE_H #define CAPSTONE_ENGINE_H
/* Capstone Disassembly Engine */ /* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2016 */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -42,14 +42,11 @@ build_android() {
TOOLCHAIN="$NDK/toolchains/$CROSS$GCCVER/prebuilt/$HOSTOS-$HOSTARCH" TOOLCHAIN="$NDK/toolchains/$CROSS$GCCVER/prebuilt/$HOSTOS-$HOSTARCH"
PLATFORM="$NDK/platforms/$APILEVEL/arch-$TARGARCH" PLATFORM="$NDK/platforms/$APILEVEL/arch-$TARGARCH"
${MAKE} clean
CROSS="$TOOLCHAIN/bin/$CROSS" CFLAGS="--sysroot=$PLATFORM" LDFLAGS="--sysroot=$PLATFORM" ${MAKE} $* CROSS="$TOOLCHAIN/bin/$CROSS" CFLAGS="--sysroot=$PLATFORM" LDFLAGS="--sysroot=$PLATFORM" ${MAKE} $*
} }
# build iOS lib for all iDevices, or only specific device # build iOS lib for all iDevices, or only specific device
build_iOS() { build_iOS() {
${MAKE} clean
IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path` IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path`
IOS_CC=`xcrun --sdk iphoneos -f clang` IOS_CC=`xcrun --sdk iphoneos -f clang`
IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK" IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
@ -69,7 +66,6 @@ build_iOS() {
build() { build() {
[ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64" [ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64"
${MAKE} clean
${MAKE} $* ${MAKE} $*
} }