raspberrypi/433MHZ/433Utils/RPi_utils/Makefile
2023-04-18 19:42:00 +08:00

21 lines
588 B
Makefile

# Defines the RPI variable which is needed by rc-switch/RCSwitch.h
CXXFLAGS=-DRPI
CFLAGS += -Wall -Os -g
all: send codesend RFSniffer
send: ../rc-switch/RCSwitch.o send.o
$(CXX) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt
codesend: ../rc-switch/RCSwitch.o codesend.o
$(CXX) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt
RFSniffer: ../rc-switch/RCSwitch.o RFSniffer.o
$(CXX) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt
clean:
$(RM) ../rc-switch/*.o *.o send codesend servo RFSniffer