raspberrypi/433MHZ/433Utils/RPi_utils/Makefile

21 lines
588 B
Makefile
Raw Normal View History

# 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