summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype/freetype-1.5/lib/arch/win32/makedep
blob: 81f0de2c1b38873cd91679e0f19ac341f2060bb7 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# makedep
#
# This shell script creates a dependency file necessary for some compilers
# on the Win32 platform.
#
# If you run this script under non-Windows operating systems, expect
# warnings that `windows.h' can't be found.
#
# Copyright 1996-2002 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.

echo "\
# This file is part of the FreeType project.
# Automatically generated, but you can customize to fit your needs.
# However, changes will be erased if not made in \`makedep'...
#
# This dependency file to be used with various Win32 compilers
# has been generated automatically with the script \`makedep' on
# `date +%Y-%m-%d`.
" > depend.win

(cd ../..
 gcc -MM -Iarch/win32 -I. *.c | \
   sed -e "s/\.o:/.obj:/" -e "s:/:\\\\:g") >> depend.win

(cd ../..
 gcc -MM -Iarch/win32 -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/win32 -I. -Iextend arch/win32/*.c | \
   sed -e "s/^\(.*\)\.o:/arch\\\\win32\\\\\1.obj:/" \
       -e "s:/:\\\\:g") >> depend.win

echo "!endif" >> depend.win

# eof