Mercurial > ecos
view examples/build_Makefile @ 2962:0c51e5cb890a
* include/flash_am29xxxxx_parts.inl [CYGHWR_DEVS_FLASH_AMD_AM29LV640M]:
* cdl/flash_amd_am29xxxxx.cdl: Add AM29LV640M part
* include/flash_am29xxxxx_parts.inl [CYGHWR_DEVS_FLASH_AMD_S29GL512P]:
* cdl/flash_amd_am29xxxxx.cdl: Add Spansion S29GL512P part
* include/flash_am29xxxxx_parts.inl [CYGHWR_DEVS_FLASH_AMD_S29GL01GP]:
* cdl/flash_amd_am29xxxxx.cdl: Add Spansion S29GL01GP part
| author | sergeig |
|---|---|
| date | Fri, 16 Jul 2010 14:53:40 +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}
