blob: 594952bd2a1120192da58f2a7824bac639c88a42 (
plain)
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
|
# makedep
#
# This shell script creates a dependency file necessary for older compilers
# on the Windows 16-bit platform.
echo "\
# This dependency file to be used with various Windows compilers
# has been generated automatically with the script \`makedep' on
# `date +%d-%b-%Y`.
" > depend.win
(cd ../..
gcc -MM -Iarch/win16 -I. \
*.c | \
sed -e "s/\.o:/.obj:/" -e "s:/:\\\\:g") >> depend.win
(cd ../..
gcc -MM -Iarch/win16 -I. -Iextend \
extend/*.c | \
sed -e "s/^\(.*\)\.o:/extend\\\\\1.obj:/" -e "s:/:\\\\:g") >> depend.win
echo "!ifndef __MAKE__" >> depend.win
(cd ../..
gcc -MM -Iarch/win16 -I. -Iextend -DTT_HUGE_PTR \
arch/win16/*.c | \
sed -e "s/^\(.*\)\.o:/arch\\\\win16\\\\\1.obj:/" \
-e "s:/:\\\\:g") >> depend.win
echo "!endif" >> depend.win
# eof
|