view examples/build_Makefile @ 3087:37f8bded2ac7

* cdl/kinetis_irq_scheme.cdl Centralized IRQ priority scheme. * cdl/hal_cortexm_kinetis.cdl: * cdl/kinetis_flexbus.cdl * include/var_io_devs.h: * include/var_io.h: * src/kinetis_clocking.c: * src/kinetis_misc.c: Add I/O defs for eDMA, DSPI. Add flexbus control. CYG_HAL_STARTUP parenthed bt CYG_HAL_STARTUP_ENV. Early clock start [Bugzilla 1001450]
author vae
date Wed, 22 Feb 2012 21:26:08 +0000
parents ba637aa555ec
children
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
ECOS_DIR=${1-`pwd`}

cat <<EOF >Makefile
#
# Makefile for eCos tests
#

# Platform specific setups
include Make.params

# Simple build rules

.c.o:
	\$(CC) -c \$(ACTUAL_CFLAGS) -I\$(PREFIX)/include \$*.c

.o:
	\$(CC) \$(ACTUAL_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 ${ECOS_DIR}