mx_flasher: minor updates
[megadrive.git] / nshtest / Makefile
CommitLineData
0a3e0c3e 1CROSS = m68k-elf-\r
2AS = $(CROSS)as\r
3LD = $(CROSS)ld\r
4OBJCOPY = $(CROSS)objcopy\r
5\r
6ASFLAGS = -m68000 --register-prefix-optional --bitwise-or \r
7\r
8TARGET = nshtest.bin\r
9OBJS = sega_gcc.o test.o\r
10\r
11all : $(TARGET)\r
12\r
13$(TARGET) : a.out\r
14 $(OBJCOPY) -I elf32-m68k -O binary $^ $@\r
15\r
16a.out : $(OBJS)\r
17 $(LD) -Tmd.ld -Map $(TARGET).map $^\r
18\r
19clean:\r
20 $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out\r
21\r