pancake
63414a490e
Rewrite make.sh to make it shorter, faster and more portable
...
- Remove bashisms (use posix shell)
- Use only two space indentation (no mixed tabs)
- Honor $0 and autogenerate help message
- Correct use of exported and local vars
- Simplify spaguetti (-30LOC)
- Update copyright year
- Quote all vars to avoid command injection
- Cache uname value and allow to override it
- Honor user environment
- Support MAKE_JOBS (by default is 4)
10 years ago
Hilko Bengen
e0352d69d8
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
10 years ago
pancake
9c10ace558
Make pkg-config and source consistent with installation
10 years ago
Nguyen Anh Quynh
794a706b3e
Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency
10 years ago
Nguyen Anh Quynh
8aa6fce278
Revert "Makefile: avoid generating capstone.pc if BUILD_CORE_ONLY=yes"
...
This reverts commit 35d4e449e1
.
10 years ago
Nguyen Anh Quynh
35d4e449e1
Makefile: avoid generating capstone.pc if BUILD_CORE_ONLY=yes
10 years ago
Nguyen Anh Quynh
c00bc358b1
fix BUILD_CORE_ONLY option of Makefile, so we can do 'BUILD_CORE_ONLY=yes make.sh'
10 years ago
Nguyen Tan Cong
39fd154139
Edit setup.py to build python binding with make.sh
10 years ago
Nguyen Anh Quynh
b16dc856a8
Makefile: check target should also run test_iter
10 years ago
Nguyen Anh Quynh
fff1307980
Makefile: simplify generate-pkgcfg by using INCDIR. reviewed by Pancake
10 years ago
Nguyen Anh Quynh
e702b55507
Makefile: do not remove old libs in install 'target'
10 years ago
Nguyen Anh Quynh
984d45068c
Makefile: add 'check' target
10 years ago
baguette
86e845056d
renamed CAPSTONE_NO_ATT to CAPSTONE_X86_ATT_DISABLE, added options to makefile, cmake, compile.txt
10 years ago
Ole André Vadla Ravnås
b202b914f9
Simplify universal builds by relying on the linker to do the right thing
11 years ago
Ole André Vadla Ravnås
6583f069a7
Fix universal build support for Mac and iOS
11 years ago
Nguyen Anh Quynh
8c0ab867a1
rename CCLD to LINK
11 years ago
Nguyen Anh Quynh
0936b56c54
rename libcapstone.dll to capstone.dll, libcapstone.lib to capstone.lib for Windows platform
11 years ago
Nguyen Anh Quynh
c80d840ffc
add XCore architecture
11 years ago
danghvu
e1c7a21cae
Avoid modifying the raw LDFLAGS directly
11 years ago
Nguyen Anh Quynh
7cc5e9b8f0
Makefile: clean target should delete libs created by all ways of building
11 years ago
Nguyen Anh Quynh
76087d2c33
rename static library extension to .lib for cross-windows building
11 years ago
Nguyen Anh Quynh
506890863c
x86: assembly syntax is irrelevant in Diet mode. this optimization reduces library size to only 180KB on OSX
11 years ago
danghvu
ad66420061
Switch to cd && make from make -C
11 years ago
Nguyen Anh Quynh
91a19232a2
Makefile: do not overwritte LDFLAGS with null value
11 years ago
Nguyen Anh Quynh
55b8ecd7bd
Makefile: do not overwritte LDFLAGS with null value
11 years ago
Nguyen Anh Quynh
87a3f6915d
Makefile: define CAPSTONE_USE_SYS_DYN_MEM macro for consistency
11 years ago
Nguyen Anh Quynh
595386c668
do not overwrite LDFLAGS in tests/Makefile
11 years ago
Nguyen Anh Quynh
58a0047d43
Makefile: put common functions into functions.mk
11 years ago
Ole André Vadla Ravnås
927fcbcf88
Makefile: make it possible to avoid building static/shared library
11 years ago
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.
11 years ago
Ole André Vadla Ravnås
c20b049d04
Makefile: detect Apple toolchain instead of relying on uname
...
This allows cross-compiling for Android on a Mac.
11 years ago
Ole André Vadla Ravnås
24094ee7e9
Makefile: fix install target when building out-of-tree
11 years ago
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
11 years ago
Ole André Vadla Ravnås
7a7343945d
Makefile: allow `BUILDDIR` to be a relative path
11 years ago
Nguyen Anh Quynh
6ae472fe36
Makefile: avoid redefining BUILDDIR, so we can remove its directory in clean target
11 years ago
Nguyen Anh Quynh
5519a68812
Makefile: fix clean targets and put all test binaries under BUILDIR/tests/
11 years ago
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.
11 years ago
Nguyen Anh Quynh
e31327da14
rename USE_SYS_DYN_MEM to CAPSTONE_USE_SYS_DYN_MEM for consistency with other options
11 years ago
Nguyen Anh Quynh
77af9fb9c6
Allow user to specify compiler optimization flags via CFLAGS at compile time. suggested by Ole André Vadla Ravnås
11 years ago
Nguyen Anh Quynh
897e10ff4b
handle special systems putting x86_64 libs into lib64/ in make.sh, not in Makefile
11 years ago
Nguyen Anh Quynh
360bf1e6ff
handle special systems putting x86_64 libs into lib64/ in make.sh, not in Makefile
11 years ago
Nguyen Anh Quynh
217684f197
make.sh: copy capstone.pc to the right dir for pkgconfig. adapted from patches of Ben Nagy & Pancake
11 years ago
Nguyen Anh Quynh
d65abd4bde
Makefile: rename to PKGCFCGDIR to PKGCFGDIR. patch by Pancake
11 years ago
Nguyen Anh Quynh
9a548d4fbc
Makefile: no more pkgconfig hack
11 years ago
Nguyen Anh Quynh
af0e937d19
make.sh: copy capstone.pc to the right dir for pkgconfig. adapted from patches of Ben Nagy & Pancake
11 years ago
Nguyen Anh Quynh
9b4b377433
Makefile: rename to PKGCFCGDIR to PKGCFGDIR. patch by Pancake
11 years ago
Nguyen Anh Quynh
e3606d90a2
Makefile: no more pkgconfig hack
11 years ago
Nguyen Anh Quynh
70ec05dad3
Makefile: fix lib64 setup for x64 non-OSX (including Linux)
11 years ago
Nguyen Anh Quynh
ad6cc985d7
Makefile: on x64, prefer /usr/lib64, if it is existent, over /usr/lib. bug reported & fix suggested by @chaostheory88
11 years ago
Nguyen Anh Quynh
719e9da011
Makefile: OSX need -dynamiclib option
11 years ago