diff miscutil/Makefile @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 7eaa3307e5df
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/miscutil/Makefile	Sat Jun 11 00:13:35 2016 +0000
@@ -0,0 +1,27 @@
+CC=	gcc
+CFLAGS=	-O2
+PROGS=	fc-rgbconv fc-serterm imei-luhn
+INSTBIN=/usr/local/bin
+
+all:	${PROGS}
+
+SERTERM_OBJS=	fc-serterm.o openport.o ttypassthru.o
+
+fc-rgbconv:	fc-rgbconv.c
+	${CC} ${CFLAGS} -o $@ $@.c
+
+fc-serterm:	${SERTERM_OBJS}
+	${CC} ${CFLAGS} -o $@ ${SERTERM_OBJS}
+
+ttypassthru.o:	../loadtools/ttypassthru.c
+	${CC} ${CFLAGS} -c -o $@ $<
+
+imei-luhn:	imei-luhn.c
+	${CC} ${CFLAGS} -o $@ $@.c
+
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
+clean:
+	rm -f ${PROGS} *.o *errs *.out