#OBJS specifies which files to compile as part of the project
#OBJS = 01_hello_SDL.cpp 
#OBJS = 02_getting_an_image_on_the_screen.cpp
#OBJS = 03_event_driven_programming.cpp
#OBJS = 04_key_presses.cpp
#OBJS = 04_key_presses_v2.cpp
#OBJS = 05_optimized_surface_loading_and_soft_stretching.cpp
OBJS = 04_key_presses_v3_fullscreen.cpp

#CC specifies which compiler we're using
CC = g++

#COMPILER_FLAGS specifies the additional compilation options we're using 
# -w suppresses all warnings
COMPILER_FLAGS = -w

#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -lSDL2 `sdl2-config --libs`

#OBJ_NAME specifies the name of our exectuable
#OBJ_NAME = 01_hello_SDL
#OBJ_NAME = 02_getting_an_image_on_the_screen
#OBJ_NAME = 03_event_driven_programming
#OBJ_NAME = 04_key_presses
#OBJ_NAME = 05_optimized_surface_loading_and_soft_stretching
OBJ_NAME = 04_key_presses_fullscreen

#This is the target that compiles our executable
all : $(OBJS)
	$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)

