Barry Wardell | 0b8dd12 | 2007-08-01 22:17:36 +0000 | [diff] [blame^] | 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 *~ |