OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [examples/] [build_Makefile] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
#! /bin/sh
#! /bin/sh
# This script will create a generic Makefile template
# This script will create a generic Makefile template
# suitable for use with an installed eCos configuration.
# suitable for use with an installed eCos configuration.
# usage: /build_Makefile []
# usage: /build_Makefile []
# env:   ${SRCS} - the default list of source files
# env:   ${SRCS} - the default list of source files
#        ${DST}  - the default target
#        ${DST}  - the default target
HOME=${1-`pwd`}
HOME=${1-`pwd`}
if [ ! -d ${HOME}/install ]; then
if [ ! -d ${HOME}/install ]; then
  echo "Not an eCos install tree"
  echo "Not an eCos install tree"
  echo "usage: /build_Makefile []"
  echo "usage: /build_Makefile []"
  echo "env:   \${SRCS} - the default list of source files"
  echo "env:   \${SRCS} - the default list of source files"
  echo "       \${DST}  - the default target"
  echo "       \${DST}  - the default target"
  exit
  exit
fi
fi
cat <Makefile
cat <Makefile
#
#
# Makefile for eCos tests
# Makefile for eCos tests
#
#
# Platform specific setups
# Platform specific setups
include Make.params
include Make.params
# Simple build rules
# Simple build rules
.c.o:
.c.o:
        \$(CC) -c \$(ECOS_GLOBAL_CFLAGS) -I\$(PREFIX)/include \$*.c
        \$(CC) -c \$(ECOS_GLOBAL_CFLAGS) -I\$(PREFIX)/include \$*.c
.o:
.o:
        \$(CC) \$(ECOS_GLOBAL_LDFLAGS) -L\$(PREFIX)/lib -Ttarget.ld \$*.o -o \$@
        \$(CC) \$(ECOS_GLOBAL_LDFLAGS) -L\$(PREFIX)/lib -Ttarget.ld \$*.o -o \$@
SRCS=${SRCS-source_file.c}
SRCS=${SRCS-source_file.c}
OBJS=\${SRCS:%.c=%.o}
OBJS=\${SRCS:%.c=%.o}
DST=${DST-result_prog}
DST=${DST-result_prog}
\${DST}: \${OBJS}
\${DST}: \${OBJS}
EOF
EOF
# Create actual parameters
# Create actual parameters
`dirname $0`/build_Make.params ${HOME}
`dirname $0`/build_Make.params ${HOME}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.