changeset 285:6d10869f7a1f

fc-cal2text converted to link with librftab
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 18 Nov 2017 00:20:36 +0000
parents 556bb8c860fa
children 88a4ebed160d
files ffstools/cal2text/Makefile
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ffstools/cal2text/Makefile	Sat Nov 18 00:06:34 2017 +0000
+++ b/ffstools/cal2text/Makefile	Sat Nov 18 00:20:36 2017 +0000
@@ -1,16 +1,14 @@
 CC=	gcc
 CFLAGS=	-O2
 PROG=	fc-cal2text
-OBJS=	dircheck.o main.o mkdir.o rftablewr.o smallconv.o
+OBJS=	dircheck.o main.o mkdir.o smallconv.o
+LIBS=	../../librftab/librftab.a
 INSTBIN=/opt/freecalypso/bin
 
 all:	${PROG}
 
-${PROG}:	${OBJS}
-	${CC} -o $@ ${OBJS}
-
-rftablewr.o:	../../rvinterf/tmsh/rftablewr.c
-	${CC} ${CFLAGS} -c -o $@ $<
+${PROG}:	${OBJS} ${LIBS}
+	${CC} -o $@ ${OBJS} ${LIBS}
 
 install:	${PROG}
 	mkdir -p ${INSTBIN}