FreeCalypso > hg > freecalypso-tools
annotate rvinterf/Makefile @ 471:8f3fe2d1fda5
Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 12 Feb 2019 00:20:50 +0000 |
parents | 67d683a87b1d |
children | 90d7c360a614 |
rev | line source |
---|---|
471
8f3fe2d1fda5
Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents:
419
diff
changeset
|
1 CC= gcc |
8f3fe2d1fda5
Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents:
419
diff
changeset
|
2 CFLAGS= -O2 |
347
dd5bab5156bf
rvinterf/Makefile: rvtat added
Mychaela Falconia <falcon@freecalypso.org>
parents:
221
diff
changeset
|
3 PROGDIR=asyncshell ctracedec etmsync lowlevel rvtat tmsh |
419
67d683a87b1d
rvinterf client refactoring: libinterf created
Mychaela Falconia <falcon@freecalypso.org>
parents:
347
diff
changeset
|
4 LIBDIR= libasync libg23 libinterf |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 SUBDIR= ${PROGDIR} ${LIBDIR} |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
221
a46a68500517
rvinterf/Makefile: install include files in /opt/freecalypso/include/rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
7 INCLUDE_INSTALL_DIR= /opt/freecalypso/include/rvinterf |
a46a68500517
rvinterf/Makefile: install include files in /opt/freecalypso/include/rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
8 |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${SUBDIR} |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
419
67d683a87b1d
rvinterf client refactoring: libinterf created
Mychaela Falconia <falcon@freecalypso.org>
parents:
347
diff
changeset
|
11 asyncshell: libasync libg23 libinterf |
67d683a87b1d
rvinterf client refactoring: libinterf created
Mychaela Falconia <falcon@freecalypso.org>
parents:
347
diff
changeset
|
12 etmsync: libinterf |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 lowlevel: libg23 |
419
67d683a87b1d
rvinterf client refactoring: libinterf created
Mychaela Falconia <falcon@freecalypso.org>
parents:
347
diff
changeset
|
14 rvtat: libinterf |
67d683a87b1d
rvinterf client refactoring: libinterf created
Mychaela Falconia <falcon@freecalypso.org>
parents:
347
diff
changeset
|
15 tmsh: libasync libinterf |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 ${SUBDIR}: FRC |
471
8f3fe2d1fda5
Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents:
419
diff
changeset
|
18 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 clean: FRC |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 rm -f a.out core errs |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 install: FRC |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done |
221
a46a68500517
rvinterf/Makefile: install include files in /opt/freecalypso/include/rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
26 mkdir -p ${INCLUDE_INSTALL_DIR} |
a46a68500517
rvinterf/Makefile: install include files in /opt/freecalypso/include/rvinterf
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
27 install -c -m 644 include/* ${INCLUDE_INSTALL_DIR} |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 FRC: |