2017-11-19 17:02:03 +00:00
|
|
|
# SYNOPSIS:
|
|
|
|
#
|
2018-11-20 14:53:56 +00:00
|
|
|
# make [all] - makes everything.
|
|
|
|
# make TARGET - makes the given target.
|
|
|
|
# make run - makes everything and runs all the tests.
|
|
|
|
# make clean - removes all files generated by make.
|
|
|
|
# make install-googletest - install the googletest code suite
|
2017-11-19 17:02:03 +00:00
|
|
|
|
|
|
|
# Please tweak the following variable definitions as needed by your
|
|
|
|
# project, except GTEST_HEADERS, which you can use in your own targets
|
|
|
|
# but shouldn't modify.
|
|
|
|
|
|
|
|
# Points to the root of Google Test, relative to where this file is.
|
|
|
|
# Remember to tweak this if you move this file.
|
|
|
|
GTEST_DIR = ../lib/googletest/googletest
|
|
|
|
|
|
|
|
# Where to find user code.
|
|
|
|
USER_DIR = ../src
|
|
|
|
|
|
|
|
# Flags passed to the preprocessor.
|
|
|
|
# Set Google Test's header directory as a system directory, such that
|
|
|
|
# the compiler doesn't generate warnings in Google Test headers.
|
|
|
|
CPPFLAGS += -isystem $(GTEST_DIR)/include -DUNIT_TEST
|
|
|
|
|
|
|
|
# Flags passed to the C++ compiler.
|
|
|
|
CXXFLAGS += -g -Wall -Wextra -pthread
|
|
|
|
|
|
|
|
# All tests produced by this Makefile. Remember to add new tests you
|
|
|
|
# created to the list.
|
|
|
|
TESTS = IRutils_test IRsend_test ir_NEC_test ir_GlobalCache_test \
|
|
|
|
ir_Sherwood_test ir_Sony_test ir_Samsung_test ir_Kelvinator_test \
|
|
|
|
ir_JVC_test ir_RCMM_test ir_LG_test ir_Mitsubishi_test ir_Sharp_test \
|
|
|
|
ir_RC5_RC6_test ir_Panasonic_test ir_Dish_test ir_Whynter_test \
|
|
|
|
ir_Aiwa_test ir_Denon_test ir_Sanyo_test ir_Daikin_test ir_Coolix_test \
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_Gree_test IRrecv_test ir_Pronto_test ir_Fujitsu_test ir_Nikai_test \
|
|
|
|
ir_Toshiba_test ir_Midea_test ir_Magiquest_test ir_Lasertag_test \
|
|
|
|
ir_Carrier_test ir_Haier_test ir_Hitachi_test ir_GICable_test \
|
|
|
|
ir_Whirlpool_test ir_Lutron_test ir_Electra_test ir_Pioneer_test \
|
|
|
|
ir_MWM_test
|
2017-11-19 17:02:03 +00:00
|
|
|
|
|
|
|
# All Google Test headers. Usually you shouldn't change this
|
|
|
|
# definition.
|
|
|
|
GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \
|
|
|
|
$(GTEST_DIR)/include/gtest/internal/*.h
|
|
|
|
|
|
|
|
# House-keeping build targets.
|
|
|
|
|
|
|
|
all : $(TESTS)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f $(TESTS) gtest.a gtest_main.a *.o
|
|
|
|
|
|
|
|
# Build and run all the tests.
|
|
|
|
run : all
|
|
|
|
failed=""; \
|
|
|
|
for unittest in $(TESTS); do \
|
|
|
|
./$${unittest} || failed="$${failed} $${unittest}"; \
|
|
|
|
done; \
|
|
|
|
if [ -n "$${failed}" ]; then \
|
|
|
|
echo "FAIL: :-( :-( Unit test(s)$${failed} failed! :-( :-("; exit 1; \
|
|
|
|
else \
|
|
|
|
echo "PASS: \o/ \o/ All unit tests passed. \o/ \o/"; \
|
|
|
|
fi
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
run_tests : run
|
|
|
|
|
2017-11-19 17:02:03 +00:00
|
|
|
install-googletest :
|
2018-11-20 14:53:56 +00:00
|
|
|
git clone -b v1.8.x https://github.com/google/googletest.git ../lib/googletest
|
2017-11-19 17:02:03 +00:00
|
|
|
|
|
|
|
# Builds gtest.a and gtest_main.a.
|
|
|
|
|
|
|
|
# Usually you shouldn't tweak such internal variables, indicated by a
|
|
|
|
# trailing _.
|
|
|
|
GTEST_SRCS_ = $(GTEST_DIR)/src/*.cc $(GTEST_DIR)/src/*.h $(GTEST_HEADERS)
|
|
|
|
|
|
|
|
# All the IR protocol object files.
|
|
|
|
PROTOCOLS = ir_NEC.o ir_Sony.o ir_Samsung.o ir_JVC.o ir_RCMM.o ir_RC5_RC6.o \
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_LG.o ir_Mitsubishi.o ir_Fujitsu.o ir_Sharp.o ir_Sanyo.o ir_Denon.o ir_Dish.o \
|
|
|
|
ir_Panasonic.o ir_Whynter.o ir_Coolix.o ir_Aiwa.o ir_Sherwood.o \
|
|
|
|
ir_Kelvinator.o ir_Daikin.o ir_Gree.o ir_Pronto.o ir_Nikai.o ir_Toshiba.o \
|
|
|
|
ir_Midea.o ir_Magiquest.o ir_Lasertag.o ir_Carrier.o ir_Haier.o \
|
|
|
|
ir_Hitachi.o ir_GICable.o ir_Whirlpool.o ir_Lutron.o ir_Electra.o \
|
|
|
|
ir_Pioneer.o ir_MWM.o
|
|
|
|
|
|
|
|
# All the IR Protocol header files.
|
|
|
|
PROTOCOLS_H = $(USER_DIR)/ir_Argo.h \
|
|
|
|
$(USER_DIR)/ir_Gree.h \
|
|
|
|
$(USER_DIR)/ir_Magiquest.h \
|
|
|
|
$(USER_DIR)/ir_Coolix.h \
|
|
|
|
$(USER_DIR)/ir_Haier.h \
|
|
|
|
$(USER_DIR)/ir_Midea.h \
|
|
|
|
$(USER_DIR)/ir_Toshiba.h \
|
|
|
|
$(USER_DIR)/ir_Daikin.h \
|
|
|
|
$(USER_DIR)/ir_Kelvinator.h \
|
|
|
|
$(USER_DIR)/ir_Mitsubishi.h \
|
|
|
|
$(USER_DIR)/ir_NEC.h \
|
|
|
|
$(USER_DIR)/ir_Samsung.h \
|
|
|
|
$(USER_DIR)/ir_Trotec.h \
|
|
|
|
$(USER_DIR)/ir_Fujitsu.h \
|
|
|
|
$(USER_DIR)/ir_LG.h \
|
|
|
|
$(USER_DIR)/ir_Panasonic.h
|
2017-11-19 17:02:03 +00:00
|
|
|
# Common object files
|
|
|
|
COMMON_OBJ = IRutils.o IRtimer.o IRsend.o IRrecv.o ir_GlobalCache.o \
|
|
|
|
$(PROTOCOLS) gtest_main.a
|
|
|
|
# Common dependencies
|
|
|
|
COMMON_DEPS = $(USER_DIR)/IRrecv.h $(USER_DIR)/IRsend.h $(USER_DIR)/IRtimer.h \
|
2018-11-20 14:53:56 +00:00
|
|
|
$(USER_DIR)/IRutils.h $(USER_DIR)/IRremoteESP8266.h \
|
|
|
|
$(PROTOCOLS_H)
|
|
|
|
|
2017-11-19 17:02:03 +00:00
|
|
|
# Common test dependencies
|
2018-11-20 14:53:56 +00:00
|
|
|
COMMON_TEST_DEPS = $(COMMON_DEPS) IRrecv_test.h IRsend_test.h
|
2017-11-19 17:02:03 +00:00
|
|
|
|
|
|
|
# For simplicity and to avoid depending on Google Test's
|
|
|
|
# implementation details, the dependencies specified below are
|
|
|
|
# conservative and not optimized. This is fine as Google Test
|
|
|
|
# compiles fast and for ordinary users its source rarely changes.
|
|
|
|
gtest-all.o : $(GTEST_SRCS_)
|
|
|
|
$(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
|
|
|
|
$(GTEST_DIR)/src/gtest-all.cc
|
|
|
|
|
|
|
|
gtest_main.o : $(GTEST_SRCS_)
|
|
|
|
$(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
|
|
|
|
$(GTEST_DIR)/src/gtest_main.cc
|
|
|
|
|
|
|
|
gtest.a : gtest-all.o
|
|
|
|
$(AR) $(ARFLAGS) $@ $^
|
|
|
|
|
|
|
|
gtest_main.a : gtest-all.o gtest_main.o
|
|
|
|
$(AR) $(ARFLAGS) $@ $^
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
# Builds our test. A test should link with either gtest.a or
|
2017-11-19 17:02:03 +00:00
|
|
|
# gtest_main.a, depending on whether it defines its own main()
|
|
|
|
# function.
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
IRutils.o : $(USER_DIR)/IRutils.cpp $(USER_DIR)/IRutils.h $(USER_DIR)/IRremoteESP8266.h
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/IRutils.cpp
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
IRutils_test.o : IRutils_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c IRutils_test.cpp
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
IRutils_test : IRutils_test.o ir_NEC.o ir_Nikai.o ir_Toshiba.o $(COMMON_OBJ) gtest_main.a
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
IRtimer.o : $(USER_DIR)/IRtimer.cpp $(USER_DIR)/IRtimer.h
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/IRtimer.cpp
|
|
|
|
|
|
|
|
IRsend.o : $(USER_DIR)/IRsend.cpp $(USER_DIR)/IRsend.h $(USER_DIR)/IRremoteESP8266.h
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/IRsend.cpp
|
|
|
|
|
|
|
|
IRsend_test.o : IRsend_test.cpp $(USER_DIR)/IRsend.h $(USER_DIR)/IRrecv.h IRsend_test.h $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c IRsend_test.cpp
|
|
|
|
|
|
|
|
IRsend_test : IRsend_test.o $(COMMON_OBJ)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
IRrecv.o : $(USER_DIR)/IRrecv.cpp $(USER_DIR)/IRrecv.h $(USER_DIR)/IRremoteESP8266.h $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/IRrecv.cpp
|
|
|
|
|
|
|
|
IRrecv_test.o : IRrecv_test.cpp $(USER_DIR)/IRsend.h $(USER_DIR)/IRrecv.h IRsend_test.h $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c IRrecv_test.cpp
|
|
|
|
|
|
|
|
IRrecv_test : IRrecv_test.o $(COMMON_OBJ)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_NEC.o : $(USER_DIR)/ir_NEC.cpp $(USER_DIR)/ir_NEC.h $(COMMON_DEPS)
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_NEC.cpp
|
|
|
|
|
|
|
|
ir_NEC_test.o : ir_NEC_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_NEC_test.cpp
|
|
|
|
|
|
|
|
ir_NEC_test : $(COMMON_OBJ) ir_NEC_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_GlobalCache.o : $(USER_DIR)/ir_GlobalCache.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_GlobalCache.cpp
|
|
|
|
|
|
|
|
ir_GlobalCache_test.o : ir_GlobalCache_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_GlobalCache_test.cpp
|
|
|
|
|
|
|
|
ir_GlobalCache_test : $(COMMON_OBJ) ir_GlobalCache_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Sherwood.o : $(USER_DIR)/ir_Sherwood.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Sherwood.cpp
|
|
|
|
|
|
|
|
ir_Sherwood_test.o : ir_Sherwood_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Sherwood_test.cpp
|
|
|
|
|
|
|
|
ir_Sherwood_test : $(COMMON_OBJ) ir_Sherwood_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Sony.o : $(USER_DIR)/ir_Sony.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Sony.cpp
|
|
|
|
|
|
|
|
ir_Sony_test.o : ir_Sony_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Sony_test.cpp
|
|
|
|
|
|
|
|
ir_Sony_test : $(COMMON_OBJ) ir_Sony_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_Samsung.o : $(USER_DIR)/ir_Samsung.cpp $(USER_DIR)/ir_Samsung.h $(COMMON_DEPS)
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Samsung.cpp
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_Samsung_test.o : ir_Samsung_test.cpp $(USER_DIR)/ir_Samsung.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Samsung_test.cpp
|
|
|
|
|
|
|
|
ir_Samsung_test : $(COMMON_OBJ) ir_Samsung_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Kelvinator.o : $(USER_DIR)/ir_Kelvinator.cpp $(USER_DIR)/ir_Kelvinator.h $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Kelvinator.cpp
|
|
|
|
|
|
|
|
ir_Kelvinator_test.o : ir_Kelvinator_test.cpp $(USER_DIR)/ir_Kelvinator.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Kelvinator_test.cpp
|
|
|
|
|
|
|
|
ir_Kelvinator_test : $(COMMON_OBJ) ir_Kelvinator_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_JVC.o : $(USER_DIR)/ir_JVC.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_JVC.cpp
|
|
|
|
|
|
|
|
ir_JVC_test.o : ir_JVC_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_JVC_test.cpp
|
|
|
|
|
|
|
|
ir_JVC_test : $(COMMON_OBJ) ir_JVC_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_RCMM.o : $(USER_DIR)/ir_RCMM.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_RCMM.cpp
|
|
|
|
|
|
|
|
ir_RCMM_test.o : ir_RCMM_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_RCMM_test.cpp
|
|
|
|
|
|
|
|
ir_RCMM_test : $(COMMON_OBJ) ir_RCMM_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_LG.o : $(USER_DIR)/ir_LG.h $(USER_DIR)/ir_LG.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_LG.cpp
|
|
|
|
|
|
|
|
ir_LG_test.o : ir_LG_test.cpp $(USER_DIR)/ir_LG.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_LG_test.cpp
|
|
|
|
|
|
|
|
ir_LG_test : $(COMMON_OBJ) ir_LG_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Mitsubishi.o : $(USER_DIR)/ir_Mitsubishi.h $(USER_DIR)/ir_Mitsubishi.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Mitsubishi.cpp
|
|
|
|
|
|
|
|
ir_Mitsubishi_test.o : ir_Mitsubishi_test.cpp $(USER_DIR)/ir_Mitsubishi.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Mitsubishi_test.cpp
|
|
|
|
|
|
|
|
ir_Mitsubishi_test : $(COMMON_OBJ) ir_Mitsubishi_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Fujitsu.o : $(USER_DIR)/ir_Fujitsu.h $(USER_DIR)/ir_Fujitsu.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Fujitsu.cpp
|
|
|
|
|
|
|
|
ir_Fujitsu_test.o : ir_Fujitsu_test.cpp $(USER_DIR)/ir_Fujitsu.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Fujitsu_test.cpp
|
|
|
|
|
|
|
|
ir_Fujitsu_test : $(COMMON_OBJ) ir_Fujitsu_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Sharp.o : $(USER_DIR)/ir_Sharp.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Sharp.cpp
|
|
|
|
|
|
|
|
ir_Sharp_test.o : ir_Sharp_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Sharp_test.cpp
|
|
|
|
|
|
|
|
ir_Sharp_test : $(COMMON_OBJ) ir_Sharp_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_RC5_RC6.o : $(USER_DIR)/ir_RC5_RC6.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_RC5_RC6.cpp
|
|
|
|
|
|
|
|
ir_RC5_RC6_test.o : ir_RC5_RC6_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_RC5_RC6_test.cpp
|
|
|
|
|
|
|
|
ir_RC5_RC6_test : $(COMMON_OBJ) ir_RC5_RC6_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Panasonic.o : $(USER_DIR)/ir_Panasonic.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Panasonic.cpp
|
|
|
|
|
|
|
|
ir_Panasonic_test.o : ir_Panasonic_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Panasonic_test.cpp
|
|
|
|
|
|
|
|
ir_Panasonic_test : $(COMMON_OBJ) ir_Panasonic_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Dish.o : $(USER_DIR)/ir_Dish.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Dish.cpp
|
|
|
|
|
|
|
|
ir_Dish_test.o : ir_Dish_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Dish_test.cpp
|
|
|
|
|
|
|
|
ir_Dish_test : $(COMMON_OBJ) ir_Dish_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Whynter.o : $(USER_DIR)/ir_Whynter.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Whynter.cpp
|
|
|
|
|
|
|
|
ir_Whynter_test.o : ir_Whynter_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Whynter_test.cpp
|
|
|
|
|
|
|
|
ir_Whynter_test : $(COMMON_OBJ) ir_Whynter_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Coolix.o : $(USER_DIR)/ir_Coolix.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Coolix.cpp
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_Coolix_test.o : ir_Coolix_test.cpp $(USER_DIR)/ir_Coolix.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Coolix_test.cpp
|
|
|
|
|
|
|
|
ir_Coolix_test : $(COMMON_OBJ) ir_Coolix_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Aiwa.o : $(USER_DIR)/ir_Aiwa.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Aiwa.cpp
|
|
|
|
|
|
|
|
ir_Aiwa_test.o : ir_Aiwa_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Aiwa_test.cpp
|
|
|
|
|
|
|
|
ir_Aiwa_test : $(COMMON_OBJ) ir_Aiwa_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Denon.o : $(USER_DIR)/ir_Denon.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Denon.cpp
|
|
|
|
|
|
|
|
ir_Denon_test.o : ir_Denon_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Denon_test.cpp
|
|
|
|
|
|
|
|
ir_Denon_test : $(COMMON_OBJ) ir_Denon_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Sanyo.o : $(USER_DIR)/ir_Sanyo.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Sanyo.cpp
|
|
|
|
|
|
|
|
ir_Sanyo_test.o : ir_Sanyo_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Sanyo_test.cpp
|
|
|
|
|
|
|
|
ir_Sanyo_test : $(COMMON_OBJ) ir_Sanyo_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Daikin.o : $(USER_DIR)/ir_Daikin.cpp $(USER_DIR)/ir_Daikin.h $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Daikin.cpp
|
|
|
|
|
|
|
|
ir_Daikin_test.o : ir_Daikin_test.cpp $(USER_DIR)/ir_Daikin.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Daikin_test.cpp
|
|
|
|
|
|
|
|
ir_Daikin_test : $(COMMON_OBJ) ir_Daikin_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Gree.o : $(USER_DIR)/ir_Gree.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Gree.cpp
|
|
|
|
|
|
|
|
ir_Gree_test.o : ir_Gree_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Gree_test.cpp
|
|
|
|
|
2018-11-20 14:53:56 +00:00
|
|
|
ir_Gree_test : $(COMMON_OBJ) ir_Gree_test.o ir_Kelvinator.o
|
2017-11-19 17:02:03 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Pronto.o : $(USER_DIR)/ir_Pronto.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Pronto.cpp
|
|
|
|
|
|
|
|
ir_Pronto_test.o : ir_Pronto_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Pronto_test.cpp
|
|
|
|
|
|
|
|
ir_Pronto_test : $(COMMON_OBJ) ir_Pronto_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Nikai.o : $(USER_DIR)/ir_Nikai.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Nikai.cpp
|
|
|
|
|
|
|
|
ir_Nikai_test.o : ir_Nikai_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Nikai_test.cpp
|
|
|
|
|
|
|
|
ir_Nikai_test : $(COMMON_OBJ) ir_Nikai_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
2018-11-20 14:53:56 +00:00
|
|
|
|
|
|
|
ir_Toshiba.o : $(USER_DIR)/ir_Toshiba.cpp $(USER_DIR)/ir_Toshiba.h $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Toshiba.cpp
|
|
|
|
|
|
|
|
ir_Toshiba_test.o : ir_Toshiba_test.cpp $(USER_DIR)/ir_Toshiba.h $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Toshiba_test.cpp
|
|
|
|
|
|
|
|
ir_Toshiba_test : $(COMMON_OBJ) ir_Toshiba_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Midea.o : $(USER_DIR)/ir_Midea.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Midea.cpp
|
|
|
|
|
|
|
|
ir_Midea_test.o : ir_Midea_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Midea_test.cpp
|
|
|
|
|
|
|
|
ir_Midea_test : $(COMMON_OBJ) ir_Midea_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Magiquest.o : $(USER_DIR)/ir_Magiquest.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Magiquest.cpp
|
|
|
|
|
|
|
|
ir_Magiquest_test.o : ir_Magiquest_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Magiquest_test.cpp
|
|
|
|
|
|
|
|
ir_Magiquest_test : $(COMMON_OBJ) ir_Magiquest_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Lasertag.o : $(USER_DIR)/ir_Lasertag.cpp $(USER_DIR)/ir_RC5_RC6.cpp $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Lasertag.cpp
|
|
|
|
|
|
|
|
ir_Lasertag_test.o : ir_Lasertag_test.cpp $(USER_DIR)/ir_RC5_RC6.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Lasertag_test.cpp
|
|
|
|
|
|
|
|
ir_Lasertag_test : $(COMMON_OBJ) ir_Lasertag_test.o ir_RC5_RC6.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Carrier.o : $(USER_DIR)/ir_Carrier.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Carrier.cpp
|
|
|
|
|
|
|
|
ir_Carrier_test.o : ir_Carrier_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Carrier_test.cpp
|
|
|
|
|
|
|
|
ir_Carrier_test : $(COMMON_OBJ) ir_Carrier_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Haier.o : $(USER_DIR)/ir_Haier.cpp $(USER_DIR)/ir_Haier.h $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Haier.cpp
|
|
|
|
|
|
|
|
ir_Haier_test.o : ir_Haier_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Haier_test.cpp
|
|
|
|
|
|
|
|
ir_Haier_test : $(COMMON_OBJ) ir_Haier_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Hitachi.o : $(USER_DIR)/ir_Hitachi.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Hitachi.cpp
|
|
|
|
|
|
|
|
ir_Hitachi_test.o : ir_Hitachi_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Hitachi_test.cpp
|
|
|
|
|
|
|
|
ir_Hitachi_test : $(COMMON_OBJ) ir_Hitachi_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_GICable.o : $(USER_DIR)/ir_GICable.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_GICable.cpp
|
|
|
|
|
|
|
|
ir_GICable_test.o : ir_GICable_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_GICable_test.cpp
|
|
|
|
|
|
|
|
ir_GICable_test : $(COMMON_OBJ) ir_GICable_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Whirlpool.o : $(USER_DIR)/ir_Whirlpool.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Whirlpool.cpp
|
|
|
|
|
|
|
|
ir_Whirlpool_test.o : ir_Whirlpool_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Whirlpool_test.cpp
|
|
|
|
|
|
|
|
ir_Whirlpool_test : $(COMMON_OBJ) ir_Whirlpool_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Lutron.o : $(USER_DIR)/ir_Lutron.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Lutron.cpp
|
|
|
|
|
|
|
|
ir_Lutron_test.o : ir_Lutron_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Lutron_test.cpp
|
|
|
|
|
|
|
|
ir_Lutron_test : $(COMMON_OBJ) ir_Lutron_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Electra.o : $(USER_DIR)/ir_Electra.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Electra.cpp
|
|
|
|
|
|
|
|
ir_Electra_test.o : ir_Electra_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Electra_test.cpp
|
|
|
|
|
|
|
|
ir_Electra_test : $(COMMON_OBJ) ir_Electra_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_Pioneer.o : $(USER_DIR)/ir_Pioneer.cpp $(COMMON_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_Pioneer.cpp
|
|
|
|
|
|
|
|
ir_Pioneer_test.o : ir_Pioneer_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_Pioneer_test.cpp
|
|
|
|
|
|
|
|
ir_Pioneer_test : $(COMMON_OBJ) ir_Pioneer_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|
|
|
|
|
|
|
|
ir_MWM.o : $(USER_DIR)/ir_MWM.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/ir_MWM.cpp
|
|
|
|
|
|
|
|
ir_MWM_test.o : ir_MWM_test.cpp $(COMMON_TEST_DEPS) $(GTEST_HEADERS)
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(USER_DIR) -c ir_MWM_test.cpp
|
|
|
|
|
|
|
|
ir_MWM_test : $(COMMON_OBJ) ir_MWM_test.o
|
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@
|