Newer
Older
WH1080 / Makefile
  1. CC=gcc
  2. CFLAGS=-c -Wall
  3.  
  4. all: wh1080_rf
  5.  
  6. wh1080_rf: wh1080_rf.o bcm2835.o bmp280.o wunderground.o mqtt.o
  7. $(CC) -lm -lconfig -lmosquitto wh1080_rf.o bcm2835.o bmp280.o wunderground.o mqtt.o -o wh1080_rf
  8.  
  9. wh1080_rf.o: wh1080_rf.c
  10. $(CC) $(CFLAGS) wh1080_rf.c
  11.  
  12. bcm2835.o: bcm2835.c
  13. $(CC) $(CFLAGS) bcm2835.c
  14.  
  15. bmp280.o: bmp280.c
  16. $(CC) $(CFLAGS) bmp280.c
  17.  
  18. wunderground.o: wunderground.c
  19. $(CC) $(CFLAGS) wunderground.c
  20.  
  21. mqtt.o: mqtt.c
  22. $(CC) $(CFLAGS) mqtt.c
  23.  
  24. clean:
  25. rm -f wh1080_rf.o bcm2835.o bmp280.o wunderground.o mqtt.o wh1080_rf
  26.  
  27. install: wh1080_rf
  28. install wh1080_rf /usr/local/sbin/wh1080_rf