view rvinterf/lowlevel/Makefile @ 330:1171c32a637b

rvinterf & rvtdump: do setlinebuf() on the log file before emitting the header line, to avoid getting this line twice when forking for -b
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 22 Apr 2014 03:39:15 +0000
parents 7ab6b29e76bb
children 2ac2f6d88bb2
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	rvtdump rvinterf
INSTBIN=/usr/local/bin

RVTDUMP_OBJS=	format.o format_g23.o openport.o output.o packetrx.o rvtdump.o

RVINTERF_OBJS=	clientcmd.o format.o format_g23.o localsock.o logsent.o \
		openport.o output.o packetrx.o packettx.o pktfwd.o rvifmain.o

all:	${PROGS}

rvtdump:	${RVTDUMP_OBJS}
	${CC} ${CFLAGS} -o $@ ${RVTDUMP_OBJS}

rvinterf:	${RVINTERF_OBJS}
	${CC} ${CFLAGS} -o $@ ${RVINTERF_OBJS}

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

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