wiki:Projects/Expat

Version 1 (modified by C Rempel, on 06/21/12 at 20:54:32) (diff)

Created page with "While exploring a more efficient way to port Apache to RTEMS, I am currently working with the RTEMS Addon Packages. One starter library to port is the Expat library. The Expat ..."

Expat

While exploring a more efficient way to port Apache to RTEMS, I am currently working with the RTEMS Addon Packages. One starter library to port is the Expat library. The Expat library is used by the Apache Runtime Utilities to parse XML.

rtems-addon-packages/RTEMS_MAKEFILES/Makefile.expat configures and makes the Expat library for RTEMS. This version is a modified version of the Makefile.ncurses.

The host is what many open-source projects use instead of a target. The libdir puts the Expat library in the same folder as the other RTEMS libraries, and static gives Expat the .a extension (to be uniform with the other RTEMS libraries).

include ../RTEMS_Makefiles/Makefile.common

# # The following will work only if you have the latest ncurses version # of infocmp installed before trying to build for an RTEMS target. # The cf_cv_type_of_bool hack works around a bug when configuring # for a cross-target. # all:

./configure \

--host=$(RTEMS_CPU)-rtems4.11 \ --prefix=$(exec_prefix) \ --libdir=$(exec_prefix)/$(RTEMS_BSP)/lib \ --includedir=$(exec_prefix)/$(RTEMS_BSP)/lib/include \ --enable-static

make make check make install