thermferm/Makefile

Tue, 30 Apr 2024 17:26:41 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 30 Apr 2024 17:26:41 +0200
changeset 714
24749c296a50
parent 693
3518c07737d8
permissions
-rw-r--r--

Version 0.9.19b2. Simulator redesign and it is now possible to run more then one simulator. All simulated devices have address names that include the simulator number. Added the setup screen for the most part. Not compatible with previous versions if a simulator was used, delete all simulators and simulated devices during stop and start.

# 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
		@mkdir -p ${DESTDIR}${BINDIR}
		${INSTALL} -c -s -g root -o root -m 0755 thermferm ${DESTDIR}${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
delay.o: delay.h thermferm.h
devices.o: thermferm.h delay.h devices.h rc-switch.h panel.h xutil.h websocket.h
futil.o: thermferm.h futil.h
lcd-buffer.o: thermferm.h lcd-buffer.h lcd-pcf8574.h slcd.h panel.h
lcd-pcf8574.o: thermferm.h lcd-pcf8574.h slcd.h
lock.o: lock.h thermferm.h
mqtt.o: thermferm.h rdconfig.h devices.h xutil.h delay.h mqtt.h websocket.h
one-wire.o: thermferm.h statetbl.h one-wire.h devices.h delay.h websocket.h futil.h xutil.h
panel.o: thermferm.h delay.h lcd-pcf8574.h slcd.h panel.h
pid.o: thermferm.h pid.h
rc-switch.o: thermferm.h xutil.h delay.h rc-switch.h
rdconfig.o: rdconfig.h thermferm.h pid.h futil.h xutil.h
server.o: rdconfig.h thermferm.h delay.h one-wire.h devices.h server.h simulator.h lcd-buffer.h xutil.h mqtt.h
simulator.o: thermferm.h delay.h xutil.h websocket.h simulator.h
slcd.o: thermferm.h slcd.h futil.h xutil.h
thermferm.o: lock.h rdconfig.h server.h thermferm.h devices.h delay.h simulator.h lcd-pcf8574.h lcd-buffer.h slcd.h panel.h one-wire.h futil.h xutil.h pid.h mqtt.h statetbl.h websocket.h
websocket.o: thermferm.h xutil.h devices.h websocket.h
xutil.o: thermferm.h xutil.h
# End of generated dependencies

mercurial