|
436
|
1 #! /bin/sh |
|
|
2 |
|
|
3 # This script will set up a Makefile fragment with |
|
|
4 # platform specifics. This fragement can be used by |
|
|
5 # the automatically generated Makefile (via the script |
|
|
6 # 'build_Makefile') |
|
|
7 |
|
|
8 # Copied from 'makefile' the "install" tree |
|
|
9 |
|
|
10 HOME=${1-`pwd`} |
|
|
11 if [ ! -d ${HOME}/install ]; then |
|
|
12 echo "Not an eCos install tree" |
|
|
13 echo "usage: <eCos_repository>/build_Make.params [<eCos_install_dir>]" |
|
|
14 exit |
|
|
15 fi |
|
|
16 |
|
|
17 cat <<EOF >Make.params |
|
|
18 |
|
|
19 # Copied from 'makefile' in the "install" tree |
|
|
20 |
|
|
21 EOF |
|
|
22 |
|
|
23 grep export ${HOME}/makefile >>Make.params |
|
|
24 |
|
|
25 cat <<EOF >>Make.params |
|
|
26 |
|
|
27 # |
|
|
28 # Target specific flags, etc. |
|
|
29 # |
|
|
30 |
|
|
31 EOF |
|
|
32 |
|
|
33 cat ${HOME}/install/include/pkgconf/ecos.mak >>Make.params |
|
|
34 |
|
|
35 |
|
|
36 |