view utils/Makefile @ 80:711f1641b19c

doc/FCSIM1-programming: update for fcsim1-program
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 09 Apr 2021 08:19:31 +0000
parents 2a24e94400e8
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fcsim1-mkprov fcsim1-program 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}

fcsim1-mkprov:	fcsim1-mkprov.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

fcsim1-program:	fcsim1-program.o ${LIBUTIL}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUTIL}

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