#CenBubble
#DC porting by Indiket

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

# List all of your C files here, but change the extension to ".o"
OBJS = bola.o disparador.o plantillaSDL.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)

# Chui DREAMCAST SDL
INCLUDES = -I$(KOS_BASE)/addons/include/SDL -I.

KOS_CPPFLAGS += $(INCLUDES) -DDREAMCAST -ffast-math -funroll-loops -fomit-frame-pointer -fmessage-length=0

include $(KOS_BASE)/Makefile.rules

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

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

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

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