-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
20 lines (16 loc) · 1.03 KB
/
makefile
File metadata and controls
20 lines (16 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
modules = thread-safe-job-stack.c thread-safe-file.c job.c block-table.c cache-record.c parsing.c worker.c
server: directory-structure
gcc -Wall -pthread -o ./executables/server server.c $(modules)
directory-structure:
test -d "./executables" || mkdir "./executables"
test -d "./executables/cache" || mkdir "./executables/cache"
experiments: directory-structure
gcc -Wall -o ./executables/simple-client-experiment simple-client-experiment.c
gcc -Wall -o ./executables/test-client-experiment test-client-experiment.c
gcc -Wall -o ./executables/slow-loris-client slow-client.c
tests: directory-structure
gcc -Wall -pthread -o ./executables/job-stack-test job-stack-test.c thread-safe-job-stack.c job.c thread-safe-file.c
gcc -Wall -pthread -o ./executables/block-table-test block-table.c block-table-test.c
gcc -Wall -pthread -o ./executables/cache-record-test cache-record-test.c cache-record.c
gcc -Wall -o ./executables/parsing-test parsing-test.c parsing.c
gcc -Wall -pthread -o ./executables/resolve-host-test resolve-host-test.c $(modules)