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

TARGET = simcar
SDL_CONFIG = sdl-config
OBJS = simcar.o
CFLAGS = `$(SDL_CONFIG) --cflags` \
	-g -Wall -W -O3 -fomit-frame-pointer \
	-ffast-math -funroll-loops -funsafe-math-optimizations
LIBS = `$(SDL_CONFIG) --libs`

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

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

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