diff --git a/defs.mak b/defs.mak index 3557e9b..545e1f7 100644 --- a/defs.mak +++ b/defs.mak @@ -25,12 +25,13 @@ AMI_CONFIG := python -m pyibisami.ami_config RUN_TESTS := python -m pyibisami.run_tests # Machine dependent definitions +# Note: The "x86_amd64" is NOT an error! It is required, by MSVC v12.0. MACHINE ?= X86 ifeq ($(MACHINE), X86) SUFFIX := x86 else ifeq ($(MACHINE), AMD64) - SUFFIX := amd64 + SUFFIX := x86_amd64 else $(error Unrecognized machine type: $(MACHINE)) endif diff --git a/example/GNUmakefile b/example/GNUmakefile index 9f9cefb..13876f0 100644 --- a/example/GNUmakefile +++ b/example/GNUmakefile @@ -53,12 +53,22 @@ rx64: MACHINE=AMD64 MODS=$(RX_NAME) INCS='amimodel.h ami_rx.h digital_filter.h fir_filter.h dfe.h' $(MAKE) targs test_tx: +ifeq '$(shell python -c "import platform; print platform.architecture()[0]")' '32bit' + @echo "Testing 32-bit Tx model..." + MACHINE=X86 MODS=$(TX_NAME) TEST_RUNS=test_runs/tx TEST_OUT=test_results/tx/ $(MAKE) test +else @echo "Testing 64-bit Tx model..." MACHINE=AMD64 MODS=$(TX_NAME) TEST_RUNS=test_runs/tx TEST_OUT=test_results/tx/ $(MAKE) test +endif test_rx: +ifeq '$(shell python -c "import platform; print platform.architecture()[0]")' '32bit' + @echo "Testing 32-bit Rx model..." + MACHINE=X86 MODS=$(RX_NAME) TEST_RUNS=test_runs/rx TEST_OUT=test_results/rx/ $(MAKE) test +else @echo "Testing 64-bit Rx model..." MACHINE=AMD64 MODS=$(RX_NAME) TEST_RUNS=test_runs/rx TEST_OUT=test_results/rx/ $(MAKE) test +endif txami: $(TX_NAME).ami txibs: $(TX_NAME).ibs