tools/Makefile

Fri, 15 Mar 2024 20:57:49 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 15 Mar 2024 20:57:49 +0100
changeset 637
21e542c15832
parent 636
80967361f257
child 639
276ee5b61348
permissions
-rw-r--r--

Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

OTHER		= Makefile init.debian init.slackware

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

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

all:


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

install:
		@if [ -x /lib/systemd/systemd ]; then \
			mkdir -p ${DESTDIR}/etc/init.d ; \
			${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm" ; \
			[ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \
			echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \
		elif [ -f /etc/slackware-version ]; then \
			mkdir -p ${DESTDIR}/etc/rc.d ; \
			${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \
		else \
			echo "Unsupported distribution" ; \
		fi

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

depend:

mercurial