very early prototype of a spaceshooter in SFML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 495B

1234567891011121314151617
  1. CC = g++
  2. CFLAGS = -O2 -Wall -Wextra -std=c++14
  3. # to avoid the console window with mingw, add -mwindow
  4. INC = -I "SFML21/include"
  5. # for Linux
  6. LDFLAGS = -L "SFML21/lib" -lsfml-system -lsfml-window -lsfml-graphics
  7. # for Windows using MinGW
  8. #LDFLAGS = -L "SFML21/lib" -lmingw32 -lsfml-main -lsfml-system -lsfml-window -lsfml-graphics
  9. OBJ = level.o game.o player.o background.o mainmenu.o main.o
  10. game: $(OBJ)
  11. $(CC) $(CFLAGS) -o game.bin $(OBJ) $(LDFLAGS)
  12. %.o: %.cpp
  13. $(CC) $(INC) $(CFLAGS) -c $<