thermferm/Makefile

Thu, 10 Jan 2019 16:33:42 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 10 Jan 2019 16:33:42 +0100
changeset 569
9c69d43bfb06
parent 499
602d9968960f
child 570
1e0192b295b9
permissions
-rw-r--r--

Version 0.9.0. Implemented DCMD via mqtt to set stage, mode, setpoint low and high. Implemeted DCMD via mqtt to set heater, cooler, fan and light state. Implemented DCMD via mqtt to set product code and name. Set the PID's in fridge mode without idle range offset, that was an old leftover setting that was obsolete.

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

SRCS		= $(wildcard *.c)
HDRS		= $(wildcard *.h)
OBJS		= $(SRCS:.c=.o)
SLIBS		= -lpthread
TARGET		= thermferm
OTHER		= Makefile

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

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

all:		${TARGET}

thermferm:	${OBJS} ${SLIBS}
		${CC} -o thermferm ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS}

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

install:	all
		${INSTALL} -c -s -g root -o root -m 0755 thermferm ${BINDIR}

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

depend:
	@rm -f Makefile.bak; \
	mv Makefile Makefile.bak; \
	sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \
	${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \
		>>Makefile; \
	${ECHO} '# Dependencies generated by make depend' >>Makefile; \
	for f in ${SRCS}; \
	do \
		${ECHO} "Dependencies for $$f:\c"; \
		${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \
		for h in `sed -n -e \
			's/^#[ 	]*include[ 	]*"\([^"]*\)".*/\1/p' $$f`; \
		do \
			${ECHO} " $$h\c"; \
			${ECHO} " $$h\c" >>Makefile; \
		done; \
		${ECHO} " done."; \
		${ECHO} "" >>Makefile; \
	done; \
	${ECHO} '# End of generated dependencies' >>Makefile

# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
# Dependencies generated by make depend
rc-switch.o: thermferm.h xutil.h rc-switch.h
mqtt.o: thermferm.h logger.h devices.h xutil.h mqtt.h
slcd.o: thermferm.h slcd.h futil.h xutil.h
panel.o: thermferm.h lcd-pcf8574.h slcd.h panel.h
devices.o: thermferm.h devices.h rc-switch.h panel.h xutil.h
lcd-buffer.o: thermferm.h lcd-buffer.h lcd-pcf8574.h slcd.h panel.h
futil.o: thermferm.h futil.h
thermferm.o: lock.h logger.h rdconfig.h devices.h server.h thermferm.h simulator.h lcd-pcf8574.h lcd-buffer.h slcd.h panel.h futil.h xutil.h pid.h mqtt.h
lock.o: lock.h thermferm.h
logger.o: logger.h thermferm.h futil.h xutil.h
lcd-pcf8574.o: thermferm.h lcd-pcf8574.h slcd.h
pid.o: thermferm.h pid.h
xutil.o: thermferm.h xutil.h
server.o: rdconfig.h thermferm.h logger.h devices.h server.h lcd-buffer.h xutil.h mqtt.h
simulator.o: thermferm.h simulator.h
rdconfig.o: rdconfig.h thermferm.h pid.h futil.h xutil.h
# End of generated dependencies

mercurial