Commit | Line | Data |
---|---|---|
1 | CROSS = m68k-elf-\r | |
2 | AS = $(CROSS)as\r | |
3 | LD = $(CROSS)ld\r | |
4 | OBJCOPY = $(CROSS)objcopy\r | |
5 | \r | |
6 | ASFLAGS = -m68000 --register-prefix-optional --bitwise-or \r | |
7 | \r | |
8 | TARGET = hexed.bin\r | |
9 | OBJS = sega_gcc.o hexed.o font.o\r | |
10 | \r | |
11 | all : $(TARGET)\r | |
12 | \r | |
13 | $(TARGET) : a.out\r | |
14 | $(OBJCOPY) -I elf32-m68k -O binary $^ $@\r | |
15 | \r | |
16 | a.out : $(OBJS)\r | |
17 | $(LD) -Tmd.ld -Map $(TARGET).map $^\r | |
18 | \r | |
19 | clean:\r | |
20 | $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out\r | |
21 | \r |