-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) Β· 1.08 KB
/
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
CC = g++
CPPFLAGS = -g -Wall
OBJDIR = src
HEDDIR = include
DEPS = $(OBJDIR)/utils.o $(OBJDIR)/socket.o $(OBJDIR)/grammar.o $(OBJDIR)/fuzzing.o $(OBJDIR)/mocks.o
all: $(OBJDIR)/spdmfuzzer.cpp $(DEPS)
$(CC) $(CPPFLAGS) -o spdmfuzzer $(OBJDIR)/spdmfuzzer.cpp $(DEPS)
$(OBJDIR)/utils.o: $(OBJDIR)/utils.cpp $(HEDDIR)/utils.hpp
$(CC) $(CPPFLAGS) -c $(OBJDIR)/utils.cpp -o $(OBJDIR)/utils.o
$(OBJDIR)/mocks.o: $(OBJDIR)/mocks.cpp $(HEDDIR)/mocks.hpp
$(CC) $(CPPFLAGS) -c $(OBJDIR)/mocks.cpp -o $(OBJDIR)/mocks.o
$(OBJDIR)/grammar.o: $(OBJDIR)/grammar.cpp $(HEDDIR)/grammar.hpp
$(CC) $(CPPFLAGS) -c $(OBJDIR)/grammar.cpp -o $(OBJDIR)/grammar.o
$(OBJDIR)/socket.o: $(OBJDIR)/utils.o $(OBJDIR)/socket.cpp $(HEDDIR)/socket.hpp
$(CC) $(CPPFLAGS) -c $(OBJDIR)/socket.cpp -o $(OBJDIR)/socket.o
$(OBJDIR)/fuzzing.o: $(OBJDIR)/utils.o $(OBJDIR)/grammar.o $(OBJDIR)/socket.o $(OBJDIR)/fuzzing.cpp $(HEDDIR)/fuzzing.hpp
$(CC) $(CPPFLAGS) -c $(OBJDIR)/fuzzing.cpp -o $(OBJDIR)/fuzzing.o
doxygen: ./files/doxygen/Doxyfile
doxygen ./files/doxygen/Doxyfile
clean:
rm -f $(OBJDIR)/*.o spdmfuzzer
rm -r doxygen