X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hexed%2FMakefile;fp=hexed%2FMakefile;h=8b992bd2bb185320dc26e009de21853870d4f083;hb=8689c962a08dd52e25725851316aa51a7e22d432;hp=f480c1531087238dbd36652a459da30cafd00d56;hpb=d13f0e289f5e87d65926c09ba46b72d4e94eaeb3;p=megadrive.git diff --git a/hexed/Makefile b/hexed/Makefile index f480c15..8b992bd 100644 --- a/hexed/Makefile +++ b/hexed/Makefile @@ -1,12 +1,14 @@ CROSS = m68k-elf- +CC = $(CROSS)gcc AS = $(CROSS)as LD = $(CROSS)ld OBJCOPY = $(CROSS)objcopy ASFLAGS += -m68000 --register-prefix-optional --bitwise-or -pic +CPPFLAGS += -Wa,-m68000 -Wa,--register-prefix-optional -Wa,--bitwise-or -Wa,-pic TARGET = hexed.bin -OBJS = sega_gcc.o hexed.o font.o +OBJS = sega_gcc.o hexed.o transfer.o font.o all : $(TARGET) @@ -23,6 +25,9 @@ pc_transfer: pc_transfer.c gcc -Wall -O2 -ggdb -o $@ $^ +.S.o: + $(CC) -c -o $@ $^ $(CPPFLAGS) + # ----------- release ----------- ifneq ($(findstring rel,$(MAKECMDGOALS)),) ifeq ($(VER),)