You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
506B

  1. # makefile fragment to make test.exe, the unit test program.
  2. TEST_SOURCES = $(wildcard test/*.cpp)
  3. TEST_SOURCES += $(wildcard dsp/**/*.cpp)
  4. TEST_SOURCES += $(wildcard dsp/third-party/falco/*.cpp)
  5. ## This is a list of full paths to the .o files we want to build
  6. TEST_OBJECTS = $(patsubst %, build_test/%.o, $(TEST_SOURCES))
  7. build_test/%.cpp.o: %.cpp
  8. mkdir -p $(@D)
  9. $(CXX) $(CXXFLAGS) -c -o $@ $<
  10. test : test.exe
  11. cleantest :
  12. rm test.exe
  13. rm -rf build_test
  14. test.exe : $(TEST_OBJECTS)
  15. $(CXX) -o $@ $^