Makefile 501 B

1234567891011121314151617181920
  1. #OBJS specifies which files to compile as part of the project
  2. OBJS = ritle.cpp Menu.cpp MenuMain.cpp DiPoint.cpp MenuExtra.cpp
  3. #CC is compiler
  4. CC = g++
  5. #COMPILER_FLAGS
  6. # -w suppresses warnings
  7. COMPILER_FLAGS = -w
  8. #LINKER_FLAGS specifies libraries we are linking against
  9. LINKER_FLAGS = -lSDL2 -lSDL2_image
  10. #OBJ_NAME specifies the name of our exectuable
  11. OBJ_NAME = ritle
  12. #This is the target that compiles our executable
  13. all : $(OBJS)
  14. $(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)