########################## # foobar's Makefile # # Object Based version 2 # ########################## CC = gcc -Wall -ansi BIN = race all: @echo Building and Linking Race Game $(CC) src/main.c -c `sdl-config --cflags` $(CC) src/vector.c -c `sdl-config --cflags` $(CC) src/fifo.c -c `sdl-config --cflags` $(CC) src/ortho.c -c `sdl-config --cflags` $(CC) src/audio.c -c `sdl-config --cflags` $(CC) src/font.c -c `sdl-config --cflags` $(CC) src/init.c -c `sdl-config --cflags` $(CC) src/terrain.c -c `sdl-config --cflags` $(CC) src/menu.c -c `sdl-config --cflags` $(CC) src/game.c -c `sdl-config --cflags` $(CC) src/hud.c -c `sdl-config --cflags` $(CC) main.o vector.o fifo.o ortho.o audio.o font.o \ init.o terrain.o menu.o game.o hud.o -o $(BIN) \ -lopengl32 -lglu32 -lSDL_image -lSDL_mixer -lm `sdl-config --libs` @rm -f *.o clean: @echo Removing All Binaries @rm -f *.o @rm $(BIN).exe @echo Done.