summaryrefslogtreecommitdiffstats
path: root/utils/disassembler/arm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/disassembler/arm/Makefile')
-rw-r--r--utils/disassembler/arm/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/disassembler/arm/Makefile b/utils/disassembler/arm/Makefile
new file mode 100644
index 0000000000..786325e27d
--- /dev/null
+++ b/utils/disassembler/arm/Makefile
@@ -0,0 +1,26 @@
+CFLAGS = -Wall
+
+ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
+OUTPUT=arm_disass.exe
+CROSS=
+CFLAGS+=-mno-cygwin
+else
+OUTPUT=arm_disass
+CROSS=i586-mingw32msvc-
+endif
+
+NATIVECC = gcc
+CC = $(CROSS)gcc
+
+all: $(OUTPUT)
+
+arm_disass: main.c disasm_arm.c
+ gcc $(CFLAGS) -o arm_disass main.c disasm_arm.c
+ strip arm_disass
+
+arm_disass.exe: main.c disasm_arm.c
+ $(CC) $(CFLAGS) -o arm_disass.exe main.c disasm_arm.c
+ $(CROSS)strip arm_disass.exe
+
+clean:
+ rm -f arm_disass main.o disasm_arm.o *~