Skip to content

Commit f4515f6

Browse files
iMeaNzThyodas
authored andcommitted
feat: added makefile for the compilation of the sample jolt project
1 parent 9089ebb commit f4515f6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
##
2+
## EPITECH PROJECT, 2023
3+
## B-CPP-500-STG-5-2-rtype-remi.mergen
4+
## File description:
5+
## Makefile
6+
##
7+
8+
CXXFLAGS = -std=c++17
9+
LDFLAGS = -lraylib -lJolt
10+
11+
NAME = sampleJolt
12+
13+
SRC_DIR = .
14+
15+
SRC = joltSample.cpp \
16+
17+
OBJ = $(SRC:.cpp=.o)
18+
19+
all: $(NAME)
20+
21+
$(NAME): $(OBJ)
22+
g++ $(OBJ) -o $(NAME) $(LDFLAGS)
23+
24+
%.o: %.cpp
25+
$(CXX) $(CXXFLAGS) -c $< -o $@
26+
27+
clean:
28+
rm -f $(OBJ)
29+
30+
fclean: clean
31+
rm -f $(NAME)
32+
33+
re: fclean all
34+
35+
.PHONY: all clean fclean re

0 commit comments

Comments
 (0)