Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jscrane committed May 15, 2020
1 parent 85486ba commit 3733214
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

Expand Down

0 comments on commit 3733214

Please sign in to comment.