-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 721 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXXFLAGS = --std=c++17
game: main.o character.o story.o equipment.o items.o stats.o attributes.o *.h
$(CXX) $(CXXFLAGS) main.o character.o story.o -o game
main.o: main.cpp *.h
$(CXX) $(CXXFLAGS) -c main.cpp -o main.o
character.o: character.cpp *.h
$(CXX) $(CXXFLAGS) -c character.cpp -o character.o
story.o: story.cpp *.h
$(CXX) $(CXXFLAGS) -c story.cpp -o story.o
equipment.o: equipment.cpp *.h
$(CXX) $(CXXFLAGS) -c equipment.cpp -o equipment.o
items.o: items.cpp *.h
$(CXX) $(CXXFLAGS) -c items.cpp -o items.o
stats.o: stats.cpp *.h
$(CXX) $(CXXFLAGS) -c stats.cpp -o stats.o
attributes.o: attributes.cpp *.h
$(CXX) $(CXXFLAGS) -c attributes.cpp -o attributes.o
clean:
rm -f *.o *.gch *~ a.out game