-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 718 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 718 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
29
30
31
32
33
34
35
36
37
38
# Define the compiler and compiler flags
CXX = g++
CXXFLAGS = -std=c++17 -Wall -g
LDFLAGS = -lcryptopp
# Define the target executable
TARGET = output
# Define the source and object files
SRCS = main.cpp src/emp.cpp src/admin.cpp src/crypto.cpp
OBJS = $(SRCS:.cpp=.o)
# Default target
all: $(TARGET)
# Rule to link the object files into the executable
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS) $(LDFLAGS)
# Rule to compile the source files into object files
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
# Rule to clean the directory
clean:
rm -f $(OBJS) $(TARGET)
rm -rf *.gch
rm -f $(TARGET)
rm -f src/*.o
rm -f src/*.gch
rm -f *.out
cdata:
rm -rf data.txt
rm -rf data/*
rm -rf key/*