Commit Graph

183 Commits

Author SHA1 Message Date
Adrian Herrera 229593dc3f mingw build: cstool fails to build with mingw (#941)
The correct compiler was not being passed to cstool/Makefile. The expected name
for the capstone lib was also incorrect - there is no "lib" prefix when
compiling with mingw.
2017-06-02 21:49:10 +08:00
Nick Briggs ce3f0d0935 Rename test.c to test_basic.c with corresponding executable name change. (#923)
* Rename test.c to test_basic.c with corresponding executable name change.

* Fix Makefile, tests/Makefile to comprehend renamed test program. See issue #922

* Fix XCode project to comprehend renamed test program.  See issue #922

* Rename python test.py to test_basic.py to parallel C test name.  See issue #922

* Rename ocaml test.ml to test_basic.ml to parallel C test name.  See issue #922

* Fix MSVC project definitions to comprehend renamed test program.  See issue #922
2017-05-11 22:58:12 +07:00
Nguyen Anh Quynh f4c5d5ef3c Makefile: do not delete capstone.pc.in 2017-05-05 09:46:46 +08:00
Nguyen Anh Quynh 648b39839e improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:00:47 +08:00
Nguyen Anh Quynh 346032797a cstool: compile/clean/install/uninstall from Makefile 2016-10-10 22:54:16 +08:00
Akihiko Odaki 798821f5b5 Fix check target for Unix-like environment 2016-09-03 10:55:19 +09:00
Ron Pinz d086384071 fix building on 10.6.8 without breaking other versions
simplified IS_APPLE grep command by having it return count, with a max find limit of 1 for both Apple $(CC) expected patterns
2015-12-16 11:46:00 -05:00
Ron Pinz 534746b17f fix building on 10.6.8
added __APPLE_CC__ to IS_APPLE test
2015-12-14 23:33:39 -05:00
Pb b8741bd545 OS X kernel support (see https://github.com/aquynh/capstone/pull/528) 2015-11-10 23:02:26 +01:00
Kamil Rytarowski 453b41a29e Allow to build capstone in pkgsrc for FreeBSD and DragonflyBSD
Don't redefine $LIBDATADIR when global environment variable
USE_GENERIC_LIBDATADIR is set. This is used by the pkgsrc framework.
2015-07-27 04:03:48 +02:00
reverser bcf09f440d Add support to embed Capstone into OS X kernel extensions. 2015-04-10 23:28:12 +08:00
Hilko Bengen d83bf84cba Limit exported symbols
Make sure that only symbols that are part of the API are exported by
the library -- similar to __declspec(dllexport) for the MSVC
compiler
2015-02-27 15:51:56 +08:00
Nguyen Anh Quynh 19af3ec9e0 Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency 2015-01-30 10:48:52 +08:00
Nguyen Anh Quynh 243d41e39d fix BUILD_CORE_ONLY option of Makefile, so we can do 'BUILD_CORE_ONLY=yes make.sh' 2015-01-30 10:38:13 +08:00
Nguyen Tan Cong 3d6e56a66f python: fix conflict when merging pypi branch to v3 branch 2015-01-30 10:37:58 +08:00
Nguyen Anh Quynh b16dc856a8 Makefile: check target should also run test_iter 2014-11-02 08:21:34 +08:00
Nguyen Anh Quynh fff1307980 Makefile: simplify generate-pkgcfg by using INCDIR. reviewed by Pancake 2014-10-02 16:14:26 +08:00
Nguyen Anh Quynh e702b55507 Makefile: do not remove old libs in install 'target' 2014-10-02 16:01:00 +08:00
Nguyen Anh Quynh 984d45068c Makefile: add 'check' target 2014-10-01 16:42:29 +08:00
baguette 86e845056d renamed CAPSTONE_NO_ATT to CAPSTONE_X86_ATT_DISABLE, added options to makefile, cmake, compile.txt 2014-08-17 20:59:05 +02:00
Ole André Vadla Ravnås b202b914f9 Simplify universal builds by relying on the linker to do the right thing 2014-07-04 23:38:20 +02:00
Ole André Vadla Ravnås 6583f069a7 Fix universal build support for Mac and iOS 2014-07-04 23:09:19 +02:00
Nguyen Anh Quynh 8c0ab867a1 rename CCLD to LINK 2014-06-03 23:43:53 +07:00
Nguyen Anh Quynh 0936b56c54 rename libcapstone.dll to capstone.dll, libcapstone.lib to capstone.lib for Windows platform 2014-06-04 00:26:33 +08:00
Nguyen Anh Quynh c80d840ffc add XCore architecture 2014-05-26 23:02:48 +08:00
Nguyen Anh Quynh f260c2023e fix some conflicts when merging msvc2 into next 2014-05-19 11:32:55 +08:00
danghvu e1c7a21cae Avoid modifying the raw LDFLAGS directly 2014-05-14 02:13:36 -05:00
Nguyen Anh Quynh 7cc5e9b8f0 Makefile: clean target should delete libs created by all ways of building 2014-05-14 15:07:16 +08:00
Nguyen Anh Quynh 76087d2c33 rename static library extension to .lib for cross-windows building 2014-05-14 14:53:51 +08:00
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
danghvu ad66420061 Switch to cd && make from make -C 2014-05-12 14:27:38 -05:00
Nguyen Anh Quynh 91a19232a2 Makefile: do not overwritte LDFLAGS with null value 2014-05-11 01:13:36 +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