Skip to content

Commit 431fe07

Browse files
committed
fix #1
1 parent 06ac097 commit 431fe07

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CC = gcc
22

33
OPENSSL = /usr/include/openssl
4+
OPENSSL_LIB = -lssl
45

56
CFLAGS += -I $(OPENSSL) -O3
6-
LDFLAGS += -lssl -lcrypto
7+
LDFLAGS += $(OPENSSL_LIB) -lcrypto
78

89
NAME = jwtcrack
910
SRCS = main.c base64.c
@@ -15,9 +16,9 @@ $(NAME): $(OBJS)
1516
$(CC) -o $(NAME) $(OBJS) $(LDFLAGS)
1617

1718
clean:
18-
rm $(OBJS)
19+
rm -f $(OBJS)
1920

2021
fclean: clean
21-
rm $(NAME)
22+
rm -f $(NAME)
2223

2324
re: fclean all

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you use a Mac, you can install OpenSSL with `brew install openssl`, but the h
1717
different location:
1818

1919
```
20-
make OPENSSL=/usr/local/opt/openssl/include
20+
make OPENSSL=/usr/local/opt/openssl/include OPENSSL_LIB=-L/usr/local/opt/openssl/lib
2121
```
2222

2323
## Run

0 commit comments

Comments
 (0)