-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 765 Bytes
/
Copy pathMakefile
File metadata and controls
21 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CPP = g++ -std=c++20
WARNINGS = -Wall -Wextra -Wno-sign-compare
SFML_LIBS = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -lsfml-network
SFML_INCLUDE = -I/usr/local/include -Iheader
SFML_LIB = -L/usr/local/lib
COMPILEARG = -c -O2 -g -fPIC $(SFML_INCLUDE) $(INCLUDE_PATH)
TARGET = main
SRC_FILES = ./src/main.cpp ./src/Game.cpp ./src/Bullet.cpp ./src/Enemy.cpp ./src/Collider.cpp ./src/Player.cpp ./src/Tile.cpp ./src/Stage.cpp ./src/ScreenStates.cpp ./src/UI.cpp ./src/Boss.cpp
OBJ_FILES = $(SRC_FILES:.cpp=.o)
INCLUDE_PATH = -I./include
all: $(TARGET)
$(TARGET): $(OBJ_FILES)
$(CPP) -o $@ $^ $(SFML_LIB) $(SFML_LIBS) $(INCLUDE_PATH)
%.o: %.cpp
$(CPP) $(COMPILEARG) -c $< -o $@
clean:
rm -f $(OBJ_FILES) $(TARGET)