Mercurial > flash_v2
view examples/build_Makefile @ 1076:ff838098079a
* src/hal_if.c (delay_us): The first test against
CYGNUM_KERNEL_COUNTERS_RTC_PERIOD is now against the period
divided by two. By the time we get to this test we know that usecs
can never be > usec_per_period/2 so we can double the range of
period values that we can handle without overflow and use the more
efficient approximation. The second test is not changed since we
cannot make the same assumptions about the elapsed count.
| author | nickg |
|---|---|
| date | Wed, 25 Jun 2003 17:40:41 +0000 |
| parents | f44d40e6cdd3 |
| children | e68cf4daeda4 |
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 # # Platform specific setups include Make.params # 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 # Create actual parameters `dirname $0`/build_Make.params ${HOME}
