X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hexed%2FMakefile;h=8b992bd2bb185320dc26e009de21853870d4f083;hb=8689c962a08dd52e25725851316aa51a7e22d432;hp=ffb1aebc167736b6b5ed57987843518eea50b9f5;hpb=318e20ff882dfeb2a8176e89f2343f1c3d60bc1d;p=megadrive.git diff --git a/hexed/Makefile b/hexed/Makefile index ffb1aeb..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) @@ -19,6 +21,12 @@ a.out : $(OBJS) clean: $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out +pc_transfer: pc_transfer.c + gcc -Wall -O2 -ggdb -o $@ $^ + + +.S.o: + $(CC) -c -o $@ $^ $(CPPFLAGS) # ----------- release ----------- ifneq ($(findstring rel,$(MAKECMDGOALS)),)