comparison 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
comparison
equal deleted inserted replaced
66:ee89ff178ba5 67:ee04baba7b2b
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 -I../include 2 CFLAGS= -O2 -I../include
3 PROGS= fc-tmsh 3 PROG= fc-tmsh
4 OBJS= abb.o audiocmd.o etmbasic.o ffs2.o ffs2resp.o init.o main.o misc.o \
5 omr.o pktsort.o tmcore.o usercmd.o
6 LIBS= ../libasync/libasync.a
4 INSTBIN=/opt/freecalypso/bin 7 INSTBIN=/opt/freecalypso/bin
5 LIBS= ../libasync/libasync.a
6 8
7 TMSH_OBJS= abb.o audiocmd.o etmbasic.o ffs2.o ffs2resp.o init.o main.o \ 9 all: ${PROG}
8 misc.o omr.o pktsort.o tmcore.o usercmd.o
9 10
10 all: ${PROGS} 11 ${PROG}: ${OBJS} ${LIBS}
12 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
11 13
12 fc-tmsh: ${TMSH_OBJS} ${LIBS} 14 install: ${PROG}
13 ${CC} ${CFLAGS} -o $@ ${TMSH_OBJS} ${LIBS}
14
15 install: ${PROGS}
16 mkdir -p ${INSTBIN} 15 mkdir -p ${INSTBIN}
17 install -c ${PROGS} ${INSTBIN} 16 install -c ${PROG} ${INSTBIN}
18 17
19 clean: 18 clean:
20 rm -f *.o *.out *errs ${PROGS} 19 rm -f *.o *.out *errs ${PROG}