rockbox/utils/disassembler/arm/Makefile
Barry Wardell 0b8dd125c3 FS#7182: Initial attempt by Dave Chapman at getting ARM disassembler to compile in Linux.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14127 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 22:17:36 +00:00

26 lines
488 B
Makefile

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 *~