Mercurial > ecos
comparison examples/build_Makefile @ 436:f44d40e6cdd3
Improve makefile build tools
| author | gthomas |
|---|---|
| date | Mon, 25 Nov 2002 23:28:08 +0000 |
| parents | ead06911cbae |
| children | e68cf4daeda4 |
comparison
equal
deleted
inserted
replaced
| 435:a6484a9a16c6 | 436:f44d40e6cdd3 |
|---|---|
| 19 cat <<EOF >Makefile | 19 cat <<EOF >Makefile |
| 20 # | 20 # |
| 21 # Makefile for eCos tests | 21 # Makefile for eCos tests |
| 22 # | 22 # |
| 23 | 23 |
| 24 # Copied from 'makefile' the "install" tree | 24 # Platform specific setups |
| 25 | 25 include Make.params |
| 26 EOF | |
| 27 | |
| 28 grep export ${HOME}/makefile >>Makefile | |
| 29 | |
| 30 cat <<EOF >>Makefile | |
| 31 | |
| 32 # | |
| 33 # Target specific flags, etc. | |
| 34 # | |
| 35 | |
| 36 EOF | |
| 37 | |
| 38 cat ${HOME}/install/include/pkgconf/ecos.mak >>Makefile | |
| 39 | |
| 40 cat <<EOF >>Makefile | |
| 41 | 26 |
| 42 # Simple build rules | 27 # Simple build rules |
| 43 | 28 |
| 44 .c.o: | 29 .c.o: |
| 45 \$(CC) -c \$(ECOS_GLOBAL_CFLAGS) -I\$(PREFIX)/include \$*.c | 30 \$(CC) -c \$(ECOS_GLOBAL_CFLAGS) -I\$(PREFIX)/include \$*.c |
| 52 DST=${DST-result_prog} | 37 DST=${DST-result_prog} |
| 53 | 38 |
| 54 \${DST}: \${OBJS} | 39 \${DST}: \${OBJS} |
| 55 | 40 |
| 56 EOF | 41 EOF |
| 42 | |
| 43 # Create actual parameters | |
| 44 | |
| 45 `dirname $0`/build_Make.params ${HOME} | |
| 46 | |
| 47 |
