41 lines
851 B
Makefile
41 lines
851 B
Makefile
# Makefile for the EmuTOS to BaS_gcc SD-card "driver connector"
|
|
#
|
|
# The driver actually resides within BaS_gcc. All we need to do within the AUTO-folder program is to find the driver
|
|
# entry point and put its address into the respective cookie
|
|
|
|
TOOLCHAIN_PREFIX=m68k-atari-mint-
|
|
CC=$(TOOLCHAIN_PREFIX)gcc
|
|
|
|
CFLAGS=-mcpu=547x \
|
|
-Os \
|
|
-fomit-frame-pointer \
|
|
-Wno-multichar\
|
|
-Wall
|
|
EMUSD=emusd
|
|
APP=$(EMUSD).prg
|
|
|
|
all: $(APP) xhditest.prg
|
|
|
|
SOURCES=$(EMUSD).c \
|
|
cookie.c
|
|
|
|
OBJECTS=$(SOURCES:.c=.o)
|
|
|
|
$(APP): $(OBJECTS) depend
|
|
$(CC) $(CFLAGS) $(OBJECTS) -o $(APP)
|
|
|
|
test: xhditest.prg
|
|
xhditest.prg: xhdi_test.c depend
|
|
$(CC) $(CFLAGS) xhdi_test.c -o xhditest.prg
|
|
|
|
.PHONY clean:
|
|
- rm -rf *.o depend xhditest.prg
|
|
|
|
depend: $(SOURCES)
|
|
$(CC) $(CFLAGS) $(INCLUDE) -M $(SOURCES) xhdi_test.c > depend
|
|
|
|
|
|
ifneq (clean,$(MAKECMDGOALS))
|
|
-include depend
|
|
endif
|