mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-05 19:45:39 +00:00
Updated Makefile to install bindings (in addition to building)
Updated Haskell README to explain how to build the samples
This commit is contained in:
parent
b53bab1362
commit
4cbe52a701
|
@ -11,15 +11,20 @@ SAMPLE_M68K = $(TMP_DIR)/sample_m68k
|
||||||
SAMPLE_SPARC = $(TMP_DIR)/sample_sparc
|
SAMPLE_SPARC = $(TMP_DIR)/sample_sparc
|
||||||
SAMPLE_X86 = $(TMP_DIR)/sample_x86
|
SAMPLE_X86 = $(TMP_DIR)/sample_x86
|
||||||
|
|
||||||
.PHONY: all expected python
|
.PHONY: build install samples sample_python expected python sample_diff clean check
|
||||||
|
|
||||||
all:
|
build:
|
||||||
cd python && $(MAKE) gen_const
|
cd python && $(MAKE) gen_const
|
||||||
cd go && $(MAKE) gen_const
|
cd go && $(MAKE) gen_const
|
||||||
cd java && $(MAKE) gen_const
|
cd java && $(MAKE) gen_const
|
||||||
python const_generator.py dotnet
|
python const_generator.py dotnet
|
||||||
cd haskell && cabal install --dependencies-only && cabal configure && cabal build
|
cd haskell && cabal install --dependencies-only && cabal configure && cabal build
|
||||||
|
|
||||||
|
install: build
|
||||||
|
cd python && $(MAKE) install
|
||||||
|
cd java && $(MAKE) install
|
||||||
|
cd haskell && cabal install
|
||||||
|
|
||||||
samples: expected python
|
samples: expected python
|
||||||
|
|
||||||
sample_python: expected python
|
sample_python: expected python
|
||||||
|
@ -55,6 +60,7 @@ sample_diff: FORCE
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(TMP_DIR)
|
rm -rf $(TMP_DIR)
|
||||||
cd python && $(MAKE) clean
|
cd python && $(MAKE) clean
|
||||||
|
cd java && $(MAKE) clean
|
||||||
cd haskell && cabal clean
|
cd haskell && cabal clean
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
|
|
@ -26,3 +26,8 @@ If the build fails, install c2hs manually `cabal install c2hs` (note that this
|
||||||
will probably also require you to run `cabal install alex` and `cabal install
|
will probably also require you to run `cabal install alex` and `cabal install
|
||||||
happy` as well). If you are NOT using a sandbox, ensure that `$HOME/.cabal/bin`
|
happy` as well). If you are NOT using a sandbox, ensure that `$HOME/.cabal/bin`
|
||||||
is on your PATH.
|
is on your PATH.
|
||||||
|
|
||||||
|
To build a sample (after having built and installed the Haskell bindings)
|
||||||
|
|
||||||
|
$ cd bindings/haskell
|
||||||
|
$ ghc --make samples/SampleArm.hs
|
||||||
|
|
Loading…
Reference in a new issue