# Flags: # -g adds debugging information to the executable file # -Wall turns on most, but not all, compiler warnings FLAGS = -g -Wall -std=c++11 -O # Libraries : # Box2D -Wl,-rpath=/usr/local/lib/ # SDL # SDL_gfx # SDL_image LIBS = -l Box2D -Wl,-rpath=/usr/local/lib/ -l SDL -l SDL_gfx -l SDL_image # Name of output: NAME = a.out # Names of cpp files: FILES = main.cpp Terrain.cpp Cars/PickUp.cpp Cars/PinkLiner.cpp Car.cpp SnapFile.cpp default: build build: $(FILES) g++ $(FLAGS) $(FILES) $(LIBS) -o $(NAME) clean: $(RM) $(NAME)