diff rvinterf/tmsh/Makefile @ 67:ee04baba7b2b

rvinterf/tmsh/Makefile: simpler structure like that used for fc-shell
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 22:53:10 +0000
parents ee89ff178ba5
children 27c41e4b21ae
line wrap: on
line diff
--- a/rvinterf/tmsh/Makefile	Wed Oct 26 22:50:04 2016 +0000
+++ b/rvinterf/tmsh/Makefile	Wed Oct 26 22:53:10 2016 +0000
@@ -1,20 +1,19 @@
 CC=	gcc
 CFLAGS=	-O2 -I../include
-PROGS=	fc-tmsh
-INSTBIN=/opt/freecalypso/bin
+PROG=	fc-tmsh
+OBJS=	abb.o audiocmd.o etmbasic.o ffs2.o ffs2resp.o init.o main.o misc.o \
+	omr.o pktsort.o tmcore.o usercmd.o
 LIBS=	../libasync/libasync.a
-
-TMSH_OBJS=	abb.o audiocmd.o etmbasic.o ffs2.o ffs2resp.o init.o main.o \
-		misc.o omr.o pktsort.o tmcore.o usercmd.o
+INSTBIN=/opt/freecalypso/bin
 
-all:	${PROGS}
+all:	${PROG}
 
-fc-tmsh:	${TMSH_OBJS} ${LIBS}
-	${CC} ${CFLAGS} -o $@ ${TMSH_OBJS} ${LIBS}
+${PROG}: ${OBJS} ${LIBS}
+	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
-install:	${PROGS}
+install:	${PROG}
 	mkdir -p ${INSTBIN}
-	install -c ${PROGS} ${INSTBIN}
+	install -c ${PROG} ${INSTBIN}
 
 clean:
-	rm -f *.o *.out *errs ${PROGS}
+	rm -f *.o *.out *errs ${PROG}