4 # Build the S60 files on a POSIX system.
9 trap 'rm -f $s $t ; exit 0' 0
10 trap 'rm -f $s $t ; exit 1' 1 2 3 13 15
12 # Temporary directory to build in.
13 test -d ../build_s60_x || mkdir ../build_s60_x
17 sed -e '/typedef.*[ ]off_t;/d' \
18 -e '/typedef.*[ ]time_t;/d' \
19 -e '/typedef.*[ ]uintptr_t;/d' \
20 < ../build_s60/db.h > $t
21 cmp $t $f > /dev/null 2>&1 ||
22 (echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
24 # Copy in common files.
25 for i in clib_port.h db_config.h db_int.h; do
27 cmp ../build_s60/$i $f > /dev/null 2>&1 ||
28 (echo "Building $f" &&
29 rm -f $f && cp ../build_s60/$i $f && chmod 444 $f)
32 # Build a Makefile for testing on a POSIX system.
33 # $1 is srcfiles keyword
37 (cat s60/s60_make.in &&
39 echo '###################################################' &&
40 echo '# EVERYTHING BELOW THIS LINE GENERATED BY s_s60_posix' &&
41 echo '##################################################' &&
43 grep -w $1 srcfiles.in |
49 grep -w $1 srcfiles.in |
52 -e 's/.*/&.o: ..\/&.c/' \
55 echo 'libdb.a: $(OBJS)' &&
56 echo ' ar cr $@ $(OBJS)') > $t
59 cmp $t $f > /dev/null 2>&1 ||
60 (echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
63 build_make s60 Makefile