-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 995 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
CXX = g++
CXXFLAGS = -std=c++17 -g -Wall -I. -Isrc/app/encryptDecrypt -Isrc/app/fileHandling -Isrc/app/processes
MAIN_TARGET = encrypt_decrypt
CRYPTION_TARGET = cryption
MAIN_SRC = main.cpp \
src/app/processes/ProcessManagement.cpp \
src/app/fileHandling/IO.cpp \
src/app/fileHandling/ReadENV.cpp \
src/app/encryptDecrypt/Cryption.cpp
CRYPTION_SRC = src/app/encryptDecrypt/CryptionMain.cpp \
src/app/encryptDecrypt/Cryption.cpp \
src/app/fileHandling/IO.cpp \
src/app/fileHandling/ReadENV.cpp
MAIN_OBJ = $(MAIN_SRC:.cpp=.o)
CRYPTION_OBJ = $(CRYPTION_SRC:.cpp=.o)
all: $(MAIN_TARGET) $(CRYPTION_TARGET)
$(MAIN_TARGET): $(MAIN_OBJ)
$(CXX) $(CXXFLAGS) $^ -o $@
$(CRYPTION_TARGET): $(CRYPTION_OBJ)
$(CXX) $(CXXFLAGS) $^ -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(MAIN_OBJ) $(CRYPTION_OBJ) $(MAIN_TARGET) $(CRYPTION_TARGET)
.PHONY: clean all