Studentenversion des ESY6/A Praktikums "signal_processing".
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.

tests.mk 1.7KB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. cc_sources += \
  2. ../io.cc \
  3. ../Hardware.cc \
  4. ../HardwareTaskSimulation.cc \
  5. ../DataChannelSimulation.cc \
  6. ../HardwareTimerSimulation.cc \
  7. ../dataChannelTestUtility.cc \
  8. ../taskTests.cc \
  9. c_sources += \
  10. ../../../software/signal_processing/system/data_channel.c \
  11. ../../../software/signal_processing/system/hardware_task.c \
  12. ../../../software/signal_processing/system/Complex.c \
  13. ../../../software/signal_processing/system/task_sine.c \
  14. ../../../software/signal_processing/system/task_rand.c \
  15. ../../../software/signal_processing/system/task_add.c \
  16. ../../../software/signal_processing/system/task_fft.c \
  17. ../../../software/signal_processing/system/task_crc.c \
  18. ../../../software/signal_processing/sine.c \
  19. ../../../software/signal_processing/rand.c \
  20. ../../../software/signal_processing/add.c \
  21. ../../../software/signal_processing/fft.c \
  22. ../../../software/signal_processing/crc.c \
  23. includes += \
  24. -I .. \
  25. -I ../../../software/signal_processing_bsp \
  26. -I ../../../software/signal_processing_bsp/drivers/inc \
  27. -I ../../../software/signal_processing_bsp/HAL/inc \
  28. c_objects = $(patsubst %.c,%.o, ${c_sources})
  29. cc_objects = $(patsubst %.cc,%.oo, $(cc_sources))
  30. objects = ${c_objects} ${cc_objects}
  31. .PHONY: all
  32. all: ${binary}
  33. @./$< --gtest_filter=*_and_check
  34. data.py: ${binary}
  35. @./$< --gtest_filter=*_only
  36. ${binary}: bsp ${objects}
  37. @${CXX} ${objects} -lgtest -lpthread -o $@
  38. %.oo:%.cc
  39. ${CXX} --std=c++14 ${includes} -c $< -o $@
  40. %.o:%.c
  41. ${CC} --std=gnu99 ${includes} -c $< -o $@
  42. PHONY: bsp
  43. bsp:
  44. @${MAKE} -C ../../.. $@
  45. .PHONY: clean
  46. clean:
  47. @${RM} -rf ${objects} ${binary} ${artifacts}