# MotoMAGX port Makefile provided by Mr. Pantamorph
# Simple3D
# Simcar
# Copyright (C) 2007-2010 Victor Matei Petrescu

TARGET     = simcar
SDL_CONFIG = $(TOOLPREFIX)/bin/sdl-config
OBJS       = simcar.o
GCC        = arm-linux-gnueabi-gcc
CFLAGS     = `$(SDL_CONFIG) --cflags`
CXXFLAGS   = $(CFLAGS) -g -03 -Wall -W -O6 -fomit-frame-pointer \
       -ffast-math -funroll-loops -funsafe-math-optimizations
LIBS      += `$(SDL_CONFIG) --libs` -lSDL

.c.o:
    $(GCC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJS)
    $(GCC) $(CFLAGS) $(OBJS) $(LIBS) -o $(TARGET)

clean:
    @echo "Removing Backup and Object-Files..."
    @rm -f *.o
