Mercurial > ecos
annotate examples/build_Makefile @ 3247:6a85fd724dd8
* packages/hal/cortexm/stm32/stm32f4discovery/*: New STM32F4-Discovery
platform HAL package.
* packages/ecos.db: Add STM32F4-Discovery platform HAL package and target
records.
* doc/sgml/doclist: Add STM32F4-Discovery doc file.
| author | jld |
|---|---|
| date | Wed, 12 Jun 2013 13:20:07 +0000 |
| parents | ba637aa555ec |
| children |
| rev | line source |
|---|---|
| 168 | 1 #! /bin/sh |
| 2 | |
| 3 # This script will create a generic Makefile template | |
| 4 # suitable for use with an installed eCos configuration. | |
| 5 | |
| 6 # usage: <eCos_repository>/build_Makefile [<eCos_install_dir>] | |
| 7 # env: ${SRCS} - the default list of source files | |
| 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 | 10 |
| 11 cat <<EOF >Makefile | |
| 12 # | |
| 13 # Makefile for eCos tests | |
| 14 # | |
| 15 | |
| 436 | 16 # Platform specific setups |
| 17 include Make.params | |
| 168 | 18 |
| 19 # Simple build rules | |
| 20 | |
| 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 | 23 |
| 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 | 26 |
| 27 SRCS=${SRCS-source_file.c} | |
| 28 OBJS=\${SRCS:%.c=%.o} | |
| 29 DST=${DST-result_prog} | |
| 30 | |
| 31 \${DST}: \${OBJS} | |
| 32 | |
| 33 EOF | |
| 436 | 34 |
| 35 # Create actual parameters | |
| 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 | 38 |
| 39 |
