-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
38 lines (27 loc) · 892 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
36
37
38
#!make -f
CXX=clang++-9
CXXFLAGS=-std=c++2a
OBJECTS=mat.o
SOURCES=mat.cpp
run: test
./$^
test: TestRunner.o StudentTest1.o StudentTest2.o StudentTest3.o $(OBJECTS) $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o test
main: Main.o $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o main
%.o: %.cpp $(HEADERS)
$(CXX) $(CXXFLAGS) --compile $< -o $@
# Ohad Madei
StudentTest1.cpp:
curl https://raw.githubusercontent.com/Ohad-Ma/carpets-maker-1/master/Test.cpp > $@
# Dvir Biton
StudentTest2.cpp:
curl https://raw.githubusercontent.com/dvirBiton1/cpp-Ex1-part1/main/Test.cpp > $@
# Gilad Livshitz
StudentTest3.cpp:
curl https://raw.githubusercontent.com/giladliv/Maarachot-B-Task-01/main/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