-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 745 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 745 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
# ajoutez vos programmes ci-dessous
PROGS_SRC=test-context.cpp cracker-tool.cpp rainbow-tool.cpp parameters-tool.cpp
SRC=Rainbow.cpp Context.cpp Cracker.cpp
OBJ=${SRC:.cpp=.o}
HEADERS=Rainbow.h Context.h Cracker.h
PROGS=${PROGS_SRC:.cpp=}
CPPFLAGS=-O3 -g -Wall
all: ${PROGS}
test-context: test-context.cpp ${OBJ} ${HEADERS}
g++ ${CPPFLAGS} $< ${OBJ} -o $@ -lssl -lcrypto
cracker-tool: cracker-tool.cpp ${OBJ} ${HEADERS}
g++ ${CPPFLAGS} $< ${OBJ} -o $@ -lssl -lcrypto
rainbow-tool: rainbow-tool.cpp ${OBJ} ${HEADERS}
g++ ${CPPFLAGS} $< ${OBJ} -o $@ -lssl -lcrypto
parameters-tool: parameters-tool.cpp ${OBJ} ${HEADERS}
g++ ${CPPFLAGS} $< ${OBJ} -o $@ -lssl -lcrypto
%.o: %.cpp %.h
g++ ${CPPFLAGS} -c $<
clean:
rm -f ${PROGS} ${OBJ}