notaz.gp2x.de
/
megadrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testpico: adjust for gcc12
[megadrive.git]
/
hexed
/
Makefile
diff --git
a/hexed/Makefile
b/hexed/Makefile
index
ffb1aeb
..
55a0e05
100644
(file)
--- a/
hexed/Makefile
+++ b/
hexed/Makefile
@@
-1,23
+1,35
@@
CROSS = m68k-elf-
\r
CROSS = m68k-elf-
\r
+CC = $(CROSS)gcc
\r
AS = $(CROSS)as
\r
LD = $(CROSS)ld
\r
OBJCOPY = $(CROSS)objcopy
\r
\r
ASFLAGS += -m68000 --register-prefix-optional --bitwise-or -pic
\r
AS = $(CROSS)as
\r
LD = $(CROSS)ld
\r
OBJCOPY = $(CROSS)objcopy
\r
\r
ASFLAGS += -m68000 --register-prefix-optional --bitwise-or -pic
\r
+CPPFLAGS += -Wa,-m68000 -Wa,--register-prefix-optional -Wa,--bitwise-or -Wa,-pic
\r
\r
TARGET = hexed.bin
\r
\r
TARGET = hexed.bin
\r
-OBJS = sega_gcc.o hexed.o font.o
\r
+OBJS = sega_gcc.o hexed.o
transfer.o
font.o
\r
\r
\r
-all
: $(TARGET)
\r
+all: $(TARGET)
\r
\r
\r
-$(TARGET)
: a.out
\r
+$(TARGET): a.out
\r
$(OBJCOPY) -I elf32-m68k -O binary $^ $@
\r
\r
$(OBJCOPY) -I elf32-m68k -O binary $^ $@
\r
\r
-a.out
: $(OBJS)
\r
+a.out: $(OBJS)
\r
$(LD) -Tmd.ld -Map $(TARGET).map $^
\r
\r
clean:
\r
$(LD) -Tmd.ld -Map $(TARGET).map $^
\r
\r
clean:
\r
- $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out
\r
+ $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out pc_transfer
\r
+
\r
+
\r
+pc_transfer: pc_transfer.c
\r
+ gcc -Wall -O2 -ggdb -o $@ $^ -lz
\r
+
\r
+%.o: %.S
\r
+ $(CC) -c -o $@ $^ $(CPPFLAGS)
\r
+
\r
+%.bin: %.o
\r
+ $(OBJCOPY) -I elf32-m68k -O binary $^ $@
\r
\r
\r
# ----------- release -----------
\r
\r
\r
# ----------- release -----------
\r