Commit Graph

152 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 506890863c x86: assembly syntax is irrelevant in Diet mode. this optimization reduces library size to only 180KB on OSX 2014-05-14 12:26:53 +08:00
Nguyen Anh Quynh 55b8ecd7bd Makefile: do not overwritte LDFLAGS with null value 2014-05-11 01:04:05 +08:00
Nguyen Anh Quynh b07523ff26 Merge branch 'next' into msvc2 2014-05-10 19:46:37 +08:00
Nguyen Anh Quynh 87a3f6915d Makefile: define CAPSTONE_USE_SYS_DYN_MEM macro for consistency 2014-05-10 19:26:32 +08:00
Nguyen Anh Quynh 595386c668 do not overwrite LDFLAGS in tests/Makefile 2014-05-10 15:50:38 +08:00
Nguyen Anh Quynh 58a0047d43 Makefile: put common functions into functions.mk 2014-05-01 22:53:52 +08:00
Ole André Vadla Ravnås 927fcbcf88 Makefile: make it possible to avoid building static/shared library 2014-05-01 16:06:11 +02:00
Ole André Vadla Ravnås f536d4014b Makefile: implement a "silent rules" approach
The old behavior is still available through `make V=1`. This is similar
to the Linux kernel and newer versions of automake.
2014-05-01 16:06:03 +02:00
Ole André Vadla Ravnås c20b049d04 Makefile: detect Apple toolchain instead of relying on uname
This allows cross-compiling for Android on a Mac.
2014-05-01 16:05:58 +02:00
Ole André Vadla Ravnås 24094ee7e9 Makefile: fix install target when building out-of-tree 2014-05-01 16:05:53 +02:00
Nguyen Anh Quynh 375f03c230 Makefile: build tests in the old way if BUILDDIR is not defined. this fixes a bug introduced by some recent changes by Ole André Vadla Ravnås 2014-04-30 07:19:18 +08:00
Ole André Vadla Ravnås 7a7343945d Makefile: allow `BUILDDIR` to be a relative path 2014-04-30 00:06:41 +02:00
Nguyen Anh Quynh 6ae472fe36 Makefile: avoid redefining BUILDDIR, so we can remove its directory in clean target 2014-04-29 16:29:55 +08:00
Nguyen Anh Quynh 5519a68812 Makefile: fix clean targets and put all test binaries under BUILDIR/tests/ 2014-04-29 16:24:30 +08:00
Nguyen Anh Quynh df60ada2ad Merge branch 'feature/build-out-of-tree' of https://github.com/frida/capstone into config 2014-04-29 15:13:55 +08:00
Ole André Vadla Ravnås 35f937d2db Adapt core build system to allow building out-of-tree
Simply define `BUILDDIR` to where you would like build output to go.
2014-04-29 09:00:34 +02:00
Nguyen Anh Quynh e31327da14 rename USE_SYS_DYN_MEM to CAPSTONE_USE_SYS_DYN_MEM for consistency with other options 2014-04-29 14:25:15 +08:00
Nguyen Anh Quynh 77af9fb9c6 Allow user to specify compiler optimization flags via CFLAGS at compile time. suggested by Ole André Vadla Ravnås 2014-04-29 07:11:55 +08:00
Nguyen Anh Quynh 360bf1e6ff handle special systems putting x86_64 libs into lib64/ in make.sh, not in Makefile 2014-04-14 13:38:00 +08:00
Nguyen Anh Quynh af0e937d19 make.sh: copy capstone.pc to the right dir for pkgconfig. adapted from patches of Ben Nagy & Pancake 2014-04-12 23:10:46 +08:00
Nguyen Anh Quynh 9b4b377433 Makefile: rename to PKGCFCGDIR to PKGCFGDIR. patch by Pancake 2014-04-12 18:06:54 +08:00
Nguyen Anh Quynh e3606d90a2 Makefile: no more pkgconfig hack 2014-04-12 18:02:55 +08:00
Nguyen Anh Quynh 70ec05dad3 Makefile: fix lib64 setup for x64 non-OSX (including Linux) 2014-04-08 23:48:30 +08:00
Nguyen Anh Quynh ad6cc985d7 Makefile: on x64, prefer /usr/lib64, if it is existent, over /usr/lib. bug reported & fix suggested by @chaostheory88 2014-04-08 23:34:44 +08:00
Nguyen Anh Quynh 4011d7374d revert pkgconfig.mk 2014-03-31 20:47:35 +08:00
Nguyen Anh Quynh 719e9da011 Makefile: OSX need -dynamiclib option 2014-03-30 22:29:46 +08:00
Nguyen Anh Quynh cad464d097 Makefile: OSX need -dynamiclib option 2014-03-30 22:29:03 +08:00
Nguyen Anh Quynh 2d201349fa Makefile: -share option is not for Darwin 2014-03-30 22:26:15 +08:00
Nguyen Anh Quynh 927b2add31 Makefile: -share option is not for Darwin 2014-03-30 22:25:16 +08:00
Nguyen Anh Quynh 59a53c1d3a Makefile: make current_version & compatibility_version use pkgconfig.mk on OSX 2014-03-29 22:48:55 +08:00
Nguyen Anh Quynh 189e83a486 Makefile: add a check for Brew compilation environment (HOMEBREW_CAPSTONE=1) 2014-03-29 22:48:43 +08:00
Nguyen Anh Quynh aca71c0714 Makefile: make current_version & compatibility_version use pkgconfig.mk on OSX 2014-03-29 22:47:23 +08:00
Nguyen Anh Quynh 6606ebd719 Makefile: add a check for Brew compilation environment (HOMEBREW_CAPSTONE=1) 2014-03-29 22:36:05 +08:00
Nguyen Anh Quynh 235a274fa0 Makefile: move UNAME_S calculation advance 2014-03-29 21:10:15 +08:00
Nguyen Anh Quynh 1d447534d3 Makefile: no lib64 for OSX 2014-03-29 21:09:56 +08:00
Nguyen Anh Quynh bc78f3a84f Makefile: move UNAME_S calculation advance 2014-03-29 21:09:35 +08:00
Nguyen Anh Quynh dbe27845ad Makefile: no lib64 for OSX 2014-03-29 21:07:37 +08:00
Nguyen Anh Quynh 0b81a91547 Merge branch 'next' of https://github.com/aquynh/capstone into next 2014-03-28 10:30:30 +08:00
Nguyen Anh Quynh 81d930ad1f Makefile: X86-reduce & Diet options should compile with size optimization 2014-03-28 10:28:57 +08:00
Nguyen Anh Quynh 71264b2d5c no more diet.h 2014-03-27 21:04:57 +08:00
Nguyen Anh Quynh c78ed98531 Revert "no more diet.h"
This reverts commit 02d04698d1.
2014-03-27 21:04:10 +08:00
Nguyen Anh Quynh 02d04698d1 no more diet.h 2014-03-27 21:03:47 +08:00
Nguyen Anh Quynh 5721d1ba28 no more diet.h 2014-03-27 21:01:08 +08:00
Nguyen Anh Quynh 731f73fd80 Makefile: make config.mk the dependency of object files 2014-03-27 17:54:44 +08:00
Nguyen Anh Quynh aeb0c406ec Makefile: make config.mk the dependency of object files 2014-03-27 17:54:27 +08:00
Nguyen Anh Quynh 12e6ebcb94 remove the useless diet.h 2014-03-27 17:15:18 +08:00
Nguyen Anh Quynh 901631eaed remove the useless diet.h 2014-03-27 17:14:57 +08:00
Nguyen Anh Quynh 59b5489d8e x86: rename X86_COMPACT to X86_REDUCE. suggested by Pancake 2014-03-27 10:54:44 +08:00
Nguyen Anh Quynh 9518148e6f add X86_COMPACT option. also add CS_SUPPORT_X86_COMPACT. made Python support this change 2014-03-25 23:20:41 +08:00
Nguyen Anh Quynh a8fb48c5b3 support dylib versioning for OSX 2014-03-25 11:32:03 +08:00