-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 793 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
# set compiler: g++ for C++
CC = gcc
#Flags
CFLAGS = -g -Wall -Wextra
DFLAGS = -O3
RFLAGS = -O3
#OBJ folder
OBJDIR = obj
#name of files
TARGET = bruceforce
$(TARGET): main.o functions.o threads.o engines.o server.o networker.o
$(CC) $(CFLAGS) $(RFLAGS) -o $(TARGET) main.o functions.o threads.o engines.o server.o networker.o -lm -lcrypt -pthread
main.o: main.c
$(CC) $(CFLAGS) -c -o main.o main.c
functions.o: functions.c
$(CC) $(CFLAGS) -c -o functions.o functions.c
threads.o: threads.c
$(CC) $(CFLAGS) -c -o threads.o threads.c
server.o: server.c
$(CC) $(CFLAGS) -c -o server.o server.c
engines.o: engines.c
$(CC) $(CFLAGS) -c -o engines.o engines.c
networker.o: networker.c
$(CC) $(CFLAGS) -c -o networker.o networker.c
clean:
rm *.o $(TARGET)
remake: clean $(TARGET)