Mercurial > ecos
view examples/build_Makefile @ 356:b77e86276ec3
* src/common/clock.cxx (add_alarm): Tweak last change to allow
alarm order for identical alarms to be the same as it used to be.
* src/common/clock.cxx (add_alarm): Fix bug resulting in alarms
not being added at all if a lower triggered alarm already exists.
Reported by Christoph Csebits.
Also fix bug when alarm is entered for the same time as tail.
These bugs only apply for CYGIMP_KERNEL_COUNTERS_SORT_LIST enabled.
* doc/kernel.sgml: document that order of callback for alarms at
identical times is unspecified.
| author | jlarmour |
|---|---|
| date | Tue, 01 Oct 2002 19:10:21 +0000 |
| parents | ead06911cbae |
| children | f44d40e6cdd3 |
line wrap: on
line source
#! /bin/sh # This script will create a generic Makefile template # suitable for use with an installed eCos configuration. # usage: <eCos_repository>/build_Makefile [<eCos_install_dir>] # env: ${SRCS} - the default list of source files # ${DST} - the default target HOME=${1-`pwd`} if [ ! -d ${HOME}/install ]; then echo "Not an eCos install tree" echo "usage: <eCos_repository>/build_Makefile [<eCos_install_dir>]" echo "env: \${SRCS} - the default list of source files" echo " \${DST} - the default target" exit fi cat <<EOF >Makefile # # Makefile for eCos tests # # Copied from 'makefile' the "install" tree EOF grep export ${HOME}/makefile >>Makefile cat <<EOF >>Makefile # # Target specific flags, etc. # EOF cat ${HOME}/install/include/pkgconf/ecos.mak >>Makefile cat <<EOF >>Makefile # Simple build rules .c.o: \$(CC) -c \$(ECOS_GLOBAL_CFLAGS) -I\$(PREFIX)/include \$*.c .o: \$(CC) \$(ECOS_GLOBAL_LDFLAGS) -L\$(PREFIX)/lib -Ttarget.ld \$*.o -o \$@ SRCS=${SRCS-source_file.c} OBJS=\${SRCS:%.c=%.o} DST=${DST-result_prog} \${DST}: \${OBJS} EOF
