diff options
author | Michele Calgaro <[email protected]> | 2024-05-06 18:26:24 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-05-06 22:36:50 +0900 |
commit | ac3f0014232619edc41865f6e42e6510bdd8acc6 (patch) | |
tree | 9f851f02238781fb9ffe7f76ac446d25e9c92668 /src/progs/direct | |
parent | 1c22ae157c39e2c1434e5ec43a05eda78dc86798 (diff) | |
download | piklab-ac3f0014232619edc41865f6e42e6510bdd8acc6.tar.gz piklab-ac3f0014232619edc41865f6e42e6510bdd8acc6.zip |
Allow generation of build time data files in out-of-source builds. Also fix generation of data file for devices/mem24 subfolder
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/progs/direct')
-rw-r--r-- | src/progs/direct/base/Makefile.am | 6 | ||||
-rw-r--r-- | src/progs/direct/xml/xml_direct_parser.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/progs/direct/base/Makefile.am b/src/progs/direct/base/Makefile.am index fe2c47c..680fb31 100644 --- a/src/progs/direct/base/Makefile.am +++ b/src/progs/direct/base/Makefile.am @@ -5,9 +5,9 @@ noinst_LTLIBRARIES = libdirectprog.la libdirectprog_la_SOURCES = direct_pic.cpp direct_baseline.cpp direct_16.cpp \ direct_16F.cpp direct_18.cpp direct_18F.cpp direct_prog.cpp direct_prog_config.cpp \ direct_data.cpp direct_mem24.cpp direct.cpp -libdirectprog_la_DEPENDENCIES = $(srcdir)/direct_data.cpp +libdirectprog_la_DEPENDENCIES = direct_data.cpp noinst_DATA = direct.xml -$(srcdir)/direct_data.cpp: ../xml/xml_direct_parser direct.xml - cd $(srcdir) && $(abs_builddir)/../xml/xml_direct_parser +direct_data.cpp: ../xml/xml_direct_parser direct.xml + cd $(abs_builddir) && ./../xml/xml_direct_parser $(srcdir) CLEANFILES = direct_data.cpp diff --git a/src/progs/direct/xml/xml_direct_parser.cpp b/src/progs/direct/xml/xml_direct_parser.cpp index 2625f9e..728845f 100644 --- a/src/progs/direct/xml/xml_direct_parser.cpp +++ b/src/progs/direct/xml/xml_direct_parser.cpp @@ -15,7 +15,7 @@ namespace Direct class XmlToData : public ::Programmer::XmlToData<Data> { public: - XmlToData() : ::Programmer::XmlToData<Data>("direct", "Direct") {} + XmlToData(const TQString &folder) : ::Programmer::XmlToData<Data>(folder, "direct", "Direct") {} private: virtual void parseData(TQDomElement element, Data &data); |