Stephen
72cfda9e2e
Cleanup makefile ( #1132 )
2018-05-12 11:36:10 +08:00
Richard Henderson
5423b215bf
Constify backend data ( #1040 )
...
* Constify string literals
Use -Wwrite-strings to force string literals to be of
type "const char[]", then fix up all warning fallout.
* Constify common infrastructure
Step one in allowing backend data to be readonly.
Minimal changes to backends for now; just set all pointers
in common structs that aren't modified to const.
* Constify AArch64 backend
Section size changes within libcapstone.so are
-.rodata 602587
-.data.rel.ro 228416
-.data 1003746
+.rodata 769051
+.data.rel.ro 241120
+.data 824578
* Constify ARM backend
Section size changes within libcapstone.so are
-.rodata 769051
-.data.rel.ro 241120
-.data 824578
+.rodata 959835
+.data.rel.ro 245120
+.data 629506
* Constify Mips backend
Section size changes within libcapstone.so are
-.rodata 959835
-.data.rel.ro 245120
-.data 629506
+.rodata 1069851
+.data.rel.ro 256416
+.data 508194
* Constify PowerPC backend
Section size changes within libcapstone.so are
-.rodata 1069851
-.data.rel.ro 256416
-.data 508194
+.rodata 1142715
+.data.rel.ro 272224
+.data 419490
* Constify Sparc backend
Section size changes within libcapstone.so are
-.rodata 1142715
-.data.rel.ro 272224
-.data 419490
+.rodata 1175227
+.data.rel.ro 277536
+.data 381666
* Constify SystemZ backend
Section size changes within libcapstone.so are
-.rodata 1175227
-.data.rel.ro 277536
-.data 381666
+.rodata 1221883
+.data.rel.ro 278016
+.data 334498
* Constify X86 backend
Section size changes within libcapstone.so are
-.rodata 1221883
-.data.rel.ro 278016
-.data 334498
+.rodata 1533531
+.data.rel.ro 281184
+.data 19714
* Constify XCore backend
Section size changes within libcapstone.so are
-.rodata 1533531
-.data.rel.ro 281184
-.data 19714
+.rodata 1553026
+.data.rel.ro 281280
+.data 40
2017-10-22 08:45:40 +08:00
Jonas
3b14b5de17
Add posibility to disable universal build for osx. ( #1004 )
...
Fixes #1003
2017-09-05 21:45:48 +07:00
Adrian Herrera
9dff618b04
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
2aedb8168c
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
a3c6eca59a
Makefile: do not delete capstone.pc.in
2017-05-05 09:46:46 +08:00
Nguyen Anh Quynh
2f7df0e60c
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
63a424805e
cstool: compile/clean/install/uninstall from Makefile
2016-10-10 22:54:16 +08:00
Akihiko Odaki
d9489c838e
Fix check target for Unix-like environment
2016-09-03 10:55:19 +09:00
Ron Pinz
19adb705bf
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
a0df4af322
fix building on 10.6.8
...
added __APPLE_CC__ to IS_APPLE test
2015-12-14 23:33:39 -05:00
Pb
fe7cb87c72
OS X kernel support (see https://github.com/aquynh/capstone/pull/528 )
2015-11-10 23:02:26 +01:00
Kamil Rytarowski
2209a432bf
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
cf6201419a
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