Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Changes between Version 3 and Version 4 of Packages


Ignore:
Timestamp:
06/15/12 22:16:52 (12 years ago)
Author:
C Rempel
Comment:

/* Writing Your Own Makefile.> */

Legend:

Unmodified
Added
Removed
Modified
  • Packages

    v3 v4  
    3535=  Writing Your Own Makefile.<<library>>  =
    3636
     37Makefile.<<library>> is a shell script to configure a package.
     38
     39Look at rtems-addon-packages/RTEMS_Makefiles/Makefile.ncurses
     40   $ cat ~/rtems-addon-packages/RTEMS_Makefiles/Makefile.ncurses
     41
     42The 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
     48The next line sets some environmental variables:
     49   TERMINALS=xterm,vt100,linux,ansi
     50
     51The 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
     59all: 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
     63Makefile.ncurses use some some cached variables. 
     64   cf_cv_type_of_bool=char
     65
     66Set the C++ compiler to the C compiler.
     67CXX="$(CC)"
     68
     69Select the TERM environmental variable to xterm
     70TERM=xterm
     71
     72make -f ../RTEMS_Makefiles/Makefile.avl
    3773
    3874