forked from avigael-cs/snowman-b
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 877 Bytes
/
Makefile
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
29
30
31
32
33
34
35
#!make -f
CXX=clang++-9
CXXFLAGS=-std=c++2a
OBJECTS=snowman.o
SOURCES=snowman.cpp
run: test
./$^
test: TestRunner.o StudentTest1.o StudentTest2.o StudentTest3.o $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o test
main: Main.o $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o main
%.o: %.cpp $(HEADERS)
$(CXX) $(CXXFLAGS) --compile $< -o $@
StudentTest1.cpp: # Yosef Danan
curl https://raw.githubusercontent.com/YD5463/System-Programing-2/master/Test.cpp > $@
StudentTest2.cpp: # Shlomo Glick
curl https://raw.githubusercontent.com/shlomog12/ex1_partA/main/Test.cpp > $@
StudentTest3.cpp: # Eviatar Nachshoni
curl https://raw.githubusercontent.com/EN555/EX1-c-/master/Test.cpp > $@
tidy:
clang-tidy $(SOURCES) -checks=bugprone-*,clang-analyzer-*,cppcoreguidelines-*,performance-*,portability-*,readability-* --warnings-as-errors=* --
clean:
rm -f *.o test
rm -f StudentTest*.cpp