fixed to work for COMPILE_ELF=N again
This commit is contained in:
10
Makefile
10
Makefile
@@ -29,7 +29,12 @@ AR=$(TCPREFIX)ar
|
|||||||
RANLIB=$(TCPREFIX)ranlib
|
RANLIB=$(TCPREFIX)ranlib
|
||||||
NATIVECC=gcc
|
NATIVECC=gcc
|
||||||
|
|
||||||
|
ifeq (Y,$(COMPILE_ELF))
|
||||||
LDLIBS=-L/usr/lib/gcc/m68k-elf/4.9.2/m5475 -lgcc
|
LDLIBS=-L/usr/lib/gcc/m68k-elf/4.9.2/m5475 -lgcc
|
||||||
|
else
|
||||||
|
LDLIBS=-L/usr/lib/gcc/m68k-atari-mint/4.6.4/m5475 -lgcc
|
||||||
|
endif
|
||||||
|
|
||||||
INCLUDE=-Iinclude
|
INCLUDE=-Iinclude
|
||||||
CFLAGS=-mcpu=5474 \
|
CFLAGS=-mcpu=5474 \
|
||||||
-g \
|
-g \
|
||||||
@@ -141,11 +146,14 @@ CSRCS= \
|
|||||||
ASRCS= \
|
ASRCS= \
|
||||||
startcf.S \
|
startcf.S \
|
||||||
printf_helper.S \
|
printf_helper.S \
|
||||||
libgcc_helper.S \
|
|
||||||
exceptions.S \
|
exceptions.S \
|
||||||
xhdi_vec.S \
|
xhdi_vec.S \
|
||||||
pci_wrappers.S
|
pci_wrappers.S
|
||||||
|
|
||||||
|
ifeq (Y,$(COMPILE_ELF)) # needed for __ vs ___ kludge
|
||||||
|
ASRCS += libgcc_helper.S
|
||||||
|
endif
|
||||||
|
|
||||||
SRCS=$(ASRCS) $(CSRCS)
|
SRCS=$(ASRCS) $(CSRCS)
|
||||||
COBJS=$(patsubst %.c,%.o,$(CSRCS))
|
COBJS=$(patsubst %.c,%.o,$(CSRCS))
|
||||||
AOBJS=$(patsubst %.S,%.o,$(ASRCS))
|
AOBJS=$(patsubst %.S,%.o,$(ASRCS))
|
||||||
|
|||||||
@@ -79,7 +79,9 @@ SECTIONS
|
|||||||
OBJDIR/s19reader.o(.text)
|
OBJDIR/s19reader.o(.text)
|
||||||
OBJDIR/bas_printf.o(.text)
|
OBJDIR/bas_printf.o(.text)
|
||||||
OBJDIR/bas_string.o(.text)
|
OBJDIR/bas_string.o(.text)
|
||||||
|
#if (FORMAT_ELF == 1)
|
||||||
OBJDIR/libgcc_helper.o(.text)
|
OBJDIR/libgcc_helper.o(.text)
|
||||||
|
#endif
|
||||||
OBJDIR/printf_helper.o(.text)
|
OBJDIR/printf_helper.o(.text)
|
||||||
OBJDIR/cache.o(.text)
|
OBJDIR/cache.o(.text)
|
||||||
OBJDIR/dma.o(.text)
|
OBJDIR/dma.o(.text)
|
||||||
|
|||||||
Reference in New Issue
Block a user