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.

45 lines
974B

  1. PACKAGES = clouds/dsp clouds/dsp/pvoc clouds/test stmlib/utils stmlib/dsp clouds
  2. VPATH = $(PACKAGES)
  3. TARGET = clouds_test
  4. BUILD_ROOT = build/
  5. BUILD_DIR = $(BUILD_ROOT)$(TARGET)/
  6. CC_FILES = atan.cc \
  7. clouds_test.cc \
  8. correlator.cc \
  9. granular_processor.cc \
  10. mu_law.cc \
  11. random.cc \
  12. resources.cc \
  13. frame_transformation.cc \
  14. phase_vocoder.cc \
  15. stft.cc \
  16. units.cc
  17. OBJ_FILES = $(CC_FILES:.cc=.o)
  18. OBJS = $(patsubst %,$(BUILD_DIR)%,$(OBJ_FILES)) $(STARTUP_OBJ)
  19. DEPS = $(OBJS:.o=.d)
  20. DEP_FILE = $(BUILD_DIR)depends.mk
  21. all: clouds_test
  22. $(BUILD_DIR):
  23. mkdir -p $(BUILD_DIR)
  24. $(BUILD_DIR)%.o: %.cc
  25. g++ -c -DTEST -g -Wall -Werror -I. $< -o $@
  26. $(BUILD_DIR)%.d: %.cc
  27. g++ -MM -DTEST -I. $< -MF $@ -MT $(@:.d=.o)
  28. clouds_test: $(OBJS)
  29. g++ -o $(TARGET) $(OBJS)
  30. depends: $(DEPS)
  31. cat $(DEPS) > $(DEP_FILE)
  32. $(DEP_FILE): $(BUILD_DIR) $(DEPS)
  33. cat $(DEPS) > $(DEP_FILE)
  34. include $(DEP_FILE)