view ringtools/Makefile @ 1011:6d9b10633f10 default tip

etmsync Pirelli IMEI retrieval: fix poor use of printf() Bug reported by Vadim Yanitskiy <fixeria@osmocom.org>: the construct where a static-allocated string was passed to printf() without any format arguments causes newer compilers to report a security problem. Given that formatted output is not needed here, just fixed string output, change printf() to fputs(), and direct the error message to stderr while at it.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 23 May 2024 17:29:57 +0000
parents b8ecdf54a957
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp
SCRIPTS=fc-imyplay fc-meltest-e1 fc-meltest-pwt
SUBDIR=	imy

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROGS} ${SUBDIR}

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"

fc-e1decode:	fc-e1decode.c
	${CC} ${CFLAGS} -o $@ $@.c

fc-e1gen:	fc-e1gen.c
	${CC} ${CFLAGS} -o $@ $@.c

fc-pwt-comp:	fc-pwt-comp.c
	${CC} ${CFLAGS} -o $@ $@.c

fc-ringlist-comp:	fc-ringlist-comp.c
	${CC} ${CFLAGS} -o $@ $@.c

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${SCRIPTS} ${INSTBIN}
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
		INSTALL_PREFIX=${INSTALL_PREFIX} install); done

clean:
	rm -f ${PROGS} *.o *errs *.out
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

FRC: