brewpanel/Makefile

Thu, 25 Apr 2024 14:26:47 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 25 Apr 2024 14:26:47 +0200
changeset 708
13555c27b592
parent 635
bf2c0f31147b
permissions
-rw-r--r--

Version 0.9.19a6. Fixes after a short trial on the production controller. Fixed json for alternate beer termperature sensor. Fixed division by 1000 for the room temperature and humidity values. The dropdown list for devices shows the address instead of description in the list.

# Makefile for the mbsePi-apps/brewpanel.

include ../Makefile.global

SRCS		= $(wildcard *.c)
HDRS		= $(wildcard *.h)
OBJS		= $(SRCS:.c=.o)
SLIBS		=
TARGET		= brewpanel
OTHER		= Makefile lcdfont5x8.bmp buildfont.sh

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

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

all:		${TARGET}

brewpanel:	${OBJS} ${SLIBS}
		${CC} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS} ${SDL_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 brewpanel ${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
slcd.o: brewpanel.h sdlgui.h slcd.h dlgBrew.h
futil.o: brewpanel.h futil.h
sockio.o: brewpanel.h sdlgui.h slcd.h futil.h sockio.h
dlgBrew.o: brewpanel.h dlgBrew.h sdlgui.h slcd.h sockio.h
brewpanel.o: brewpanel.h sdlgui.h dlgBrew.h
sdlgui.o: brewpanel.h sdlgui.h sockio.h lcdfont10x16.h
# End of generated dependencies

mercurial