aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2012-03-20 00:22:41 +0900
committerMITSUNARI Shigeo <[email protected]>2012-03-20 00:22:41 +0900
commit18143d72d687f65e4821a6792f0f4a819e1f3fad (patch)
tree966c1c0ca905e86960f02689165b03283634c76e /test/Makefile
parent49a3b954bf313d763de19c4063eaea00b5b9f284 (diff)
parent2e77a569f6bdcb169356c6ffb7fdeddd2d0376c6 (diff)
downloadxbyak-18143d72d687f65e4821a6792f0f4a819e1f3fad.tar.gz
xbyak-18143d72d687f65e4821a6792f0f4a819e1f3fad.zip
fix Makefile
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/test/Makefile b/test/Makefile
index 2d6389a..0109896 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -2,9 +2,8 @@ TARGET = make_nm normalize_prefix
XBYAK_INC=../xbyak/xbyak.h
ifeq ($(MODE_BIT),64)
- XBYAK_OPT=-m64 -DXBYAK64
+ TARGET += jmp64
else
- XBYAK_OPT=-m32 -DXBYAK32
endif
all: $(TARGET)
@@ -13,13 +12,17 @@ CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -W
CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ $(CFLAGS_WARN)
make_nm:
- $(CXX) $(CFLAGS) $(XBYAK_OPT) make_nm.cpp -o $@
-normalize_prefix: normalize_prefix.cpp
- $(CXX) $(CFLAGS) $(XBYAK_OPT) normalize_prefix.cpp -o $@
-test_mmx: test_mmx.cpp
- $(CXX) $(CFLAGS) $(XBYAK_OPT) test_mmx.cpp -o $@ -lpthread
-jmp: jmp.cpp
- $(CXX) $(CFLAGS) -m32 -DXBYAK32 jmp.cpp -o $@
+ $(CXX) $(CFLAGS) make_nm.cpp -o $@
+normalize_prefix: normalize_prefix.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) normalize_prefix.cpp -o $@
+test_mmx: test_mmx.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) test_mmx.cpp -o $@ -lpthread
+jmp: jmp.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) jmp.cpp -o $@ -m32
+jmp64: jmp.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) jmp.cpp -o $@
+grow: grow.cpp ../xbyak/xbyak.h
+ $(CXX) $(CFLAGS) grow.cpp -o $@
test: normalize_prefix jmp
./test_nm.sh