FreeCalypso > hg > freecalypso-tools
view ffstools/caltools/Makefile @ 405:ed9b67e7e741
fcup-smsend: fixed bug in the handling of -W with no dest address argument
The original code checked for argv[optind+1] when argv[optind] is NULL;
on most systems this bogus code gets the first line of the environment,
which is clearly not what we are after. Fixed the code to check argc
instead.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Aug 2018 18:59:54 +0000 |
parents | 79434b9de159 |
children | f4a32c1025a2 |
line wrap: on
line source
CC= gcc CFLAGS= -O2 PROGS= c1xx-calextr fc-cal2bin INSTBIN=/opt/freecalypso/bin all: ${PROGS} LIBRFTAB= ../../librftab/librftab.a CAL2BIN_OBJS= fc-cal2bin.o ${LIBRFTAB} CALEXTR_OBJS= c1xx-calextr.o mkdir.o ${LIBRFTAB} fc-cal2bin: ${CAL2BIN_OBJS} ${CC} ${CFLAGS} -o $@ ${CAL2BIN_OBJS} c1xx-calextr: ${CALEXTR_OBJS} ${CC} ${CFLAGS} -o $@ ${CALEXTR_OBJS} mkdir.o: ../cal2text/mkdir.c ${CC} ${CFLAGS} -c -o $@ $< install: mkdir -p ${INSTBIN} install -c ${PROGS} ${INSTBIN} clean: rm -f ${PROGS} *.o *errs *.out