diff options
Diffstat (limited to 'utils/disassembler/arm/Makefile')
-rw-r--r-- | utils/disassembler/arm/Makefile | 26 |
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 @@ | |||
1 | CFLAGS = -Wall | ||
2 | |||
3 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | ||
4 | OUTPUT=arm_disass.exe | ||
5 | CROSS= | ||
6 | CFLAGS+=-mno-cygwin | ||
7 | else | ||
8 | OUTPUT=arm_disass | ||
9 | CROSS=i586-mingw32msvc- | ||
10 | endif | ||
11 | |||
12 | NATIVECC = gcc | ||
13 | CC = $(CROSS)gcc | ||
14 | |||
15 | all: $(OUTPUT) | ||
16 | |||
17 | arm_disass: main.c disasm_arm.c | ||
18 | gcc $(CFLAGS) -o arm_disass main.c disasm_arm.c | ||
19 | strip arm_disass | ||
20 | |||
21 | arm_disass.exe: main.c disasm_arm.c | ||
22 | $(CC) $(CFLAGS) -o arm_disass.exe main.c disasm_arm.c | ||
23 | $(CROSS)strip arm_disass.exe | ||
24 | |||
25 | clean: | ||
26 | rm -f arm_disass main.o disasm_arm.o *~ | ||