changeset 32:ea1d9f7f625f

autocal/Makefile: make install added
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 23 May 2017 00:11:16 +0000
parents 6e8f2728c7f5
children 34a8d83fd63b
files autocal/Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/Makefile	Tue May 23 00:08:41 2017 +0000
+++ b/autocal/Makefile	Tue May 23 00:11:16 2017 +0000
@@ -1,6 +1,7 @@
 CC=	gcc
 CFLAGS=	-O2 -I/opt/freecalypso/include
 PROGS=	fc-rfcal-vcxo
+INSTBIN=/opt/freecalypso/bin
 
 VCXO_OBJS=	l1tmops.o rvinterf.o sockopts.o tsidsock.o vcxomain.o vcxomeas.o
 
@@ -9,5 +10,9 @@
 fc-rfcal-vcxo:	${VCXO_OBJS}
 	${CC} -o $@ ${VCXO_OBJS}
 
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
 clean:
-	rm -f *.o *.out *errs
+	rm -f *.o *.out *errs ${PROGS}