aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2010-04-16 10:33:04 +0900
committerMITSUNARI Shigeo <[email protected]>2010-04-16 10:33:04 +0900
commitcbb4ca2178c6bd391b48c130afececfdddc66836 (patch)
tree46c9cfe83e040443af60585e212d071f0f127ebc /test/Makefile
downloadxbyak-cbb4ca2178c6bd391b48c130afececfdddc66836.tar.gz
xbyak-cbb4ca2178c6bd391b48c130afececfdddc66836.zip
first commit
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..5dde116
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,35 @@
+TARGET = make_nm normalize_prefix
+XBYAK_INC=../xbyak/xbyak.h
+
+ifeq ($(MODE_BIT),64)
+ XBYAK_OPT=-m64
+ XBYAK_COPT=-DXBYAK64
+else
+ XBYAK_OPT=-m32
+ XBYAK_COPT=-DXBYAK32
+endif
+
+all: $(TARGET)
+
+CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith
+
+CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ $(XBYAK_OPT) $(XBYAK_COPT) $(CFLAGS_WARN)
+make_nm:
+ g++ $(CFLAGS) make_nm.cpp -o $@
+normalize_prefix: normalize_prefix.cpp
+ g++ $(CFLAGS) normalize_prefix.cpp -o $@
+test_mmx: test_mmx.cpp
+ g++ $(CFLAGS) test_mmx.cpp -o $@ -lpthread
+
+test: normalize_prefix
+ ./test_nm.sh
+ ./test_nm.sh Y
+ ./test_nm.sh 64
+ ./test_nm.sh Y64
+
+clean:
+ rm -rf *.o $(TARGET)
+
+make_nm: make_nm.cpp $(XBYAK_INC)
+
+