annotate examples/build_Makefile @ 3252:2dba5f2af421

* src/core/snmp/msg_out.c: Applied lwip bugfix #29256. ip_addr_set_hton(...) does not exist in this revision, so an equivalent solution was provided. The application was retested. Any application that worked around the problem by using htonl(...) will need to be changed by removing it. [ Bugzilla 1001789 ]
author jld
date Sat, 22 Jun 2013 14:58:09 +0000
parents ba637aa555ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
1 #! /bin/sh
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
2
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
3 # This script will create a generic Makefile template
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
4 # suitable for use with an installed eCos configuration.
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
5
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
6 # usage: <eCos_repository>/build_Makefile [<eCos_install_dir>]
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
7 # env: ${SRCS} - the default list of source files
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
8 # ${DST} - the default target
1197
e68cf4daeda4 Update build_Make* to handle ConfigTool generated trees
gthomas
parents: 436
diff changeset
9 ECOS_DIR=${1-`pwd`}
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
10
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
11 cat <<EOF >Makefile
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
12 #
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
13 # Makefile for eCos tests
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
14 #
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
15
436
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
16 # Platform specific setups
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
17 include Make.params
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
18
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
19 # Simple build rules
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
20
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
21 .c.o:
2113
ba637aa555ec Improved setup for newer compilers (which have problems with some options)
gthomas
parents: 1197
diff changeset
22 \$(CC) -c \$(ACTUAL_CFLAGS) -I\$(PREFIX)/include \$*.c
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
23
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
24 .o:
2113
ba637aa555ec Improved setup for newer compilers (which have problems with some options)
gthomas
parents: 1197
diff changeset
25 \$(CC) \$(ACTUAL_LDFLAGS) -L\$(PREFIX)/lib -Ttarget.ld \$*.o -o \$@
168
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
26
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
27 SRCS=${SRCS-source_file.c}
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
28 OBJS=\${SRCS:%.c=%.o}
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
29 DST=${DST-result_prog}
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
30
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
31 \${DST}: \${OBJS}
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
32
ead06911cbae Add up-to-date examples
jlarmour
parents:
diff changeset
33 EOF
436
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
34
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
35 # Create actual parameters
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
36
1197
e68cf4daeda4 Update build_Make* to handle ConfigTool generated trees
gthomas
parents: 436
diff changeset
37 `dirname $0`/build_Make.params ${ECOS_DIR}
436
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
38
f44d40e6cdd3 Improve makefile build tools
gthomas
parents: 168
diff changeset
39