-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (27 loc) · 799 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
#
# Makefile
#
# Autor: H.Drachenfels
# Erstellt am: 12.2.2021
#
CXX = g++ -g #-fno-elide-constructors
CXXFLAGS = -Wall -Wextra -Werror -Weffc++ -Wold-style-cast -std=$(STD) -pedantic
CPPCHECK = cppcheck --enable=warning,style --std=$(STD)
STD = c++11
TARGET = notenspiegel
OBJECTS = \
benotung.o \
fachnote.o \
fachnoten_liste.o \
.PHONY: all clean cppcheck
all: $(TARGET)
clean:
rm -f $(TARGET) $(TARGET).o $(OBJECTS)
$(TARGET): $(TARGET).o $(OBJECTS)
$(CXX) $(CXXFLAGS) -o $@ $^
cppcheck: $(TARGET).cpp $(OBJECTS:.o=.cpp)
$(CPPCHECK) $^
benotung.o: benotung.cpp benotung.h
fachnote.o: fachnote.cpp fachnote.h benotung.h
fachnoten_liste.o: fachnoten_liste.cpp fachnoten_liste.h fachnote.h benotung.h
notenspiegel.o: notenspiegel.cpp fachnoten_liste.h fachnote.h benotung.h