interfacing between transports written in different programming languages
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.

43 lines
1.2 KiB

4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
4 months ago
5 months ago
  1. include ../Makefile.conf
  2. YML2PROC?=yml2proc
  3. PREFIX?=$(HOME)
  4. TARGET=transport_status_code.h transport_status_code.c PEPTransportStatusCode.h TransportStatusCode.kt TransportStatusCode.cs
  5. HEADERS=$(wildcard *.hh *.hxx *.h)
  6. TSC=$(wildcard *.tsc)
  7. .PHONY: install uninstall clean
  8. all: $(TARGET)
  9. transport_status_code.h: gen_c.ysl2 transport_status_code.yml2 $(TSC)
  10. $(YML2_PROC) -y $< -o $@ transport_status_code.yml2
  11. transport_status_code.c: gen_strings.ysl2 transport_status_code.yml2 $(TSC)
  12. $(YML2_PROC) -y $< -o $@ transport_status_code.yml2
  13. PEPTransportStatusCode.h: gen_objc.ysl2 transport_status_code.yml2 $(TSC)
  14. $(YML2_PROC) -y $< -o $@ transport_status_code.yml2
  15. TransportStatusCode.kt: gen_kotlin.ysl2 transport_status_code.yml2 $(TSC)
  16. $(YML2_PROC) -y $< -o $@ transport_status_code.yml2
  17. TransportStatusCode.cs: gen_cs.ysl2 transport_status_code.yml2 $(TSC)
  18. $(YML2_PROC) -y $< -o $@ transport_status_code.yml2
  19. transport_status_code.xml: transport_status_code.yml2 $(TSC)
  20. $(YML2_PROC) -P -o $@ $<
  21. install: $(TARGET)
  22. mkdir -p $(PREFIX)/include/pEp
  23. mkdir -p $(PREFIX)/lib
  24. cp -v $(HEADERS) $(PREFIX)/include/pEp/
  25. uninstall:
  26. cd $(PREFIX)/include/pEp && rm -vf $(HEADERS)
  27. cd $(PREFIX)/lib && rm -vf $(TARGET)
  28. clean:
  29. rm -f $(TARGET)