# CFLAGS+=-g
OBJS=action.o protocol.o device.o mtxtype.o connection.o connectionMgr.o
REALOBJS=main.o
TESTOBJS=test.o
HEADERS=stl.h protocol.h action.h
BIN=mtxorbd
CXX?=c++
PREFIX?=/usr/local
all: ${OBJS} ${REALOBJS} ${HEADERS}
${CXX} -o ${BIN} ${OBJS} ${REALOBJS}
test: ${OBJS} ${TESTOBJS} ${HEADERS}
${CXX} -o ${BIN}.test ${OBJS} ${TESTOBJS}
clean:
rm -f ${OBJS} ${REALOBJS} ${BIN} ${BIN}.core ${BIN}.test ${BIN}.test.core
install:
install -d ${PREFIX}/sbin/
install -d ${PREFIX}/share/mtxorbd/
install -d ${PREFIX}/man/man1/
install -C -o root -g bin -m 555 mtxorbd ${PREFIX}/sbin/
install -C -o root -g bin -m 444 devices.conf ${PREFIX}/share/mtxorbd/
install -C -o root -g man -m 444 mtxorbd.1 ${PREFIX}/man/man1/
syntax highlighted by Code2HTML, v. 0.9.1