view examples/build_Makefile @ 3013:286a2ab55044

* src/sys/netinet/if_ether.c: Merge fix from FreeBSD CVS r1.108. Prevents creation of reciprocal ARP cache entries for hosts not on local subnet. * cdl/freebsd_net.cdl: * include/netinet/tcp_var.c: * src/sys/netinet/tcp_subr.c: * src/sys/netinet/tcp_input.c: Merge fix from FreeBSD CVS. Introduces a maximum size for the TCP reassembly queue to limit network buffer usage associated with reassembly. Enable CYGNUM_NET_TCP_REASS_DIVISOR and set it to configure the maximum number of buffers usable for TCP reassembly.
author jlarmour
date Tue, 22 Feb 2011 04:36:20 +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}