mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 04:39:21 +00:00
9f0cdc4be9
Update eflags_nosync.c Update sigill2.c Update ro_mem_test.c Update ro_mem_test.c Update nr_mem_test.c Update mem_fuzz.c Update mem_double_unmap.c Update emu_stop_in_hook_overrun.c Update eflags_nosync.c remove unused Update Makefile Update Makefile Update Makefile Update Makefile Update Makefile Update Makefile Update Makefile Update mem_64_c.c Update mem_64_c.c Update Makefile Update Makefile Update Makefile Update Makefile Update Makefile Update Makefile Update .travis.yml try android ndk build Update unicorn.py Update unicorn.py Update Makefile Update unicorn.py Update unicorn.py remove an untrue comment if a dll/so/dylib gets loaded at runtime is dependent on many different factors, primarily the LD/DYLD paths. Those do not always include the current working directory Update Makefile Update .appveyor.yml Update .travis.yml Update Makefile Update .appveyor.yml Fix bad sample
47 lines
1,018 B
Makefile
47 lines
1,018 B
Makefile
# Unicorn Engine
|
|
# By Nguyen Anh Quynh & Dang Hoang Vu, 2015
|
|
DIFF = diff
|
|
|
|
SAMPLE_SOURCE = $(wildcard ../samples/*.c)
|
|
SAMPLE = $(SAMPLE_SOURCE:../samples/%.c=%)
|
|
SAMPLE := $(SAMPLE:mem_apis=)
|
|
SAMPLE := $(SAMPLE:sample_batch_reg=)
|
|
SAMPLE := $(SAMPLE:sample_x86_32_gdt_and_seg_regs=)
|
|
SAMPLE := $(SAMPLE:shellcode=)
|
|
|
|
ENV_VARS = LD_LIBRARY_PATH=../ DYLD_LIBRARY_PATH=../
|
|
|
|
.PHONY: build install python c clean check test
|
|
|
|
build:
|
|
$(MAKE) -C python gen_const
|
|
$(MAKE) -C go gen_const
|
|
$(MAKE) -C java gen_const
|
|
$(MAKE) -C ruby gen_const
|
|
python const_generator.py dotnet
|
|
|
|
install: build
|
|
$(MAKE) -C python install
|
|
$(MAKE) -C java install
|
|
|
|
test: $(SAMPLE:%=%.py.test)
|
|
|
|
c:
|
|
$(MAKE) -C ../samples
|
|
python:
|
|
$(MAKE) -C python
|
|
%.c.txt: c
|
|
$(ENV_VARS) ../samples/$(@:%.c.txt=%) > $@
|
|
%.py.txt: python
|
|
$(ENV_VARS) python python/$(@:%.txt=%) > $@
|
|
|
|
%.py.test: %.c.txt %.py.txt
|
|
$(DIFF) $(@:%.py.test=%.c.txt) $(@:%.py.test=%.py.txt)
|
|
|
|
clean:
|
|
# rm -rf *.txt
|
|
$(MAKE) -C python clean
|
|
$(MAKE) -C java clean
|
|
|
|
check:
|
|
make -C python check
|