diff pcm/Makefile @ 2:c03ec046471f

pcm: initial version compiles and links
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 23 Jun 2024 08:35:46 +0000
parents
children 7233c10af3ad
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pcm/Makefile	Sun Jun 23 08:35:46 2024 +0000
@@ -0,0 +1,20 @@
+PROG=	itt-pcm-one
+OBJS=	main.o read_ts.o
+LIBUTIL=../libutil/libutil.a
+
+include ../config.defs
+
+CPPFLAGS=${OSMO_INCLUDE}
+OSMO_LINK=${OSMO_LPATH} ${OSMO_RPATH} ${OSMO_LIBS}
+
+all:	${PROG}
+
+${PROG}: ${OBJS} ${LIBUTIL}
+	${CC} -o $@ ${OBJS} ${LIBUTIL} ${OSMO_LINK}
+
+install:
+	mkdir -p ${DESTDIR}${bindir}
+	install -c -m 755 ${PROG} ${DESTDIR}${bindir}
+
+clean:
+	rm -f *.o ${PROG} errs