PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

54 lines
1.4KB

  1. # Makefile
  2. # Sample for RH_NRF24 on Raspberry Pi
  3. # Caution: requires bcm2835 library to be already installed
  4. # http://www.airspayce.com/mikem/bcm2835/
  5. CC = g++
  6. CFLAGS = -DRASPBERRY_PI -DBCM2835_NO_DELAY_COMPATIBILITY
  7. LIBS = -lbcm2835
  8. RADIOHEADBASE = ../..
  9. INCLUDE = -I$(RADIOHEADBASE)
  10. all: RasPiRH
  11. RasPi.o: $(RADIOHEADBASE)/RHutil/RasPi.cpp
  12. $(CC) $(CFLAGS) -c $(RADIOHEADBASE)/RHutil/RasPi.cpp $(INCLUDE)
  13. RasPiRH.o: RasPiRH.cpp
  14. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  15. RH_NRF24.o: $(RADIOHEADBASE)/RH_NRF24.cpp
  16. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  17. RHMesh.o: $(RADIOHEADBASE)/RHMesh.cpp
  18. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  19. RHRouter.o: $(RADIOHEADBASE)/RHRouter.cpp
  20. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  21. RHReliableDatagram.o: $(RADIOHEADBASE)/RHReliableDatagram.cpp
  22. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  23. RHDatagram.o: $(RADIOHEADBASE)/RHDatagram.cpp
  24. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  25. RHHardwareSPI.o: $(RADIOHEADBASE)/RHHardwareSPI.cpp
  26. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  27. RHNRFSPIDriver.o: $(RADIOHEADBASE)/RHNRFSPIDriver.cpp
  28. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  29. RHGenericDriver.o: $(RADIOHEADBASE)/RHGenericDriver.cpp
  30. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  31. RHGenericSPI.o: $(RADIOHEADBASE)/RHGenericSPI.cpp
  32. $(CC) $(CFLAGS) -c $(INCLUDE) $<
  33. RasPiRH: RasPiRH.o RH_NRF24.o RHMesh.o RHRouter.o RHReliableDatagram.o RHDatagram.o RasPi.o RHHardwareSPI.o RHNRFSPIDriver.o RHGenericDriver.o RHGenericSPI.o
  34. $(CC) $^ $(LIBS) -o RasPiRH
  35. clean:
  36. rm -rf *.o RasPiRH