FreeCalypso > hg > fc-sim-tools
comparison Makefile @ 19:9ff94f80fcb5
top Makefile ported over
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 08:04:12 +0000 |
parents | |
children | 0bc89d61fc59 |
comparison
equal
deleted
inserted
replaced
18:da6e9d0b2ee6 | 19:9ff94f80fcb5 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
3 CFLAGS_PCSC= -O2 -I/usr/include/PCSC | |
4 | |
5 PROGDIR=calypso simtool uicc utils | |
6 PCSC= pcsc | |
7 LIBDIR= libcommon libutil | |
8 SUBDIR= ${PROGDIR} ${PCSC} ${LIBDIR} | |
9 | |
10 INSTALL_PREFIX= /opt/freecalypso | |
11 | |
12 all: ${SUBDIR} | |
13 | |
14 simtool: libcommon libutil | |
15 uicc: libcommon libutil | |
16 utils: libutil | |
17 | |
18 ${PROGDIR} ${LIBDIR}: FRC | |
19 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | |
20 | |
21 pcsc: FRC | |
22 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS_PCSC}" | |
23 | |
24 clean: FRC | |
25 rm -f a.out core errs | |
26 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
27 | |
28 install: FRC | |
29 mkdir -p ${INSTALL_PREFIX} | |
30 for i in ${PROGDIR} ${PCSC}; do (cd $$i; ${MAKE} ${MFLAGS} \ | |
31 INSTALL_PREFIX=${INSTALL_PREFIX} install); done | |
32 mkdir -p ${INSTALL_PREFIX}/sim-data | |
33 mkdir -p ${INSTALL_PREFIX}/sim-scripts | |
34 install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts | |
35 | |
36 FRC: |