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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [examples/] [build_Makefile] - Blame information for rev 838

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#! /bin/sh
2
 
3
# This script will create a generic Makefile template
4
# suitable for use with an installed eCos configuration.
5
 
6
# usage: /build_Makefile []
7
# env:   ${SRCS} - the default list of source files
8
#        ${DST}  - the default target
9
ECOS_DIR=${1-`pwd`}
10
 
11
cat <Makefile
12
#
13
# Makefile for eCos tests
14
#
15
 
16
# Platform specific setups
17
include Make.params
18
 
19
# Simple build rules
20
 
21
.c.o:
22
        \$(CC) -c \$(ACTUAL_CFLAGS) -I\$(PREFIX)/include \$*.c
23
 
24
.o:
25
        \$(CC) \$(ACTUAL_LDFLAGS) -L\$(PREFIX)/lib -Ttarget.ld \$*.o -o \$@
26
 
27
SRCS=${SRCS-source_file.c}
28
OBJS=\${SRCS:%.c=%.o}
29
DST=${DST-result_prog}
30
 
31
\${DST}: \${OBJS}
32
 
33
EOF
34
 
35
# Create actual parameters
36
 
37
`dirname $0`/build_Make.params ${ECOS_DIR}
38
 
39
 

powered by: WebSVN 2.1.0

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