FreeCalypso > hg > fc-pcm-if
annotate sw/Makefile @ 5:3ae4a6ca5639
add README
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 12 Oct 2024 03:11:17 +0000 |
parents | 1dacfe7d5b3d |
children | ee14dd81bba1 |
rev | line source |
---|---|
4
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROGDIR=mcsi-rx |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 LIBDIR= libserial |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 SUBDIR= ${PROGDIR} ${LIBDIR} |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 INSTALL_PREFIX= /opt/freecalypso |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${SUBDIR} |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 mcsi-rx: libserial |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ${SUBDIR}: FRC |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 clean: FRC |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 rm -f a.out core errs |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 install: FRC |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 mkdir -p ${INSTALL_PREFIX} |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 INSTALL_PREFIX=${INSTALL_PREFIX} install); done |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
1dacfe7d5b3d
sw: add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 FRC: |