view uicc/Makefile @ 16:53f8a1146a56

{simtool,uicc}/Makefile: INSTALL_PREFIX= override support
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 07:43:51 +0000
parents b70d35f5476f
children 97646b363eaa
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 getresp.o hlread.o main.o \
	pins.o readcmd.o readops.o select.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