view enc-text/Makefile @ 22:8a2038c6a156

LICENSE: same as FC host tools and FC SIM tools The present code is mostly pieced together from FC User Phone Tools (freecalypso-tools/uptools) and fc-sim-tools, hence it makes no rational sense for it to be subject to any different license terms than those two major packages - but make it explicit.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 23:03:38 +0000
parents a16b1b9728f6
children 2a19b44c272e
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	sms-encode-text
OBJS=	concat_refno.o gsm7.o main.o ucs2.o
LIBS=	../libcoding/libcoding.a

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

all:	${PROG}

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

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

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