view uicc/Makefile @ 102:c2f18d7b0a1e

doc/Admin-write-commands: document write-hplmn-timer command
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 14 May 2022 23:20:38 +0000
parents 5560261fc516
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
CPPFLAGS=-I../libcommon
PROG=	fc-uicc-tool
OBJS=	bfsearch.o cmdtab.o createfile.o dumpdir.o erasefile.o getresp.o \
	hlread.o main.o pins.o readcmd.o readef.o readops.o restorebin.o \
	savebin.o select.o sws.o writecmd.o writeops.o
LIBS=	../libcommon/libcommon.a ../libutil/libutil.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROG}

${PROG}:	${OBJS} ${LIBS}
	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}

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

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