view uicc/Makefile @ 95:c06c0e2da24c

fc-simtool terminal-resp command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 21 Apr 2021 06:40:33 +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