- Timestamp:
-
06/15/12 22:24:30 (12 years ago)
- Author:
-
C Rempel
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
33 | 33 | Make the AVL library |
34 | 34 | $ make -f ../RTEMS_Makefiles/Makefile.avl |
35 | | = Writing Your Own Makefile.<<library>> = |
| 35 | = Exploring Makefile.<<library>> = |
36 | 36 | |
37 | 37 | Makefile.<<library>> is a shell script to configure a package. |
… |
… |
|
48 | 48 | The next line sets some environmental variables: |
49 | 49 | TERMINALS=xterm,vt100,linux,ansi |
| 50 | |
| 51 | Tell Makefile.ncurses to include the common RTEMS make rules... |
| 52 | include ../RTEMS_Makefiles/Makefile.common |
50 | 53 | |
51 | 54 | The next paragraph explains the dependencies: |
… |
… |
|
64 | 67 | cf_cv_type_of_bool=char |
65 | 68 | |
66 | | Set the C++ compiler to the C compiler. |
67 | | CXX="$(CC)" |
| 69 | Makefile.ncurses set the C++ compiler to the C compiler. |
| 70 | CXX="$(CC)" |
68 | 71 | |
69 | | Select the TERM environmental variable to xterm |
70 | | TERM=xterm |
| 72 | Makefile.ncurses selected the TERM environmental variable to xterm |
| 73 | TERM=xterm |
| 74 | |
| 75 | Makefile.ncurses invokes configure with the desired options. Notice that each line ends with the " \" which "escapes out the newline" |
| 76 | ''Puts the cached variables on the same line as the configure invokation.'' |
| 77 | |
| 78 | Select some complicated make options: |
| 79 | make "TERM=xterm" "HOSTCC=gcc" "HOSTCCFLAGS=-I. -I../include" HOSTLDFLAGS="" |
| 80 | |
| 81 | Finally, install the library: |
| 82 | make install |
71 | 83 | |
72 | 84 | make -f ../RTEMS_Makefiles/Makefile.avl |