view utils/Makefile @ 34:e0a6111705b3

fcsim1-defprog: program FPLMN to avoid 310-260
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 17 Mar 2021 01:34:00 +0000
parents ca8a6f95826a
children 26d2ef843a99
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	sim-iccid-mkfull sim-iccid-mkrange sws-card-lookup sws-email2db
LIBUTIL=../libutil/libutil.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROGS}

sim-iccid-mkfull:	sim-iccid-mkfull.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

sim-iccid-mkrange:	sim-iccid-mkrange.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

sws-card-lookup:	sws-card-lookup.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

sws-email2db:	sws-email2db.c
	${CC} ${CFLAGS} -o $@ $@.c

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f ${PROGS} *.o