about summary refs log tree commit diff
path: root/default.o.do
blob: c36bd866ab9b11a7d30079dfe464f5e5507c0888 (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
redo-ifchange build_config
source ./build_config

redo-ifchange "$2.c"

possible_headers="include/$2.h include/buchstabensuppe/$2.h"

for h in $possible_headers; do
  if test -e "$h"; then
    redo-ifchange "$h"
  fi
done

case "$2" in
  buchstabensuppe)
    redo-ifchange bitmap.o
    ;;
  bs-renderflipdot)
    redo-ifchange bitmap.o
    redo-ifchange buchstabensuppe.o
    redo-ifchange flipdot.o
    ;;
  flipdot)
    redo-ifchange bitmap.o
    ;;
  *)
esac


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