view ueda/mclutils/Makefile @ 139:bf188727e606

donl-rename-parts reader: no tEDAx-style escapes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 07 Sep 2020 04:25:11 +0000
parents 125fc4ef7eb0
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	csvattr csvbom getfps mkbom shortbom
LIBUEDA=../libueda/libueda.a
BINDIR=	/usr/local/bin

all:	${PROGS}

csvattr:	csvattr.o ${LIBUEDA}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUEDA}

csvbom:	csvbom.o bomtally.o seqrefdes.o ${LIBUEDA}
	${CC} ${CFLAGS} -o $@ $@.o bomtally.o seqrefdes.o ${LIBUEDA}

getfps:	getfps.o ${LIBUEDA}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUEDA}

mkbom:	mkbom.o bomtally.o seqrefdes.o ${LIBUEDA}
	${CC} ${CFLAGS} -o $@ $@.o bomtally.o seqrefdes.o ${LIBUEDA}

shortbom:	shortbom.o ${LIBUEDA}
	${CC} ${CFLAGS} -o $@ $@.o ${LIBUEDA}

install:
	install -c -o bin -g bin -m 755 csvattr ${BINDIR}/ueda-csvattr
	install -c -o bin -g bin -m 755 csvbom ${BINDIR}/ueda-csvbom
	install -c -o bin -g bin -m 755 getfps ${BINDIR}/ueda-getfps
	install -c -o bin -g bin -m 755 mkbom ${BINDIR}/ueda-mkbom
	install -c -o bin -g bin -m 755 shortbom ${BINDIR}/ueda-shortbom

clean:
	rm -f *.[ao] a.out core errs ${PROGS}