#
# Makefile for flop_raw.xdd
#

# include path to FreeMiNT
INCLUDE = -I/home/fnaumann/mint-1.15/src/include

# compiler settings
CC = gcc -pipe
AS = $(CC) -c
LD = $(CC) -nostdlib -Wl,--entry -Wl,_init
CP = cp
RM = rm -f


OPTS =	-fomit-frame-pointer -O3 #-m68020-60

WARN =	-Wall \
	-Wmissing-prototypes \
	-Wshadow \
	-Wcast-qual \
	-Waggregate-return

CFLAGS = -mshort -g $(INCLUDE) $(WARN) $(OPTS)
LDFLAGS = -lc16

TARGET = flop_raw.xdd
OBJS = flop_raw.o

$(TARGET): $(OBJS)
	$(LD) -o $@ $(OBJS) $(LDFLAGS)

boot:
	$(CP) $(TARGET) /c/multitos

clean:
	$(RM) $(OBJS)

distclean:
	$(MAKE) clean;
	$(RM) *~
