-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (31 loc) · 827 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
39
40
41
# compiler:
CC = g++
# compiler flags:
CXXFLAGS = -g -Wall -std=c++0x
# build target executable:
TARGET = ucrypt
# object file targets:
OBJS = B64coder.o AEScrypt.o RSAcrypt.o ucrypt.o
# required directories:
ENCDIR = Encrypted
DECDIR = Decrypted
RSADIR = RSA
# required libraries:
LIBS = -lgmp -lhl++
# build rules:
ucrypt: $(OBJS)
@$(CC) $(CXXFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
@rm -f *.o
@rm -f *.*~
@rm -f *~
@mkdir -p $(DECDIR)
@mkdir -p $(ENCDIR)
@mkdir -p $(RSADIR)
ucrypt.o: ucrypt.cpp AEScrypt.h RSAcrypt.h
@$(CC) $(CXXFLAGS) -c ucrypt.cpp
AEScrypt.o: AEScrypt.cpp AEScrypt.h
@$(CC) $(CXXFLAGS) -c AEScrypt.cpp
RSAcrypt.o: RSAcrypt.cpp RSAcrypt.h
@$(CC) $(CXXFLAGS) -c RSAcrypt.cpp
B64coder.o: B64coder.cpp B64coder.h
@$(CC) $(CXXFLAGS) -c B64coder.cpp