Makefile.am 947 B

1234567891011121314151617181920212223242526
  1. SRC_DIR = $(top_builddir)/src
  2. INCLUDE_DIR = $(top_builddir)/include
  3. AUTO_NAME = opcua
  4. NS0_NAME = opcua_namespace_0
  5. all-local: $(AUTO_NAME).cgen $(AUTO_NAME).hgen $(NS0_NAME).cgen $(NS0_NAME).hgen
  6. $(AUTO_NAME).cgen $(AUTO_NAME).hgen: Opc.Ua.Types.bsd generate_builtin.py
  7. python generate_builtin.py Opc.Ua.Types.bsd $(AUTO_NAME)
  8. cp $(AUTO_NAME).cgen $(SRC_DIR)/$(AUTO_NAME).c
  9. cp $(AUTO_NAME).hgen $(INCLUDE_DIR)/$(AUTO_NAME).h
  10. $(NS0_NAME).cgen $(NS0_NAME).hgen: NodeIds.csv generate_namespace.py
  11. python generate_namespace.py NodeIds.csv $(NS0_NAME)
  12. cp $(NS0_NAME).cgen $(SRC_DIR)/$(NS0_NAME).c
  13. cp $(NS0_NAME).hgen $(INCLUDE_DIR)/$(NS0_NAME).h
  14. PHONY: clean-autogenerated
  15. clean-autogenerated:
  16. rm -rf $(AUTO_NAME).cgen $(AUTO_NAME).hgen
  17. rm -rf $(SRC_DIR)/$(AUTO_NAME).c $(INCLUDE_DIR)/$(AUTO_NAME).h
  18. rm -rf $(NS0_NAME).cgen $(NS0_NAME).hgen
  19. rm -rf $(SRC_DIR)/$(NS0_NAME).c $(INCLUDE_DIR)/$(NS0_NAME).h
  20. clean-local: clean-autogenerated