comparison ringtools/Makefile @ 883:34f0b7eb4b75

ringtools/Makefile: add fc-imy2pwt
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Apr 2022 03:44:23 +0000
parents f80e3ec41998
children b8ecdf54a957
comparison
equal deleted inserted replaced
882:fd4c9bc7835d 883:34f0b7eb4b75
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp 3 PROGS= fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp
4 SCRIPTS=fc-meltest-e1 fc-meltest-pwt 4 SCRIPTS=fc-meltest-e1 fc-meltest-pwt
5 SUBDIR= imy
5 6
6 INSTALL_PREFIX= /opt/freecalypso 7 INSTALL_PREFIX= /opt/freecalypso
7 8
8 INSTBIN=${INSTALL_PREFIX}/bin 9 INSTBIN=${INSTALL_PREFIX}/bin
9 10
10 all: ${PROGS} 11 all: ${PROGS} ${SUBDIR}
12
13 ${SUBDIR}: FRC
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
11 15
12 fc-e1decode: fc-e1decode.c 16 fc-e1decode: fc-e1decode.c
13 ${CC} ${CFLAGS} -o $@ $@.c 17 ${CC} ${CFLAGS} -o $@ $@.c
14 18
15 fc-e1gen: fc-e1gen.c 19 fc-e1gen: fc-e1gen.c
22 ${CC} ${CFLAGS} -o $@ $@.c 26 ${CC} ${CFLAGS} -o $@ $@.c
23 27
24 install: 28 install:
25 mkdir -p ${INSTBIN} 29 mkdir -p ${INSTBIN}
26 install -c ${PROGS} ${SCRIPTS} ${INSTBIN} 30 install -c ${PROGS} ${SCRIPTS} ${INSTBIN}
31 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
32 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
27 33
28 clean: 34 clean:
29 rm -f ${PROGS} *.o *errs *.out 35 rm -f ${PROGS} *.o *errs *.out
36 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
37
38 FRC: