# Balonlinea 0.9
# http://baulprogramas.blogspot.com.ar/search/label/tetris
# Dreamcast Port by Indiket - 2013

# Put the filename of the output binary here
TARGET = balonlin.elf

# List all of your C files here, but change the extension to ".o"
# Include "romdisk.o" if you want a rom disk.
OBJS = aplicacion.o bloque.o boton.o configuracion.o constantes.o estructuras.o galeria.o juego.o main.o menu.o opciones.o pelota.o texto.o util.o vector_screen.o

# If you define this, the Makefile.rules will create a romdisk.o for you
# from the named dir.
# KOS_ROMDISK_DIR = romdisk

# The rm-elf step is to remove the target before building, to force the
# re-creation of the rom disk.
all: rm-elf $(TARGET)

# Flags
KOS_CFLAGS += -DDREAMCAST

include $(KOS_BASE)/Makefile.rules

clean:
	-rm -f $(TARGET) $(OBJS)

rm-elf:
	-rm -f $(TARGET)

$(TARGET): $(OBJS) 
	$(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \
		$(OBJS) $(OBJEXTRA) -L$(KOS_BASE)/lib -lgcc -lSDL_image_1212 -lpng -lSDL_1213 -lz -lm $(KOS_LIBS)

bin:
	$(KOS_OBJCOPY) -O binary -R .stack $(TARGET) balonlin.bin