-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (27 loc) · 972 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
42
# WARNING!!!!
# THIS PROGRAM MAY COMPILE FINE ON WINDOWS BUT IT WILL NOT FUNCTION CORRECTLY.
# THIS IS BECAUSE IT RELIES ON THE /DEV/URANDOM DEVICE WHICH IS ONLY PRESENT ON LINUX.
# DO NOT RELY ON THIS CODE ON WINDOWS.
cflags="-std=c++11"
target="project.out"
# main project file, makes compiled program called project.out
all: main.o AESEncryptObj.o AESDecryptObj.o byte.o word.o IV.o
g++ $(cflags) *.o -o $(target)
# target for the encryption object
AESEncryptObj.o:
g++ $(cflags) -c AESEncryptObj.cpp -o AESEncryptObj.o
# target for the decryption object
AESDecryptObj.o:
g++ $(cflags) -c AESDecryptObj.cpp -o AESDecryptObj.o
# main file just used to test encryption and decryption objects
main.o:
g++ $(cflags) -c main.cpp -o main.o
byte.o:
g++ $(cflags) -c byte.cpp -o byte.o
word.o:
g++ $(cflags) -c word.cpp -o word.o
IV.o:
g++ $(cflags) -c IV.cpp -o IV.o
# remove target executable and all object files
clean:
rm -rf $(target) *.o