- Timestamp:
-
06/15/12 22:16:52 (12 years ago)
- Author:
-
C Rempel
- Comment:
-
/* Writing Your Own Makefile.> */
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v3
|
v4
|
|
35 | 35 | = Writing Your Own Makefile.<<library>> = |
36 | 36 | |
| 37 | Makefile.<<library>> is a shell script to configure a package. |
| 38 | |
| 39 | Look at rtems-addon-packages/RTEMS_Makefiles/Makefile.ncurses |
| 40 | $ cat ~/rtems-addon-packages/RTEMS_Makefiles/Makefile.ncurses |
| 41 | |
| 42 | The first four lines are comments that describe the package. |
| 43 | # |
| 44 | # Declare supported terminal types. |
| 45 | # This value can be augmented/overridden by the site-configuration file |
| 46 | # |
| 47 | |
| 48 | The next line sets some environmental variables: |
| 49 | TERMINALS=xterm,vt100,linux,ansi |
| 50 | |
| 51 | The next paragraph explains the dependencies: |
| 52 | # |
| 53 | # The following will work only if you have the latest ncurses version |
| 54 | # of infocmp installed before trying to build for an RTEMS target. |
| 55 | # The cf_cv_type_of_bool hack works around a bug when configuring |
| 56 | # for a cross-target. |
| 57 | # |
| 58 | |
| 59 | all: is simply the makefile rule for all |
| 60 | |
| 61 | '''''Note:''' Cached variables help with cross-compiling by providing values that can't be determined by configure.'' |
| 62 | |
| 63 | Makefile.ncurses use some some cached variables. |
| 64 | cf_cv_type_of_bool=char |
| 65 | |
| 66 | Set the C++ compiler to the C compiler. |
| 67 | CXX="$(CC)" |
| 68 | |
| 69 | Select the TERM environmental variable to xterm |
| 70 | TERM=xterm |
| 71 | |
| 72 | make -f ../RTEMS_Makefiles/Makefile.avl |
37 | 73 | |
38 | 74 | |