Skip to content

Commit 230d6f3

Browse files
committedNov 20, 2020
add makefile and directory for project build
1 parent 6128f61 commit 230d6f3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
 

‎Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.PHONY: all clean
2+
3+
CC = gcc
4+
CFLAGS = -c -Wall -Wextra -Wpedantic
5+
6+
all: buildProject
7+
8+
buildProject: ./build/PKCS7.o ./build/PKCS7_test.out
9+
10+
./build/PKCS7.o: ./src/PKCS7.c ./include/PKCS7.h
11+
$(CC) $(CFLAGS) ./src/PKCS7.c -o ./build/PKCS7.o
12+
13+
./build/PKCS7_test.o: ./test/PKCS7_test.c ./test/PKCS7_test.h ./include/PKCS7.h
14+
$(CC) $(CFLAGS) ./test/PKCS7_test.c -o ./build/PKCS7_test.o
15+
16+
./build/PKCS7_test.out: ./build/PKCS7_test.o ./build/PKCS7.o
17+
$(CC) ./build/PKCS7_test.o ./build/PKCS7.o -o ./build/PKCS7_test.out
18+
19+
clean:
20+
rm -f ./build/*.o ./build/*.out

‎build/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)