tools/Makefile

Mon, 25 Mar 2024 17:14:56 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 25 Mar 2024 17:14:56 +0100
changeset 650
0b215e4b814e
parent 640
0f6daacdd597
permissions
-rw-r--r--

Brought the retry attempts to read the DHT11 sensors to the main devices loop. The actual read function is now very simple. Called every 30 seconds when all is well, or 2 seconds if something is wrong.

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

OTHER		= Makefile rc.thermferm default

#############################################################################

.c.o:
		${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<

all:


clean:
		rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak

install:
		mkdir -p ${DESTDIR}/etc/rc.d ${DESTDIR}/etc/default
		${INSTALL} -c -g root -o root -m 0755 rc.thermferm ${DESTDIR}/etc/rc.d/rc.thermferm
		${INSTALL} -c -g root -o root -m 0644 default ${DESTDIR}/etc/default/thermferm

filelist:	Makefile
		BASE=`pwd`; \
		BASE=`basename $${BASE}`; \
		(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist

depend:

mercurial