-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (16 loc) · 625 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
TARGET = Cracker
CFLAGS = -Wall -g -Werror -std=c99 -pthread
CC = gcc
CRYPT = -lcrypt
$(TARGET): dictionary_attack.o brute_force.o controller.o main.o
$(CC) $(CFLAGS) -o $(TARGET) main.o dictionary_attack.o brute_force.o controller.o $(CRYPT)
main.o: main.c
$(CC) $(CFLAGS) -c -o main.o main.c
dictionary_attack.o: controller.c dictionary_attack.c
$(CC) $(CFLAGS) -c -o dictionary_attack.o dictionary_attack.c
brute_force.o: brute_force.c
$(CC) $(CFLAGS) -c -o brute_force.o brute_force.c
controller.o: controller.c
$(CC) $(CFLAGS) -c -o controller.o controller.c
clean: rm *.o $(TARGET)
remake: clean $(TARGET)