blob: 786325e27d3758346d66920125c42d014f78ff8e [file] [log] [blame]
Barry Wardell0b8dd122007-08-01 22:17:36 +00001CFLAGS = -Wall
2
3ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
4OUTPUT=arm_disass.exe
5CROSS=
6CFLAGS+=-mno-cygwin
7else
8OUTPUT=arm_disass
9CROSS=i586-mingw32msvc-
10endif
11
12NATIVECC = gcc
13CC = $(CROSS)gcc
14
15all: $(OUTPUT)
16
17arm_disass: main.c disasm_arm.c
18 gcc $(CFLAGS) -o arm_disass main.c disasm_arm.c
19 strip arm_disass
20
21arm_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
25clean:
26 rm -f arm_disass main.o disasm_arm.o *~