forked from nijino2002/filemht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 969 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
CC = gcc
OBJ = defs.o mhtdefs.o dbqueue.o mhtfile.o sha256.o
all : main test_searchpageinmht test_updatehashinmht test_fileio sha256_test test_mhtfile
.PHONY : all
main : main.o $(OBJ)
$(CC) -o main main.o $(OBJ)
test_searchpageinmht : test_searchpageinmht.o $(OBJ)
$(CC) -o test_searchpageinmht test_searchpageinmht.o $(OBJ)
test_updatehashinmht: test_updatehashinmht.o $(OBJ)
$(CC) -o test_updatehashinmht test_updatehashinmht.o $(OBJ)
test_fileio: test_fileio.o $(OBJ)
$(CC) -o test_fileio test_fileio.o $(OBJ)
sha256_test: sha256_test.o $(OBJ)
$(CC) -o sha256_test sha256_test.o $(OBJ)
test_mhtfile: test_mhtfile.o
$(CC) -o test_mhtfile test_mhtfile.o $(OBJ)
$(OBJ) : defs.h mhtdefs.h dbqueue.h mhtfile.h sha256.h
.PHONY : clean
clean :
rm -rf testdbfile.db main test_searchpageinmht test_updatehashinmht test_fileio sha256_test test_mhtfile \
main.o test_searchpageinmht.o test_updatehashinmht.o test_fileio.o sha256_test.o test_mhtfile.o $(OBJ)