Files
manticore/examples/linux/Makefile
Yan Ivnitskiy 60d2b61fb3 Run linux examples in Travis (#668)
* Update makefile; add a list target for testing

* simplify nostdlib example

* Make sendmail example return success

* Add tests to run all examples

* Add some targets to exclude

* Run example scripts; temporarily add a workspace accsesor to mcore

* Optionally read end of main from argv

* Make concolic test more robust

* Clean up Makefile

* Be better with phony targets

* Add run_simple and state_control tests

* verbosity++

* Make sure we fail when we intend to

* Simplify travis_test.sh

* Remove multi_arch_sym
2018-01-18 15:50:13 -05:00

34 lines
678 B
Makefile

CC=gcc
CFLAGS=-O3 -static
NOSTDLIBFLAGS=-fno-builtin -static -nostdlib -fomit-frame-pointer
EXAMPLES=basic sindex strncmp arguments ibranch sendmail crackme indexhell helloworld simple_copy simpleassert
OTHER_EXAMPLES=nostdlib
all: $(EXAMPLES) $(OTHER_EXAMPLES)
arm: CC=arm-linux-gnueabi-gcc
arm: $(EXAMPLES)
.PHONY: list clean
list:
@echo $(EXAMPLES)
clean:
rm -rf $(EXAMPLES) $(OTHER_EXAMPLES) crackme.c
% : %.c
$(CC) $(CFLAGS) $< -o $@
nostdlib: nostdlib.c
$(CC) -m32 $(NOSTDLIBFLAGS) $< -o $@
# simpleassert needs -O0
simpleassert: simpleassert.c
$(CC) $(CFLAGS) -O0 $< -o $@
# crackme needs to be generated
crackme.c: crackme.py
python crackme.py > $@