summary refs log tree commit diff
path: root/warteraum/default.o.do
blob: f91bd8f0996e8bf44bdb43183024d92e5cfd190c (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
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
    ;;
esac

$CC $CFLAGS -o "$3" -c "$2.c"