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