blob: e79aaea9b8ead707d740dcdf85a433d1f0bb0e5d (
plain) (
blame)
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
31
32
33
34
35
|
conf="$(dirname "$0")/build_config"
source "$conf"
redo-ifchange "$conf"
redo-ifchange "$2.c"
if [[ -e "$2.h" ]]; then
redo-ifchange "$2.h"
fi
case "$2" in
main)
redo-ifchange queue.h routing.h form.h v1_static.h emitjson.h
redo-ifchange scrypt.h tokens.h http_string.h
redo-ifchange ../third_party/httpserver.h/httpserver.h
;;
form)
redo-ifchange http_string.h
redo-ifchange ../third_party/httpserver.h/httpserver.h
;;
routing)
redo-ifchange ../third_party/httpserver.h/httpserver.h
;;
hashtoken)
redo-ifchange scrypt.h
;;
announcement)
redo-ifchange ../third_party/httpserver.h/httpserver.h
;;
http_string)
redo-ifchange ../third_party/httpserver.h/httpserver.h
;;
esac
$CC $CFLAGS -o "$3" -c "$2.c"
|