From 3733214269ad54ca73487b974f50715dde1c08c2 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Fri, 15 May 2020 14:58:20 +0100 Subject: [PATCH] cleanup --- hub/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hub/Makefile b/hub/Makefile index c147464..8f96747 100644 --- a/hub/Makefile +++ b/hub/Makefile @@ -3,11 +3,11 @@ include ../auth prefix := /usr/local # The recommended compiler flags for the Raspberry Pi -CXXFLAGS=-Wall -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -fno-strict-aliasing -g -CPPFLAGS=-I$(prefix)/include -I../sketches -DMAX_SENSORS=64 -LDFLAGS=-L$(prefix)/lib -lrf24-bcm -lrf24-network -lpthread -lmosquitto -lz -lm -lrt -ldl +CXXFLAGS = -Wall -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -fno-strict-aliasing -g +CPPFLAGS = -I$(prefix)/include -I../sketches -DMAX_SENSORS=64 +LDFLAGS = -L$(prefix)/lib DEPFLAGS = -MM -MP -MF -LD=g++ +LD = g++ PROGRAMS = sensorhub mux lcd status mqtt SOURCES = ${wildcard *.cpp} @@ -21,18 +21,18 @@ all: ${DEPS} ${PROGRAMS} %.d: %.cpp $(CXX) $(CPPFLAGS) $(DEPFLAGS) $@ $< +sensorhub: LDLIBS = -lrf24-bcm -lrf24-network sensorhub: sensorhub.o sensorlib.o mux: mux.o sensorlib.o - $(LD) -o $@ $^ lcd: lcd.o sensorlib.o - $(LD) -o $@ $^ +status: LDLIBS = -lrf24-bcm status: status.o sensorlib.o +mqtt: LDLIBS = -lmosquitto mqtt: mqtt.o sensorlib.o - $(LD) -o $@ $^ -lmosquitto sensorlib.o: sensorlib.h