Makefile.simpleserial 730 B

1234567891011121314151617181920212223242526272829
  1. SRC += simpleserial.c
  2. VPATH += :$(FIRMWAREPATH)/simpleserial/
  3. EXTRAINCDIRS += $(FIRMWAREPATH)/simpleserial/
  4. SS_VERS_ALLOWED = SS_VER_1_0 SS_VER_1_1 SS_VER_2_0 SS_VER_2_1
  5. define SS_VERS_LIST
  6. +---------+--------------+
  7. | Version | SS_VER value |
  8. +---------+--------------+
  9. | V1.0 | SS_VER_1_0 |
  10. | V1.1 | SS_VER_1_1 |
  11. | V2.1 | SS_VER_2_1 |
  12. +---------+--------------+
  13. endef
  14. # SimpleSerial version
  15. # To change this, define SS_VER before including this file
  16. ifeq ($(SS_VER),)
  17. SS_VER = SS_VER_1_1
  18. else ifeq ($(filter $(SS_VER),$(SS_VERS_ALLOWED)),)
  19. $(error Invalid SimpleSerial version: $(SS_VER); allowed verions: $(SS_VERS_LIST))
  20. endif
  21. ${info SS_VER set to $(SS_VER)}
  22. CDEFS += -DSS_VER=$(SS_VER)