* Kovacs, Ferenc
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
* Szalai, Gabor
* Zalanyi, Balazs Andor
reffer::reffer(const char*) {}
namespace Common {
-
+
// =================================
// ===== Modules
// =================================
if (bits == 0) continue;
if (is_nonempty) src = mputstr(src, ",\n");
else {
- src = mputstr(src, "static const unsigned char ");
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
is_nonempty = true;
}
src = mputprintf(src, "%s_bits[] = { ",
if (splitting) hdr = mputstr(hdr, ";\n");
}
- void Module::generate_bp_literals(char *&src, char *& /*hdr*/)
+ void Module::generate_bp_literals(char *&src, char *& hdr)
{
if (bp_literals.size() == 0) return;
for (size_t i = 0; i < bp_literals.size(); i++) {
if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const unsigned char ");
+ else {
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
+ }
src = mputprintf(src, "%s_elements[] = { ",
bp_literals.get_nth_elem(i)->c_str());
const string& str = bp_literals.get_nth_key(i);
}
src = mputstr(src, ";\n");
for (size_t i = 0; i < bp_literals.size(); i++) {
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const BITSTRING_template ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ",\n");
+ }
+ }
+ else {
+ src = mputprintf(src, "%sconst BITSTRING_template ", split_to_slices ? "" : "static ");
+ if (split_to_slices) {
+ hdr = mputprintf(hdr, "extern const BITSTRING_template ");
+ }
+ }
const char *name = bp_literals.get_nth_elem(i)->c_str();
src = mputprintf(src, "%s(%lu, %s_elements)",
name, (unsigned long) bp_literals.get_nth_key(i).size(), name);
+ if (split_to_slices) {
+ hdr = mputstr(hdr, name);
+ }
}
src = mputstr(src, ";\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ";\n");
+ }
}
void Module::generate_hs_literals(char *&src, char *&hdr)
const char *str_ptr = str.c_str();
if (is_nonempty) src = mputstr(src, ",\n");
else {
- src = mputstr(src, "static const unsigned char ");
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
is_nonempty = true;
}
src = mputprintf(src, "%s_nibbles[] = { ",
if (splitting) hdr = mputstr(hdr, ";\n");
}
- void Module::generate_hp_literals(char *&src, char *& /*hdr*/)
+ void Module::generate_hp_literals(char *&src, char *& hdr)
{
if (hp_literals.size() == 0) return;
for (size_t i = 0; i < hp_literals.size(); i++) {
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const unsigned char ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ } else {
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
+ }
src = mputprintf(src, "%s_elements[] = { ",
hp_literals.get_nth_elem(i)->c_str());
const string& str = hp_literals.get_nth_key(i);
}
src = mputstr(src, ";\n");
for (size_t i = 0; i < hp_literals.size(); i++) {
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const HEXSTRING_template ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ",\n");
+ }
+ } else {
+ src = mputprintf(src, "%sconst HEXSTRING_template ", split_to_slices ? "" : "static ");
+ if (split_to_slices) {
+ hdr = mputprintf(hdr, "extern const HEXSTRING_template ");
+ }
+ }
const char *name = hp_literals.get_nth_elem(i)->c_str();
src = mputprintf(src, "%s(%lu, %s_elements)",
name, (unsigned long) hp_literals.get_nth_key(i).size(), name);
+ if (split_to_slices) {
+ hdr = mputstr(hdr, name);
+ }
}
src = mputstr(src, ";\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ";\n");
+ }
}
void Module::generate_os_literals(char *&src, char *&hdr)
const char *str_ptr = str.c_str();
if (is_nonempty) src = mputstr(src, ",\n");
else {
- src = mputstr(src, "static const unsigned char ");
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
is_nonempty = true;
}
src = mputprintf(src, "%s_octets[] = { ",
if (splitting) hdr = mputstr(hdr, ";\n");
}
- void Module::generate_op_literals(char *&src, char *& /*hdr*/)
+ void Module::generate_op_literals(char *&src, char *& hdr)
{
if (op_literals.size() == 0) return;
vector<size_t> pattern_lens;
for(size_t i = 0; i < op_literals.size(); i++) {
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const unsigned short ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ } else {
+ src = mputprintf(src, "%sconst unsigned short ", split_to_slices ? "" : "static ");
+ }
src = mputprintf(src, "%s_elements[] = { ",
op_literals.get_nth_elem(i)->c_str());
const string& str = op_literals.get_nth_key(i);
}
src = mputstr(src, ";\n");
for (size_t i = 0; i < op_literals.size(); i++) {
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const OCTETSTRING_template ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ",\n");
+ }
+ }
+ else {
+ src = mputprintf(src, "%sconst OCTETSTRING_template ", split_to_slices ? "" : "static ");
+ if (split_to_slices) {
+ hdr = mputprintf(hdr, "extern const OCTETSTRING_template ");
+ }
+ }
const char *name = op_literals.get_nth_elem(i)->c_str();
src = mputprintf(src, "%s(%lu, %s_elements)",
name, (unsigned long) *pattern_lens[i], name);
+ if (split_to_slices) {
+ hdr = mputstr(hdr, name);
+ }
}
src = mputstr(src, ";\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ";\n");
+ }
for (size_t i = 0; i < pattern_lens.size(); i++) delete pattern_lens[i];
pattern_lens.clear();
}
const string& pattern = pp_literals.get_nth_key(i);
size_t pattern_len = pattern.size();
const char *pattern_ptr = pattern.c_str();
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const unsigned char ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ }
+ else {
+ src = mputprintf(src, "%sconst unsigned char ", split_to_slices ? "" : "static ");
+ }
src = mputprintf(src, "%s[] = { ", pp_literals.get_nth_elem(i)->c_str());
if (pattern_len % 8 != 0) FATAL_ERROR("Module::generate_pp_literals()");
size_t nof_octets = pattern_len / 8;
const char *str_ptr = str.c_str();
if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const Token_Match ");
+ else src = mputprintf(src, "%sconst Token_Match ", split_to_slices ? "" : "static ");
src = mputprintf(src, "%s(\"", mp_literals.get_nth_elem(i)->c_str());
src = Code::translate_string(src, str_ptr + 1);
if (value_size < 2) continue;
if (array_needed) src = mputstr(src, ",\n");
else {
- src = mputstr(src, "static const universal_char ");
+ src = mputprintf(src, "%sconst universal_char ", split_to_slices ? "" : "static ");
array_needed = true;
}
src = mputprintf(src, "%s_uchars[] = { ",
if (splitting) hdr = mputstr(hdr, ";\n");
}
- void Module::generate_oid_literals(char *&src, char *& /*hdr*/)
+ void Module::generate_oid_literals(char *&src, char *& hdr)
{
if (oid_literals.size() == 0) return;
for (size_t i = 0; i < oid_literals.size(); i++) {
if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const OBJID::objid_element ");
+ else src = mputprintf(src, "%sconst OBJID::objid_element ", split_to_slices ? "" : "static ");
src = mputprintf(src, "%s_comps[] = { %s }",
oid_literals.get_nth_elem(i)->oid_id.c_str(),
for(size_t i = 0; i < oid_literals.size(); i++) {
const OID_literal *litstruct = oid_literals.get_nth_elem(i);
- if (i > 0) src = mputstr(src, ",\n");
- else src = mputstr(src, "static const OBJID ");
+ if (i > 0) {
+ src = mputstr(src, ",\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ",\n");
+ }
+ }
+ else {
+ src = mputprintf(src, "%sconst OBJID ", split_to_slices ? "" : "static ");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, "extern const OBJID ");
+ }
+ }
src = mputprintf(src, "%s(%lu, %s_comps)",
litstruct->oid_id.c_str(), (unsigned long) litstruct->nof_elems,
litstruct->oid_id.c_str());
+ if (split_to_slices) {
+ hdr = mputstr(hdr, litstruct->oid_id.c_str());
+ }
}
src = mputstr(src, ";\n");
+ if (split_to_slices) {
+ hdr = mputstr(hdr, ";\n");
+ }
}
void Module::generate_functions(output_struct *output)
// always generate pre_init_module if the file is profiled
if (output->functions.pre_init || profiled || debugged) {
output->source.static_function_prototypes =
- mputstr(output->source.static_function_prototypes,
- "static void pre_init_module();\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static void pre_init_module()\n"
- "{\n");
+ mputprintf(output->source.static_function_prototypes,
+ "%svoid pre_init_module();\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%svoid pre_init_module()\n"
+ "{\n", split_to_slices ? "" : "static ");
if (include_location_info) {
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies,
// post_init function
bool has_post_init = false;
if (output->functions.post_init) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static void post_init_module();\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static void post_init_module()\n"
- "{\n");
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%svoid post_init_module();\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%svoid post_init_module()\n"
+ "{\n", split_to_slices ? "" : "static ");
if (include_location_info) {
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies,
// set_param function
bool has_set_param;
if (output->functions.set_param) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static boolean set_module_param(Module_Param& param);\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static boolean set_module_param(Module_Param& param)\n"
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%sboolean set_module_param(Module_Param& param);\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%sboolean set_module_param(Module_Param& param)\n"
"{\n"
- "const char* const par_name = param.get_id()->get_current_name();\n");
+ "const char* const par_name = param.get_id()->get_current_name();\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies, output->functions.set_param);
output->source.static_function_bodies =
// get_param function
bool has_get_param;
if (output->functions.get_param) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static Module_Param* get_module_param(Module_Param_Name& param_name);\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static Module_Param* get_module_param(Module_Param_Name& param_name)\n"
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%sModule_Param* get_module_param(Module_Param_Name& param_name);\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%sModule_Param* get_module_param(Module_Param_Name& param_name)\n"
"{\n"
- "const char* const par_name = param_name.get_current_name();\n");
+ "const char* const par_name = param_name.get_current_name();\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies, output->functions.get_param);
output->source.static_function_bodies =
// log_param function
bool has_log_param;
if (output->functions.log_param) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static void log_module_param();\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static void log_module_param()\n"
- "{\n");
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%svoid log_module_param();\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%svoid log_module_param()\n"
+ "{\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies, output->functions.log_param);
output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
bool has_init_comp;
if (output->functions.init_comp) {
output->source.static_function_prototypes =
- mputstr(output->source.static_function_prototypes,
- "static boolean init_comp_type("
- "const char *component_type, boolean init_base_comps);\n");
+ mputprintf(output->source.static_function_prototypes,
+ "%sboolean init_comp_type("
+ "const char *component_type, boolean init_base_comps);\n", split_to_slices ? "extern " : "static ");
output->source.static_function_bodies =
- mputstr(output->source.static_function_bodies,
- "static boolean init_comp_type(const char *component_type, "
+ mputprintf(output->source.static_function_bodies,
+ "%sboolean init_comp_type(const char *component_type, "
"boolean init_base_comps)\n"
- "{\n(void)init_base_comps;\n");
+ "{\n(void)init_base_comps;\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies,
output->functions.init_comp);
// start function
bool has_start;
if (output->functions.start) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static boolean start_ptc_function(const char *function_name, "
- "Text_Buf& function_arguments);\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static boolean start_ptc_function(const char *function_name, "
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%sboolean start_ptc_function(const char *function_name, "
+ "Text_Buf& function_arguments);\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%sboolean start_ptc_function(const char *function_name, "
"Text_Buf& function_arguments)\n"
- "{\n");
+ "{\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies, output->functions.start);
output->source.static_function_bodies =
// control part
bool has_control;
if (output->functions.control) {
- output->source.static_function_prototypes = mputstr(output->source.static_function_prototypes,
- "static void module_control_part();\n");
- output->source.static_function_bodies = mputstr(output->source.static_function_bodies,
- "static void module_control_part()\n"
- "{\n");
+ output->source.static_function_prototypes = mputprintf(output->source.static_function_prototypes,
+ "%svoid module_control_part();\n", split_to_slices ? "extern " : "static ");
+ output->source.static_function_bodies = mputprintf(output->source.static_function_bodies,
+ "%svoid module_control_part()\n"
+ "{\n", split_to_slices ? "" : "static ");
output->source.static_function_bodies =
mputstr(output->source.static_function_bodies, output->functions.control);
output->source.static_function_bodies =
} else has_control = false;
// module checksum
if (has_checksum) {
- output->source.string_literals = mputstr(output->source.string_literals,
- "static const unsigned char module_checksum[] = {");
+ if (split_to_slices) {
+ output->header.global_vars = mputprintf(output->header.global_vars, "extern const unsigned char module_checksum[];\n");
+ }
+ output->source.string_literals = mputprintf(output->source.string_literals,
+ "%sconst unsigned char module_checksum[] = {", split_to_slices ? "" : "static ");
for (size_t i = 0; i < sizeof(module_checksum); i++) {
if (i > 0) output->source.string_literals =
mputc(output->source.string_literals, ',');
if (num_xml_namespaces != 0 || (control_ns && control_ns_prefix)) {
output->source.global_vars = mputprintf(output->source.global_vars,
- "static const size_t num_namespaces = %lu;\n"
- "static const namespace_t xml_namespaces[num_namespaces+1] = {\n"
- , (unsigned long)num_xml_namespaces
+ "%sconst size_t num_namespaces = %lu;\n"
+ "%sconst namespace_t xml_namespaces[num_namespaces+1] = {\n"
+ , split_to_slices ? "" : "static ", (unsigned long)num_xml_namespaces
+ , split_to_slices ? "" : "static "
);
+ if (split_to_slices) {
+ output->header.global_vars = mputprintf(output->header.global_vars,
+ "extern const size_t num_namespaces;\n");
+ output->header.global_vars = mputprintf(output->header.global_vars,
+ "extern const namespace_t xml_namespaces[];\n");
+ }
for (size_t i=0; i < namespaces.size(); ++i) {
if (used_namespaces.has_key(i)) {
output->source.global_vars = mputprintf(output->source.global_vars,
duplicate_underscores ? module_name : modid->get_ttcnname().c_str());
output->source.global_vars = mputprintf(output->source.global_vars,
- "\nstatic const RuntimeVersionChecker ver_checker("
+ "\n%sconst RuntimeVersionChecker ver_checker("
" current_runtime_version.requires_major_version_%d,\n"
" current_runtime_version.requires_minor_version_%d,\n"
" current_runtime_version.requires_patch_level_%d,"
" current_runtime_version.requires_runtime_%d);\n",
+ split_to_slices ? "" : "static ",
TTCN3_MAJOR, TTCN3_MINOR, TTCN3_PATCHLEVEL, use_runtime_2 ? 2 : 1
);
+ if (split_to_slices) {
+ output->header.global_vars = mputprintf(output->header.global_vars,
+ "extern const RuntimeVersionChecker ver_checker;\n");
+ }
if (tcov_enabled) {
output->source.global_vars = mputprintf(output->source.global_vars,
- "\nstatic const int effective_module_lines[] = { %s };\n" \
- "static const char *effective_module_functions[] = { %s };\n",
+ "\n%sconst int effective_module_lines[] = { %s };\n" \
+ "%sconst char *effective_module_functions[] = { %s };\n",
+ split_to_slices ? "" : "static ",
effective_module_lines ? static_cast<const char *>(effective_module_lines) : "",
+ split_to_slices ? "" : "static ",
effective_module_functions ? static_cast<const char *>(effective_module_functions) : "");
+ if (split_to_slices) {
+ output->header.global_vars = mputprintf(output->header.global_vars,
+ "extern const int effective_module_lines[];\n" \
+ "extern const char *effective_module_functions[];\n");
+ }
}
}
cgh.add_module(modid->get_name(), modid->get_ttcnname(),
moduletype == MOD_TTCN, true);
cgh.set_current_module(modid->get_ttcnname());
-
+
// language specific parts (definitions, imports, etc.)
//generate_code_internal(&target); <- needed to pass cgh
generate_code_internal(cgh);
output_struct* output = cgh.get_current_outputstruct();
+
+ CodeGenHelper::update_intervals(output);
// string literals
generate_literals(output);
// module level entry points
generate_functions(output);
+
+ CodeGenHelper::update_intervals(output); // maybe deeper in generate_functions
+
// type conversion functions for type compatibility
generate_conversion_functions(output);
+ CodeGenHelper::update_intervals(output); // maybe deeper in conv_funcs
+
/* generate the initializer function for the TTCN-3 profiler
* (this is done at the end of the code generation, to make sure all code
* lines have been added to the profiler database) */
}
}
output->source.global_vars = mputstr(output->source.global_vars, "}\n");
+ if (split_to_slices) {
+ output->header.global_vars = mputstr(output->header.global_vars,
+ "extern void init_ttcn3_profiler();\n");
+ }
}
/* TTCN-3 debugger:
generate the printing function for the types defined in this module
* Forstner, Matyas
* Kovacs, Ferenc
* Raduly, Csaba
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
#include "Code.hh"
#include "../common/memory.h"
#include "error.h"
+#include "CodeGenHelper.hh"
#include <ctype.h>
output->functions.init_comp = NULL;
output->functions.start = NULL;
output->functions.control = NULL;
+ output->intervals.pre_things_size = 0;
+ output->intervals.methods_size = 0;
+ output->intervals.function_bodies_size = 0;
+ output->intervals.static_conversion_function_bodies_size = 0;
+ output->intervals.static_function_bodies_size = 0;
+ output->intervals.methods_max_size = 1;
+ output->intervals.function_bodies_max_size = 1;
+ output->intervals.static_conversion_function_bodies_max_size = 1;
+ output->intervals.static_function_bodies_max_size = 1;
+ if (CodeGenHelper::GetInstance().get_split_mode() == CodeGenHelper::SPLIT_TO_SLICES) {
+ output->intervals.methods = (size_t*)Malloc(output->intervals.methods_max_size * sizeof(size_t));
+ output->intervals.function_bodies = (size_t*)Malloc(output->intervals.function_bodies_max_size * sizeof(size_t));
+ output->intervals.static_conversion_function_bodies = (size_t*)Malloc(output->intervals.static_conversion_function_bodies_max_size * sizeof(size_t));
+ output->intervals.static_function_bodies = (size_t*)Malloc(output->intervals.static_function_bodies_max_size * sizeof(size_t));
+
+ output->intervals.methods[0] = 0;
+ output->intervals.function_bodies[0] = 0;
+ output->intervals.static_conversion_function_bodies[0] = 0;
+ output->intervals.static_function_bodies[0] = 0;
+ } else {
+ output->intervals.methods = NULL;
+ output->intervals.function_bodies = NULL;
+ output->intervals.static_conversion_function_bodies = NULL;
+ output->intervals.static_function_bodies = NULL;
+ }
}
void Code::merge_output(output_struct *dest, output_struct *src)
Free(output->functions.init_comp);
Free(output->functions.start);
Free(output->functions.control);
+ Free(output->intervals.methods);
+ Free(output->intervals.function_bodies);
+ Free(output->intervals.static_conversion_function_bodies);
+ Free(output->intervals.static_function_bodies);
init_output(output);
}
* Balasko, Jeno
* Baranyi, Botond
* Raduly, Csaba
+ * Szabo, Bence Janos
* Zalanyi, Balazs Andor
*
******************************************************************************/
#include <cstring>
namespace Common {
-
+
CodeGenHelper* CodeGenHelper::instance = 0;
CodeGenHelper::generated_output_t::generated_output_t() :
};
CodeGenHelper::CodeGenHelper() :
- split_mode(SPLIT_NONE)
+ split_mode(SPLIT_NONE),
+ slice_num(1)
{
if (instance != 0)
FATAL_ERROR("Attempted to create a second code generator.");
void CodeGenHelper::set_split_mode(split_type st) {
split_mode = st;
+
+ if (split_mode == SPLIT_TO_SLICES) {
+ split_to_slices = true;
+ } else {
+ split_to_slices = false;
+ }
}
bool CodeGenHelper::set_split_mode(const char* type) {
- if (strcmp(type, "none") == 0)
+ int n;
+ if (strcmp(type, "none") == 0) {
split_mode = SPLIT_NONE;
- else if (strcmp(type, "type") == 0)
+ split_to_slices = false;
+ } else if (strcmp(type, "type") == 0) {
split_mode = SPLIT_BY_KIND;
- else
+ split_to_slices = false;
+ } else if ((n = atoi(type))) {
+ size_t length = strlen(type);
+ for (int i=0;i<length; i++) {
+ if (!isdigit(type[i])) {
+ ERROR("The number argument of -U must be a valid number.");
+ break;
+ }
+ }
+ split_mode = SPLIT_TO_SLICES;
+ if (n < 1 || n > 999999) {
+ ERROR("The number argument of -U must be between 1 and 999999.");
+ return false;
+ }
+ slice_num = n;
+ split_to_slices = slice_num > 1; // slice_num == 1 has no effect
+ } else
return false;
return true;
}
current_module = name;
}
+void CodeGenHelper::update_intervals(output_struct* const output) {
+ if(instance->split_mode != SPLIT_TO_SLICES) return;
+
+ size_t tmp;
+
+ // 1. check if some characters are added to the charstring
+ // 2. increment size variable
+ // 3. if size is bigger than the array's size, then double the array size
+ // 4. store new end position
+
+ // class_defs are not counted as they will be in the header
+ tmp = mstrlen(output->source.function_bodies);
+ if (output->intervals.function_bodies[output->intervals.function_bodies_size] < tmp) {
+ output->intervals.function_bodies_size++;
+ if (output->intervals.function_bodies_size > output->intervals.function_bodies_max_size) {
+ output->intervals.function_bodies_max_size *= 2;
+ output->intervals.function_bodies = (size_t*)Realloc(output->intervals.function_bodies, output->intervals.function_bodies_max_size * sizeof(size_t));
+ }
+ output->intervals.function_bodies[output->intervals.function_bodies_size] = tmp;
+ }
+ tmp = mstrlen(output->source.methods);
+ if (output->intervals.methods[output->intervals.methods_size] < tmp) {
+ output->intervals.methods_size++;
+ if (output->intervals.methods_size > output->intervals.methods_max_size) {
+ output->intervals.methods_max_size *= 2;
+ output->intervals.methods = (size_t*)Realloc(output->intervals.methods, output->intervals.methods_max_size * sizeof(size_t));
+ }
+ output->intervals.methods[output->intervals.methods_size] = tmp;
+ }
+ tmp = mstrlen(output->source.static_conversion_function_bodies);
+ if (output->intervals.static_conversion_function_bodies[output->intervals.static_conversion_function_bodies_size] < tmp) {
+ output->intervals.static_conversion_function_bodies_size++;
+ if (output->intervals.static_conversion_function_bodies_size > output->intervals.static_conversion_function_bodies_max_size) {
+ output->intervals.static_conversion_function_bodies_max_size *= 2;
+ output->intervals.static_conversion_function_bodies = (size_t*)Realloc(output->intervals.static_conversion_function_bodies, output->intervals.static_conversion_function_bodies_max_size * sizeof(size_t));
+ }
+ output->intervals.static_conversion_function_bodies[output->intervals.static_conversion_function_bodies_size] = tmp;
+ }
+ tmp = mstrlen(output->source.static_function_bodies);
+ if (output->intervals.static_function_bodies[output->intervals.static_function_bodies_size] < tmp) {
+ output->intervals.static_function_bodies_size++;
+ if (output->intervals.static_function_bodies_size > output->intervals.static_function_bodies_max_size) {
+ output->intervals.static_function_bodies_max_size *= 2;
+ output->intervals.static_function_bodies = (size_t*)Realloc(output->intervals.static_function_bodies, output->intervals.static_function_bodies_max_size * sizeof(size_t));
+ }
+ output->intervals.static_function_bodies[output->intervals.static_function_bodies_size] = tmp;
+ }
+}
+//Advised to call update_intervals before this
+size_t CodeGenHelper::size_of_sources(output_struct * const output) {
+ size_t size = 0;
+ // Calculate global var and string literals size
+ output->intervals.pre_things_size = mstrlen(output->source.global_vars) + mstrlen(output->source.string_literals);
+
+ // Class_defs, static_conversion_function_prototypes, static_function_prototypes are in the header,
+ // and includes are not counted
+ size = output->intervals.pre_things_size +
+ output->intervals.function_bodies[output->intervals.function_bodies_size] +
+ output->intervals.methods[output->intervals.methods_size] +
+ output->intervals.static_conversion_function_bodies[output->intervals.static_conversion_function_bodies_size] +
+ output->intervals.static_function_bodies[output->intervals.static_function_bodies_size];
+ return size;
+}
+
+size_t CodeGenHelper::get_next_chunk_pos(const output_struct * const from, output_struct * const to, const size_t base_pos, const size_t chunk_size) {
+ size_t pos = 0; // Holds the position from the beginning
+
+ pos += from->intervals.pre_things_size;
+
+ if (pos > base_pos) {
+ to->source.global_vars = mputstr(to->source.global_vars, from->source.global_vars);
+ to->source.string_literals = mputstr(to->source.string_literals, from->source.string_literals);
+ }
+
+ get_chunk_from_poslist(from->source.methods, to->source.methods, from->intervals.methods, from->intervals.methods_size, base_pos, chunk_size, pos);
+ get_chunk_from_poslist(from->source.function_bodies, to->source.function_bodies, from->intervals.function_bodies, from->intervals.function_bodies_size, base_pos, chunk_size, pos);
+ get_chunk_from_poslist(from->source.static_function_bodies, to->source.static_function_bodies, from->intervals.static_function_bodies, from->intervals.static_function_bodies_size, base_pos, chunk_size, pos);
+ get_chunk_from_poslist(from->source.static_conversion_function_bodies, to->source.static_conversion_function_bodies, from->intervals.static_conversion_function_bodies, from->intervals.static_conversion_function_bodies_size, base_pos, chunk_size, pos);
+
+ return pos;
+}
+//if from null return.
+void CodeGenHelper::get_chunk_from_poslist(const char* from, char *& to, const size_t interval_array[], const size_t interval_array_size, const size_t base_pos, const size_t chunk_size, size_t& pos) {
+ if (from == NULL) return;
+ // If we have enough to form a chunk
+
+ // pos is unsigned so it can't be negative
+ if (pos > base_pos && pos - base_pos >= chunk_size) return;
+
+ size_t tmp = pos;
+
+ pos += interval_array[interval_array_size];
+
+ if (pos > base_pos) { // If we haven't finished with this interval_array
+ if (pos - base_pos >= chunk_size) { // It is a good chunk, but make it more precise because it may be too big
+ int ind = 0;
+ for (int i = 0; i <= interval_array_size; i++) {
+ if (tmp + interval_array[i] <= base_pos) { // Find the pos where we left off
+ ind = i;
+ } else if (tmp + interval_array[i] - base_pos >= chunk_size) {
+ // Found the first optimal position that is a good chunk
+ to = mputstrn(to, from + interval_array[ind], interval_array[i] - interval_array[ind]);
+ pos = tmp + interval_array[i];
+ return;
+ }
+ }
+ } else { // We can't form a new chunk from the remaining characters
+ int ind = 0;
+ for (int i = 0; i <= interval_array_size; i++) {
+ if (tmp + interval_array[i] <= base_pos) {
+ ind = i;
+ } else {
+ break;
+ }
+ }
+ // Put the remaining characters
+ to = mputstrn(to, from + interval_array[ind], interval_array[interval_array_size] - interval_array[ind]);
+ pos = tmp + interval_array[interval_array_size];
+ }
+ }
+}
+
output_struct* CodeGenHelper::get_outputstruct(Ttcn::Definition* def) {
string key = get_key(*def);
const string& new_name = current_module + key;
break;
case SPLIT_BY_HEURISTICS:
break;
+ case SPLIT_TO_SLICES:
+ break;
}
return retval;
}
break;
case SPLIT_BY_HEURISTICS:
break;
+ case SPLIT_TO_SLICES:
+ break;
}
return retval;
}
go->modulename = modules[j]->name;
go->module_dispname = modules[j]->dispname;
go->os.source.includes = mcopystr(
- "\n//This file intentionally empty."
+ "\n//This file is intentionally empty."
"\n#include <version.h>\n");
generated_code.add(fname, go);
}
}
}
+ } else if (split_mode == SPLIT_TO_SLICES && slice_num > 0) {
+ // The strategy is the following:
+ // Goal: Get files with equal size
+ // Get the longest file's length and divide it by slice_num (chunk_size)
+ // We split every file to chunk_size sized chunks
+ size_t max = 0;
+ // Calculate maximum character length
+ for (j = 0; j < generated_code.size(); j++) {
+ update_intervals(&generated_code.get_nth_elem(j)->os);
+ size_t num_of_chars = size_of_sources(&generated_code.get_nth_elem(j)->os);
+ if (max < num_of_chars) {
+ max = num_of_chars;
+ }
+ }
+ // Calculate ideal chunk size
+ size_t chunk_size = max / slice_num;
+ string fname;
+ for (j = 0; j < modules.size(); j++) {
+ generated_output_t *output = generated_code[modules[j]->dispname];
+
+ // Just to be sure that everything is in the right place
+ update_intervals(&output->os);
+
+ // Move static function prototypes to header (no longer static)
+ output->os.header.function_prototypes = mputstr(output->os.header.function_prototypes, output->os.source.static_function_prototypes);
+ Free(output->os.source.static_function_prototypes);
+ output->os.source.static_function_prototypes = NULL;
+
+ output->os.header.function_prototypes = mputstr(output->os.header.function_prototypes, output->os.source.static_conversion_function_prototypes);
+ Free(output->os.source.static_conversion_function_prototypes);
+ output->os.source.static_conversion_function_prototypes = NULL;
+
+ // Move internal class definitions to the header
+ output->os.header.class_defs = mputstr(output->os.header.class_defs, output->os.source.class_defs);
+ Free(output->os.source.class_defs);
+ output->os.source.class_defs = NULL;
+
+ update_intervals(&output->os);
+ size_t num_of_chars = size_of_sources(&output->os);
+ char buffer[13]= ""; // Max is 999999 should be enough (checked in main.cc) | 6 digit + 2 underscore + part
+ // If we need to split
+ if (num_of_chars >= chunk_size) {
+ size_t base_pos = 0;
+ for (unsigned int i = 0; i < slice_num; i++) {
+ if (i == 0) { // The first slice has the module's name
+ fname = output->module_dispname;
+ } else {
+ sprintf(buffer, "_part_%d", (int)i);
+ fname = output->module_dispname + "_" + buffer;
+ }
+ if (i == 0 || !generated_code.has_key(fname)) {
+ generated_output_t* go = new generated_output_t;
+ go->filename = buffer;
+ go->modulename = output->modulename;
+ go->module_dispname = output->module_dispname;
+ size_t act_pos = get_next_chunk_pos(&output->os, &go->os, base_pos, chunk_size);
+ // True if the file is not empty
+ if (act_pos > base_pos) {
+ go->os.source.includes = mputstr(go->os.source.includes, output->os.source.includes);
+ } else {
+ go->os.source.includes = mcopystr(
+ "\n//This file is intentionally empty."
+ "\n#include <version.h>\n");
+ }
+ // First slice: copy header and other properties and replace the original output struct
+ if (i == 0) {
+ go->has_circular_import = output->has_circular_import;
+ go->is_module = output->is_module;
+ go->is_ttcn = output->is_ttcn;
+ go->os.header.class_decls = mputstr(go->os.header.class_decls, output->os.header.class_decls);
+ go->os.header.class_defs = mputstr(go->os.header.class_defs, output->os.header.class_defs);
+ go->os.header.function_prototypes = mputstr(go->os.header.function_prototypes, output->os.header.function_prototypes);
+ go->os.header.global_vars = mputstr(go->os.header.global_vars, output->os.header.global_vars);
+ go->os.header.includes = mputstr(go->os.header.includes, output->os.header.includes);
+ go->os.header.testport_includes = mputstr(go->os.header.testport_includes, output->os.header.testport_includes);
+ go->os.header.typedefs = mputstr(go->os.header.typedefs, output->os.header.typedefs);
+ generated_code[modules[j]->dispname] = go;
+ } else {
+ generated_code.add(fname, go);
+ }
+ base_pos = act_pos;
+ } else {
+ // TODO: error handling: there is a module which has the same name as the
+ // numbered splitted file. splitting by type does not have this error
+ // handling so don't we
+ }
+ }
+ // Extra safety. If something is missing after the splitting, put the remaining
+ // things to the last file. (Should never happen)
+ if (base_pos < num_of_chars) {
+ get_next_chunk_pos(&output->os, &generated_code[fname]->os, base_pos, num_of_chars);
+ }
+ delete output;
+ } else {
+ // Create empty files.
+ for (i = 1; i < slice_num; i++) {
+ sprintf(buffer, "_part_%d", (int)i);
+ fname = output->module_dispname + "_" + buffer;
+ if (!generated_code.has_key(fname)) {
+ generated_output_t* go = new generated_output_t;
+ go->filename = buffer;
+ go->modulename = modules[j]->name;
+ go->module_dispname = modules[j]->dispname;
+ go->os.source.includes = mcopystr(
+ "\n//This file is intentionally empty."
+ "\n#include <version.h>\n");
+ generated_code.add(fname, go);
+ }
+ }
+ }
+ }
}
generated_output_t* go;
for (i = 0; i < generated_code.size(); i++) {
* Contributors:
* Balasko, Jeno
* Raduly, Csaba
+ * Szabo, Bence Janos
* Zalanyi, Balazs Andor
*
******************************************************************************/
}
namespace Common {
-
+
class CodeGenHelper {
public:
enum split_type {
SPLIT_NONE, ///< original code generation
SPLIT_BY_KIND, ///< place different kind of types in their own file
SPLIT_BY_NAME, ///< place all definitions/assignments in their own file
- SPLIT_BY_HEURISTICS ///< heuristic function will decide the structure
+ SPLIT_BY_HEURISTICS,///< heuristic function will decide the structure
+ SPLIT_TO_SLICES ///< split large files into smaller ones
};
private:
output_map_t generated_code;
split_type split_mode;
+ unsigned int slice_num;
struct module_names_t {
string name;
void finalize_generation(Type* type);
void set_current_module(const string& name);
+
+ static void update_intervals(output_struct* const output);
+
+ size_t size_of_sources(output_struct * const output);
+
+ size_t get_next_chunk_pos(const output_struct * const from, output_struct * const to, const size_t base_pos, const size_t chunk_size);
+
+ void get_chunk_from_poslist(const char* from, char *& to, const size_t interval_array[], const size_t interval_array_size, const size_t base_pos, const size_t chunk_size, size_t& pos);
void write_output();
* Contributors:
* Balasko, Jeno
* Raduly, Csaba
+ * Szabo, Bence Janos
*
******************************************************************************/
#include "TypeCompat.hh"
string to_name = m_is_temp ? m_to->get_genname_template(p_mod)
: m_to->get_genname_value(p_mod);
*p_prototypes = mputprintf(*p_prototypes,
- "static boolean %s(%s& p_to_v, const %s& p_from_v);\n",
- get_conv_func(m_from, m_to, p_mod).c_str(), to_name.c_str(),
+ "%sboolean %s(%s& p_to_v, const %s& p_from_v);\n",
+ split_to_slices ? "" : "static ", get_conv_func(m_from, m_to, p_mod).c_str(), to_name.c_str(),
from_name.c_str());
*p_bodies = mputprintf(*p_bodies,
- "static boolean %s(%s& p_to_v, const %s& p_from_v)\n{\n",
- get_conv_func(m_from, m_to, p_mod).c_str(), to_name.c_str(),
+ "%sboolean %s(%s& p_to_v, const %s& p_from_v)\n{\n",
+ split_to_slices ? "" : "static ", get_conv_func(m_from, m_to, p_mod).c_str(), to_name.c_str(),
from_name.c_str());
switch (m_to->get_typetype()) {
case Type::T_SEQ_A:
* Delic, Adam
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Pandi, Krisztian
*
******************************************************************************/
{
if (code_generated) return;
generate_code_embedded_before(target);
+ CodeGenHelper::update_intervals(target); // TODO: class and template separate everywhere?
// escape from recursion loops
if (code_generated) return;
code_generated = true;
break;
} // switch
}
+ CodeGenHelper::update_intervals(target);
generate_code_embedded_after(target);
+ CodeGenHelper::update_intervals(target);
if (!is_asn1()) {
if (has_done_attribute()) generate_code_done(target);
if (sub_type) sub_type->generate_code(*target);
}
+ CodeGenHelper::update_intervals(target);
}
void Type::generate_code_include(const string& sourcefile, output_struct *target)
void Type::generate_code_berdescriptor(output_struct *target)
{
const char *gennameown_str = get_genname_own().c_str();
- char *str = mprintf("static const ASN_Tag_t %s_tag_[] = { ",
- gennameown_str);
+ char *str = mprintf("%sconst ASN_Tag_t %s_tag_[] = { ",
+ split_to_slices ? "" : "static ", gennameown_str);
Tags *joinedtags = build_tags_joined();
size_t tagarraysize = joinedtags->get_nof_tags();
for (size_t i = 0; i < tagarraysize; i++) {
case T_BOOL:
if (textattrib->true_params || textattrib->false_params) {
target->source.global_vars = mputprintf(target->source.global_vars,
- "static const TTCN_TEXTdescriptor_bool %s_bool_ = {", gennameown_str);
+ "%sconst TTCN_TEXTdescriptor_bool %s_bool_ = {", split_to_slices ? "" : "static ", gennameown_str);
+ if (split_to_slices) {
+ target->header.global_vars = mputprintf(target->header.global_vars,
+ "extern const TTCN_TEXTdescriptor_bool %s_bool_;\n", gennameown_str);
+ }
if (textattrib->true_params &&
textattrib->true_params->encode_token) {
target->source.global_vars = mputprintf(target->source.global_vars,
break;
case T_ENUM_T:
target->source.global_vars = mputprintf(target->source.global_vars,
- "static const TTCN_TEXTdescriptor_enum %s_enum_[] = { ",
- gennameown_str);
+ "%sconst TTCN_TEXTdescriptor_enum %s_enum_[] = { ",
+ split_to_slices ? "" : "static ", gennameown_str);
+ if (split_to_slices) {
+ target->header.global_vars = mputprintf(target->header.global_vars,
+ "extern const TTCN_TEXTdescriptor_enum %s_enum_[];\n", gennameown_str);
+ }
for (size_t i = 0; i < t->u.enums.eis->get_nof_eis(); i++) {
if (i > 0) target->source.global_vars =
mputstr(target->source.global_vars, ", ");
textattrib->decoding_params.convert!=0 ||
textattrib->decoding_params.just!=1 ){
target->source.global_vars=mputprintf(target->source.global_vars,
- "static const TTCN_TEXTdescriptor_param_values %s_par_ = {",
- gennameown_str);
+ "%sconst TTCN_TEXTdescriptor_param_values %s_par_ = {",
+ split_to_slices ? "" : "static ", gennameown_str);
+ if (split_to_slices) {
+ target->header.global_vars=mputprintf(target->header.global_vars,
+ "extern const TTCN_TEXTdescriptor_param_values %s_par_;\n", gennameown_str);
+ }
target->source.global_vars=mputprintf(target->source.global_vars,
"{%s,%s,%i,%i,%i,%i},{%s,%s,%i,%i,%i,%i}};\n"
,textattrib->coding_params.leading_zero?"true":"false"
case T_SEQOF:
case T_SETOF:
target->source.global_vars=mputprintf(target->source.global_vars,
- "static const TTCN_TEXTdescriptor_param_values %s_par_ = {",
- gennameown_str);
+ "%sconst TTCN_TEXTdescriptor_param_values %s_par_ = {",
+ split_to_slices ? "" : "static ", gennameown_str);
+ if (split_to_slices) {
+ target->header.global_vars=mputprintf(target->header.global_vars,
+ "extern const TTCN_TEXTdescriptor_param_values %s_par_;\n", gennameown_str);
+ }
target->source.global_vars=mputprintf(target->source.global_vars,
"{%s,%s,%i,%i,%i,%i},{%s,%s,%i,%i,%i,%i}};\n"
,textattrib->coding_params.leading_zero?"true":"false"
"};\n\n",
own_name,
u.array.dimension->get_value_type(u.array.element_type, my_scope).c_str());
- target->source.class_defs = mputprintf(target->source.class_defs,
+ target->source.methods = mputprintf(target->source.methods,
"const TTCN_Typedescriptor_t* %s::get_elem_descr() const { return &%s_descr_; }\n\n",
own_name, u.array.element_type->get_genname_typedescriptor(my_scope).c_str());
} else {
if (prefix) {
cdef->decl = mputprintf(cdef->decl, "extern const %s& %s;\n",
type_name_str, name_str);
- cdef->def = mputprintf(cdef->def, "static %s %s%s;\n"
- "const %s& %s = %s%s;\n", type_name_str, prefix, name_str,
+ if (split_to_slices) {
+ cdef->decl = mputprintf(cdef->decl, "extern %s %s%s;\n", type_name_str, prefix, name_str);
+ }
+ cdef->def = mputprintf(cdef->def, "%s%s %s%s;\n"
+ "const %s& %s = %s%s;\n", split_to_slices ? "" : "static ", type_name_str, prefix, name_str,
type_name_str, name_str, prefix, name_str);
} else {
cdef->decl = mputprintf(cdef->decl, "extern %s %s;\n",
FATAL_ERROR("Type::generate_code_object()");
}
if (p_setting->get_err_descr()) {
- cdef->def = p_setting->get_err_descr()->generate_code_str(cdef->def,
- p_setting->get_genname_prefix() + p_setting->get_genname_own());
+ cdef->def = p_setting->get_err_descr()->generate_code_str(cdef->def, cdef->decl,
+ p_setting->get_genname_prefix() + p_setting->get_genname_own(), false);
}
generate_code_object(cdef, p_setting->get_my_scope(),
p_setting->get_genname_own(), p_setting->get_genname_prefix(),
* Kovacs, Ferenc
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szalai, Gabor
* Zalanyi, Balazs Andor
* Pandi, Krisztian
void Assignments::generate_code(CodeGenHelper& cgh) {
for (size_t i = 0; i < asss_v.size(); i++) {
Assignment *ass = asss_v[i];
- if (!top_level_pdu || ass->get_checked()) ass->generate_code(cgh);
+ if (!top_level_pdu || ass->get_checked()) {
+ ass->generate_code(cgh);
+ CodeGenHelper::update_intervals(cgh.get_current_outputstruct());
+ }
}
}
if (ass_pard || dontgen) return;
classify_ass();
ass->generate_code(cgh);
+ CodeGenHelper::update_intervals(cgh.get_current_outputstruct());
}
void Ass_Undef::dump(unsigned level) const
.RB "[\| " \-Q
.IR "n" " \|] "
.RB "[\| " \-U
-.IR "none|type" " \|] "
+.IR "none|type|'number'" " \|] "
.RB "[\| " \-T " \|]"
module.ttcn ...
.RB "[\| " \-A " \|]"
characters in all output file names. This option turns on the
compatibility mode with versions 1.1 or earlier.
.TP
-.BI \-U " none|type"
+.BI \-U " none|type|'number'"
Selects code splitting mode for the generated C++ code.
+The 'number' should be a positive number between 1 and 999999.
+If the 'number' is present the files will be sliced into 'number' files.
.TP
.B \-v
Prints
implicit_json_encoding = FALSE, json_refs_for_all_types = TRUE,
force_gen_seof = FALSE, omit_in_value_list = FALSE,
warnings_for_bad_variants = FALSE, debugger_active = FALSE,
- legacy_unbound_union_fields = FALSE;
+ legacy_unbound_union_fields = FALSE, split_to_slices = FALSE;
// Default code splitting mode is set to 'no splitting'.
CodeGenHelper::split_type code_splitting_mode = CodeGenHelper::SPLIT_NONE;
{
fprintf(stderr, "\n"
"usage: %s [-abcdEfgijlLMnOpqrRsStuwxXyY] [-K file] [-z file] [-V verb_level]\n"
- " [-o dir] [-U none|type] [-P modulename.top_level_pdu_name] [-Q number] ...\n"
+ " [-o dir] [-U none|type|'number'] [-P modulename.top_level_pdu_name] [-Q number] ...\n"
" [-T] module.ttcn [-A] module.asn ...\n"
" or %s -v\n"
" or %s --ttcn2json [-jf] ... [-T] module.ttcn [-A] module.asn ... [- schema.json]\n"
" -S: suppress context information\n"
" -t: generate Test Port skeleton\n"
" -u: duplicate underscores in file names\n"
- " -U none|type: select code splitting mode for the generated C++ code\n"
+ " -U none|type|'number': select code splitting mode for the generated C++ code\n"
" -V verb_level: set verbosity level bitmask (decimal)\n"
" -w: suppress warnings\n"
" -x: disable TEXT encoder/decoder functions\n"
s0flag = false, Cflag = false, yflag = false, Uflag = false, Qflag = false,
Sflag = false, Kflag = false, jflag = false, zflag = false, Fflag = false,
Mflag = false, Eflag = false, nflag = false, Bflag = false, errflag = false,
- print_usage = false, ttcn2json = false;
+ print_usage = false, ttcn2json = false;
CodeGenHelper cgh;
SET_FLAG(U);
if (!cgh.set_split_mode(optarg)) {
ERROR("Wrong code splitting option: '%s'. Valid values are: 'none', "
- "'type'.", optarg);
+ "'type', or a positive number.", optarg);
errflag = true;
}
- break;
+ break;
case 'v':
SET_FLAG(v);
break;
* Kremer, Peter
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
check_subtype, suppress_context, enable_set_bound_out_param, display_up_to_date,
implicit_json_encoding, json_refs_for_all_types, force_gen_seof,
omit_in_value_list, warnings_for_bad_variants, debugger_active,
- legacy_unbound_union_fields;
+ legacy_unbound_union_fields, split_to_slices;
extern const char *expected_platform;
}
/** Prints the splitted files' names for a given module. */
static void print_splitted_file_names(FILE *fp,
- const struct makefile_struct *makefile, const struct module_struct *module)
+ const struct makefile_struct *makefile, const struct module_struct *module, const boolean dir)
{
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
- print_generated_file_name(fp, module, FALSE, "_seq.cc");
- print_generated_file_name(fp, module, FALSE, "_set.cc");
- print_generated_file_name(fp, module, FALSE, "_seqof.cc");
- print_generated_file_name(fp, module, FALSE, "_setof.cc");
- print_generated_file_name(fp, module, FALSE, "_union.cc");
+ print_generated_file_name(fp, module, dir, "_seq.cc");
+ print_generated_file_name(fp, module, dir, "_set.cc");
+ print_generated_file_name(fp, module, dir, "_seqof.cc");
+ print_generated_file_name(fp, module, dir, "_setof.cc");
+ print_generated_file_name(fp, module, dir, "_union.cc");
+ } else if(makefile->code_splitting_mode != NULL && (n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.cc", i);
+ print_generated_file_name(fp, module, dir, buffer);
+ }
}
}
for (i = 0; i < makefile->nTTCN3Modules; i++) {
const struct module_struct *module = makefile->TTCN3Modules + i;
if (module->dir_name == NULL || !makefile->central_storage)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
if (makefile->preprocess) {
for (i = 0; i < makefile->nTTCN3PPModules; i++) {
const struct module_struct *module = makefile->TTCN3PPModules + i;
if (module->dir_name == NULL || !makefile->central_storage)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
}
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
if (makefile->preprocess) {
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
}
for (i = 0; i < makefile->nASN1Modules; i++) {
const struct module_struct *module = makefile->ASN1Modules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
}
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, FALSE);
}
}
}
for (i = 0; i < makefile->nTTCN3Modules; i++) {
const struct module_struct *module = makefile->TTCN3Modules + i;
if (module->dir_name != NULL) {
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
}
for (i = 0; i < makefile->nTTCN3PPModules; i++) {
const struct module_struct *module = makefile->TTCN3PPModules + i;
if (module->dir_name != NULL) {
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
}
if (module->dir_name != NULL) {
print_generated_file_name(fp, module, TRUE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
if (makefile->preprocess) {
if (module->dir_name != NULL) {
print_generated_file_name(fp, module, TRUE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
}
for (i = 0; i < makefile->nASN1Modules; i++) {
const struct module_struct *module = makefile->ASN1Modules + i;
if (module->dir_name != NULL) {
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
}
if (module->dir_name != NULL) {
print_generated_file_name(fp, module, TRUE, ".cc");
if (makefile->code_splitting_mode)
- print_splitted_file_names(fp, makefile, module);
+ print_splitted_file_names(fp, makefile, module, TRUE);
}
}
}
const struct module_struct *module = makefile->TTCN3Modules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".so");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.so");
print_generated_file_name(fp, module, FALSE, "_set.so");
print_generated_file_name(fp, module, FALSE, "_seqof.so");
print_generated_file_name(fp, module, FALSE, "_setof.so");
print_generated_file_name(fp, module, FALSE, "_union.so");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.so", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
if (makefile->preprocess) {
const struct module_struct *module = makefile->TTCN3PPModules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".so");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.so");
print_generated_file_name(fp, module, FALSE, "_set.so");
print_generated_file_name(fp, module, FALSE, "_seqof.so");
print_generated_file_name(fp, module, FALSE, "_setof.so");
print_generated_file_name(fp, module, FALSE, "_union.so");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.so", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
}
const struct module_struct *module = makefile->ASN1Modules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".so");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.so");
print_generated_file_name(fp, module, FALSE, "_set.so");
print_generated_file_name(fp, module, FALSE, "_seqof.so");
print_generated_file_name(fp, module, FALSE, "_setof.so");
print_generated_file_name(fp, module, FALSE, "_union.so");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.so", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
}
const struct module_struct *module = makefile->TTCN3Modules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".o");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.o");
print_generated_file_name(fp, module, FALSE, "_set.o");
print_generated_file_name(fp, module, FALSE, "_seqof.o");
print_generated_file_name(fp, module, FALSE, "_setof.o");
print_generated_file_name(fp, module, FALSE, "_union.o");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.o", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
if (makefile->preprocess) {
const struct module_struct *module = makefile->TTCN3PPModules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".o");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.o");
print_generated_file_name(fp, module, FALSE, "_set.o");
print_generated_file_name(fp, module, FALSE, "_seqof.o");
print_generated_file_name(fp, module, FALSE, "_setof.o");
print_generated_file_name(fp, module, FALSE, "_union.o");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.o", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
}
const struct module_struct *module = makefile->ASN1Modules + i;
if (module->dir_name == NULL || !makefile->central_storage) {
print_generated_file_name(fp, module, FALSE, ".o");
- if (makefile->code_splitting_mode != NULL)
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
if (strcmp(makefile->code_splitting_mode, "-U type") == 0) {
print_generated_file_name(fp, module, FALSE, "_seq.o");
print_generated_file_name(fp, module, FALSE, "_set.o");
print_generated_file_name(fp, module, FALSE, "_seqof.o");
print_generated_file_name(fp, module, FALSE, "_setof.o");
print_generated_file_name(fp, module, FALSE, "_union.o");
+ } else if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.o", i);
+ print_generated_file_name(fp, module, FALSE, buffer);
+ }
}
+ }
}
}
}
else {
for (i = 0; i < makefile->nTTCN3Modules; i++) {
const struct module_struct *module = makefile->TTCN3Modules + i;
- if (module->dir_name != NULL)
+ if (module->dir_name != NULL) {
print_generated_file_name(fp, module, TRUE, ".o");
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
+ if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.o", i);
+ print_generated_file_name(fp, module, TRUE, buffer);
+ }
+ }
+ }
+ }
}
if (makefile->preprocess) {
for (i = 0; i < makefile->nTTCN3PPModules; i++) {
const struct module_struct *module = makefile->TTCN3PPModules + i;
- if (module->dir_name != NULL)
+ if (module->dir_name != NULL) {
print_generated_file_name(fp, module, TRUE, ".o");
+ if (makefile->code_splitting_mode != NULL) {
+ int n_slices;
+ if((n_slices = atoi(makefile->code_splitting_mode + 2))) {
+ for (int i = 1; i < n_slices; i++) {
+ char buffer[16]; // 6 digits + 4 chars + _part
+ sprintf(buffer, "_part_%i.o", i);
+ print_generated_file_name(fp, module, TRUE, buffer);
+ }
+ }
+ }
+ }
}
}
for (i = 0; i < makefile->nASN1Modules; i++) {
{
fprintf(stderr, "\n"
"usage: %s [-abc" C_flag "dDEfFglLmMnprRsStTVwWXZ] [-K file] [-z file ] [-P dir]"
- " [-U none|type] [-e ets_name] [-o dir|file]\n"
+ " [-U none|type|'number'] [-e ets_name] [-o dir|file]\n"
" [-t project_descriptor.tpd [-b buildconfig]]\n"
" [-O file] ... module_name ... testport_name ...\n"
" or %s -v\n"
" -R: use function test runtime (TITAN_RUNTIME_2)\n"
" -s: generate Makefile for single mode\n"
" -S: suppress makefilegen warnings\n"
- " -U none|type: split generated code\n"
+ " -U none|type|'number': split generated code\n"
" -v: show version\n"
" -w: suppress warnings generated by TITAN\n"
" -Y: Enforces legacy behaviour of the \"out\" function parameters (see refguide)\n"
break;
case 'U':
SET_FLAG(U);
+ int n_slices = atoi(optarg);
code_splitting_mode = optarg;
- if (strcmp(optarg, "none") != 0 &&
- strcmp(optarg, "type") != 0)
+ if (!n_slices &&
+ (strcmp(optarg, "none") != 0 &&
+ strcmp(optarg, "type") != 0))
+ {
ERROR("Unrecognizable argument: '%s'. Valid options for -U switch are: "
- "'none', 'type'", optarg);
+ "'none', 'type', or a number.", optarg);
+ } else {
+ size_t length = strlen(optarg);
+ for (int i=0;i<length; i++) {
+ if (!isdigit(optarg[i])) {
+ ERROR("The number argument of -U must be a valid number.");
+ break;
+ }
+ }
+ if (n_slices < 1 || n_slices > 999999) {
+ ERROR("The number argument of -U must be between 1 and 999999.");
+ }
+ }
break;
case 'v':
SET_FLAG(v);
* Kovacs, Ferenc
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szalai, Gabor
* Zalanyi, Balazs Andor
* Pandi, Krisztian
void Definitions::generate_code(CodeGenHelper& cgh) {
// FIXME: implement
- for(size_t i = 0; i < ass_v.size(); i++) ass_v[i]->generate_code(cgh);
+ for(size_t i = 0; i < ass_v.size(); i++) {
+ ass_v[i]->generate_code(cgh);
+ CodeGenHelper::update_intervals(cgh.get_current_outputstruct());
+ }
}
char* Definitions::generate_code_str(char *str)
}
if (erroneous_attrs && erroneous_attrs->get_err_descr()) {
function_body = erroneous_attrs->get_err_descr()->
- generate_code_str(function_body, string("ret_val"));
+ generate_code_str(function_body, target->header.global_vars, string("ret_val"), true);
}
function_body = body->generate_code_init(function_body, "ret_val");
if (template_restriction!=TR_NONE && gen_restriction_check)
* Feher, Csaba
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
* Zalanyi, Balazs Andor
*
#include "../map.hh"
#include "../CompilerError.hh"
#include "../Type.hh"
+#include "../main.hh"
#include "TtcnTemplate.hh"
namespace Ttcn {
return "";
}
- char* ErroneousAttributeSpec::generate_code_str(char *str, string genname)
+ char* ErroneousAttributeSpec::generate_code_str(char *str, char *& def, string genname, const bool embedded)
{
if (get_is_omit()) return str;
if (!type) FATAL_ERROR("ErroneousAttributeSpec::generate_code_str()");
if (!value) FATAL_ERROR("ErroneousAttributeSpec::generate_code_str()");
if (first_genname.empty()) { // this is the first use
- str = mputprintf(str, "static %s %s;\n",
+ str = mputprintf(str, "%s%s %s;\n", split_to_slices && !embedded ? "" : "static ",
type->get_genname_value(value->get_my_scope()).c_str(), genname.c_str());
first_genname = genname;
+ if (split_to_slices && !embedded) {
+ def = mputprintf(def, "extern %s %s;\n",
+ type->get_genname_value(value->get_my_scope()).c_str(), genname.c_str());
+ }
} else {
- str = mputprintf(str, "static %s& %s = %s;\n",
+ str = mputprintf(str, "%s%s& %s = %s;\n", split_to_slices && !embedded ? "" : "static ",
type->get_genname_value(value->get_my_scope()).c_str(),
genname.c_str(), first_genname.c_str());
}
// ==== ErroneousValues ====
- char* ErroneousValues::generate_code_embedded_str(char *str, string genname)
+ char* ErroneousValues::generate_code_embedded_str(char *str, char *& def, string genname, const bool embedded)
{
- if (before) str = generate_code_embedded_str(str, genname+"_before", before);
- if (value) str = generate_code_embedded_str(str, genname+"_value", value);
- if (after) str = generate_code_embedded_str(str, genname+"_after", after);
+ if (before) str = generate_code_embedded_str(str, def, genname+"_before", before, embedded);
+ if (value) str = generate_code_embedded_str(str, def, genname+"_value", value, embedded);
+ if (after) str = generate_code_embedded_str(str, def, genname+"_after", after, embedded);
return str;
}
- char* ErroneousValues::generate_code_embedded_str(char *str, string genname, ErroneousAttributeSpec* attr_spec)
+ char* ErroneousValues::generate_code_embedded_str(char *str, char *& def, string genname, ErroneousAttributeSpec* attr_spec, const bool embedded)
{
- str = attr_spec->generate_code_str(str, genname+"_errval");
- str = mputprintf(str, "static Erroneous_value_t %s = { %s, %s, %s };\n", genname.c_str(),
+ str = attr_spec->generate_code_str(str, def, genname+"_errval", embedded);
+ str = mputprintf(str, "%sErroneous_value_t %s = { %s, %s, %s };\n", split_to_slices && !embedded ? "" : "static ", genname.c_str(),
attr_spec->get_is_raw() ? "true" : "false",
attr_spec->get_is_omit() ? "NULL" : ("&"+genname+"_errval").c_str(),
attr_spec->get_typedescriptor_str().c_str());
+ if (split_to_slices && !embedded) {
+ def = mputprintf(def, "extern Erroneous_value_t %s;\n", genname.c_str());
+ }
return str;
}
// ==== ErroneousDescriptor ====
- char* ErroneousDescriptor::generate_code_embedded_str(char *str, string genname)
+ char* ErroneousDescriptor::generate_code_embedded_str(char *str, char *& def, string genname, const bool embedded)
{
// values
for (size_t i=0; i<values_m.size(); i++) {
- str = values_m.get_nth_elem(i)->generate_code_embedded_str(str, genname+"_v"+Int2string((int)values_m.get_nth_key(i)));
+ str = values_m.get_nth_elem(i)->generate_code_embedded_str(str, def, genname+"_v"+Int2string((int)values_m.get_nth_key(i)), embedded);
}
// embedded descriptors
for (size_t i=0; i<descr_m.size(); i++) {
- str = descr_m.get_nth_elem(i)->generate_code_embedded_str(str, genname+"_d"+Int2string((int)descr_m.get_nth_key(i)));
+ str = descr_m.get_nth_elem(i)->generate_code_embedded_str(str, def, genname+"_d"+Int2string((int)descr_m.get_nth_key(i)), embedded);
}
// values vector
if (values_m.size()>0) {
- str = mputprintf(str, "static Erroneous_values_t %s_valsvec[%d] = { ", genname.c_str(), (int)values_m.size());
+ str = mputprintf(str, "%sErroneous_values_t %s_valsvec[%d] = { ", split_to_slices && !embedded ? "" : "static ", genname.c_str(), (int)values_m.size());
for (size_t i=0; i<values_m.size(); i++) {
if (i>0) str = mputstr(str, ", ");
int key_i = (int)values_m.get_nth_key(i);
str = values_m.get_nth_elem(i)->generate_code_struct_str(str, genname+"_v"+Int2string(key_i), key_i);
}
str = mputstr(str, " };\n");
+ if (split_to_slices && !embedded) {
+ def = mputprintf(def, "extern Erroneous_values_t %s_valsvec[%d];\n", genname.c_str(), (int)values_m.size());
+ }
}
// embedded descriptor vector
if (descr_m.size()>0) {
- str = mputprintf(str, "static Erroneous_descriptor_t %s_embvec[%d] = { ", genname.c_str(), (int)descr_m.size());
+ str = mputprintf(str, "%sErroneous_descriptor_t %s_embvec[%d] = { ", split_to_slices && !embedded ? "" : "static ", genname.c_str(), (int)descr_m.size());
for (size_t i=0; i<descr_m.size(); i++) {
if (i>0) str = mputstr(str, ", ");
int key_i = (int)descr_m.get_nth_key(i);
- str = descr_m.get_nth_elem(i)->generate_code_struct_str(str, genname+"_d"+Int2string(key_i), key_i);
+ str = descr_m.get_nth_elem(i)->generate_code_struct_str(str, def, genname+"_d"+Int2string(key_i), key_i);
}
str = mputstr(str, " };\n");
+ if (split_to_slices && !embedded) {
+ def = mputprintf(def, "extern Erroneous_descriptor_t %s_embvec[%d];\n", genname.c_str(), (int)descr_m.size());
+ }
}
return str;
}
return str;
}
- char* ErroneousDescriptor::generate_code_struct_str(char *str, string genname, int field_index)
+ char* ErroneousDescriptor::generate_code_struct_str(char *str, char *& def, string genname, int field_index)
{
string genname_values_vec = genname + "_valsvec";
string genname_embedded_vec = genname + "_embvec";
for (size_t i=0; i<values_m.size(); i++) {
values_m.get_nth_elem(i)->chk_recursions(refch);
}
+
for (size_t i=0; i<descr_m.size(); i++) {
descr_m.get_nth_elem(i)->chk_recursions(refch);
}
}
- char* ErroneousDescriptor::generate_code_str(char *str, string genname)
+ char* ErroneousDescriptor::generate_code_str(char *str, char *& def, string genname, const bool embedded)
{
genname += "_err_descr";
- str = generate_code_embedded_str(str, genname);
- str = mputprintf(str, "static Erroneous_descriptor_t %s = ", genname.c_str());
- str = generate_code_struct_str(str, genname, -1);
+ str = generate_code_embedded_str(str, def, genname, embedded);
+ str = mputprintf(str, "%sErroneous_descriptor_t %s = ", split_to_slices && !embedded ? "" : "static ", genname.c_str());
+ str = generate_code_struct_str(str, def, genname, -1);
str = mputstr(str, ";\n");
+ if (split_to_slices && !embedded) {
+ def = mputprintf(def, "extern Erroneous_descriptor_t %s;\n", genname.c_str());
+ }
return str;
}
* Delic, Adam
* Raduly, Csaba
* Szabados, Kristof
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
* Zalanyi, Balazs Andor
*
bool get_is_raw() const { return is_raw; }
bool get_is_omit() const;
static const char* get_indicator_str(indicator_t i);
- char* generate_code_str(char *str, string genname);
+ char* generate_code_str(char *str, char *& def, string genname, const bool embedded);
char* generate_code_init_str(char *str, string genname);
string get_typedescriptor_str();
void chk_recursions(ReferenceChain& refch);
ErroneousAttributeSpec *before, *value, *after; // NULL if not specified
string field_name; // qualifier string
ErroneousValues(const string& p_field_name): before(0), value(0), after(0), field_name(p_field_name) {}
- char* generate_code_embedded_str(char *str, string genname);
+ char* generate_code_embedded_str(char *str, char *& def, string genname, const bool embedded);
char* generate_code_init_str(char *str, string genname);
- char* generate_code_embedded_str(char *str, string genname, ErroneousAttributeSpec* attr_spec);
+ char* generate_code_embedded_str(char *str, char *& def, string genname, ErroneousAttributeSpec* attr_spec, const bool embedded);
char* generate_code_struct_str(char *str, string genname, int field_index);
void chk_recursions(ReferenceChain& refch);
};
public:
ErroneousDescriptor(): omit_before(-1), omit_after(-1) {}
~ErroneousDescriptor();
- char* generate_code_embedded_str(char *str, string genname);
+ char* generate_code_embedded_str(char *str, char *& def, string genname, const bool embedded);
char* generate_code_init_str(char *str, string genname);
- char* generate_code_struct_str(char *str, string genname, int field_index);
- char* generate_code_str(char *str, string genname);
+ char* generate_code_struct_str(char *str, char *& def, string genname, int field_index);
+ char* generate_code_str(char *str, char *& def, string genname, const bool embedded);
void chk_recursions(ReferenceChain& refch);
};
* Kovacs, Ferenc
* Kremer, Peter
* Raduly, Csaba
+ * Szabo, Bence Janos
* Szabo, Janos Zoltan – initial implementation
* Tatarka, Gabor
* Zalanyi, Balazs Andor
char *start; /**< Code for start_ptc_function() */
char *control; /**< Code for module_control_part() */
} functions;
+ struct {
+ size_t pre_things_size; // Size of string_literals + global_vars
+ size_t *methods;
+ size_t methods_max_size;
+ size_t methods_size;
+ size_t *function_bodies;
+ size_t function_bodies_max_size;
+ size_t function_bodies_size;
+ size_t *static_function_bodies;
+ size_t static_function_bodies_max_size;
+ size_t static_function_bodies_size;
+ size_t *static_conversion_function_bodies;
+ size_t static_conversion_function_bodies_size;
+ size_t static_conversion_function_bodies_max_size;
+ } intervals;
} output_struct;
typedef struct expression_struct_t {
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
then
if $GREP -q "extern const INTEGER& my__Integer__Value" ./Test284.hh
then
- if $GREP -q "const_my__Integer__Value = 9;" ./Test284.cc
+ if $GREP -q "const_my__Integer__Value = 9;" ./*.cc
then Verdict="pass"
else Verdict="fail 4"
fi
# Kovacs, Ferenc
# Kulcsar, Endre
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Kulcsar, Endre
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
all: $(GENERATED_SOURCES)
# Koppany, Csaba
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = MyPort1.cc MyPort2.cc
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(ASN1_MODULES:.asn=.hh) $(TTCN3_MODULES:.ttcn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = MyPort1.cc MyPort2.cc
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
all: $(SINGLE_TARGET) $(PARALLEL_TARGET)
-$(SINGLE_TARGET): $(OBJECTS)
- $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -lttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX) -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
+$(SINGLE_TARGET): $(GENERATED_SOURCES)
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(GENERATED_SOURCES) -L$(TTCN3_DIR)/lib -lttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX) -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
-$(PARALLEL_TARGET): $(OBJECTS)
- $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -lttcn3$(RT2_SUFFIX)-parallel$(DYNAMIC_SUFFIX) -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
-
-.cc.o:
- $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
+$(PARALLEL_TARGET): $(GENERATED_SOURCES)
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(GENERATED_SOURCES) -L$(TTCN3_DIR)/lib -lttcn3$(RT2_SUFFIX)-parallel$(DYNAMIC_SUFFIX) -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
.ttcn.cc .ttcn.hh:
$(TTCN3_COMPILER) $<
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Ormandi, Matyas
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
#
#RT2 := true
# Use code splitting when running the tests
+# DO NOT enable both CODE_SPLIT and SPLIT_TO_SLICES
#CODE_SPLIT := true
+# Use code splitting into slices when running the tests
+#SPLIT_TO_SLICES := 30
ifdef RT2
# add command line option to generate code for alternative runtime
SPLIT_FLAG = -Utype
# No space between -U and type !
TTCN3_COMPILER += $(SPLIT_FLAG)
+export SPLIT_FLAG
+else ifdef SPLIT_TO_SLICES
+SPLIT_FLAG := -U$(SPLIT_TO_SLICES)
+TTCN3_COMPILER += $(SPLIT_FLAG)
+SPLIT_TO_SLICES := $(shell echo $(SPLIT_TO_SLICES) - 1 | bc)
+SPLIT_TO_SLICES := $(shell seq 1 ${SPLIT_TO_SLICES})
+export SPLIT_FLAG
endif
# Your platform. Allowed values: SOLARIS, SOLARIS8, LINUX, FREEBSD, WIN32
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
# Szalai, Gabor
#
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
#
# Contributors:
# Botond Baranyi – initial implementation
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR = ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
#
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
USER_HEADERS = $(USER_SOURCES:.cc=.hh)
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR = ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Ormandi, Matyas
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR = ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR = ../..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Balasko, Jeno
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
#only works with RT2
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES = ReadXmlImpl.cc
# Baranyi, Botond
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = PIPEasp_PT.cc
# Kovacs, Ferenc
# Pandi, Krisztian
# Raduly, Csaba
+# Szabo, Bence Janos
#
###############################################################################
} unless $prj_dir =~ s!/[^/]+$!/!;
# Pick up parameters from the environment
-my $split = defined $ENV{CODE_SPLIT} ? '-Utype' : '';
+my $split = defined $ENV{SPLIT_FLAG} ? $ENV{SPLIT_FLAG} : '';
my $rt2 = defined $ENV{RT2} ? '-R' : '';
my %files;
#
# Contributors:
# Balasko, Jeno
+# Szabo, Bence Janos
#
###############################################################################
} unless $prj_dir =~ s!/[^/]+$!/!;
# Pick up parameters from the environment
-my $split = defined $ENV{CODE_SPLIT} ? '-Utype' : '';
+my $split = defined $ENV{SPLIT_FLAG} ? $ENV{SPLIT_FLAG} : '';
my $rt2 = defined $ENV{RT2} ? '-R' : '';
my %files;
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Delic, Adam
# Gecse, Roland
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
# This Makefile was generated by the compiler
GENERATED_HEADERS = Fibonacci.hh
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Delic, Adam
# Gecse, Roland
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
# This Makefile was generated by the compiler
GENERATED_HEADERS = chinese.hh
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Delic, Adam
# Gecse, Roland
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../
GENERATED_HEADERS = comptest.hh
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Delic, Adam
# Gecse, Roland
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
# This Makefile was generated by the compiler
GENERATED_HEADERS = testerlanc.hh
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Balasko, Jeno
# Baranyi, Botond
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES = f_ext.cc
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
# Contributors:
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) ASN_Definitions.hh
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Beres, Szabolcs
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../
$(DIR_SINGLE):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
$(DIR_PARALLEL):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Beres, Szabolcs
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../
$(DIR_SINGLE):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
$(DIR_PARALLEL):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Beres, Szabolcs
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../
dir_single_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
dir_parallel_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Beres, Szabolcs
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../
dir_single_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
dir_parallel_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../
dir_single_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
dir_parallel_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Contributors:
# Balasko, Jeno
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../
dir_single_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
dir_parallel_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
run: clean run_single run_parallel
# Balasko, Jeno
# Baranyi, Botond
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../
dir_single_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
dir_parallel_mode:
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
# Tatarka, Gabor
#
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
GENERATED_SOURCES += CompileOnlyPort.cc CompileOnlyPortAddress.cc
GENERATED_HEADERS += CompileOnlyPort.hh CompileOnlyPortAddress.hh
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Forstner, Matyas
# Kovacs, Ferenc
+# Szabo, Bence Janos
# Raduly, Csaba
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = external.cc
vpath $(USER_SOURCES) $(ABS_SRC)
+
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
#!/usr/bin/make -f
ifdef CODE_SPLIT
GOOD_CC := $(foreach file, $(GOOD_CC:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GOOD_CC:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GOOD_CC += $(GENERATED_SOURCES2)
endif
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
GENERATED_SOURCES += PT1.cc PT3.cc
GENERATED_HEADERS += PT1.hh PT3.hh
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
GENERATED_SOURCES += $(TESTPORT_SOURCES)
GENERATED_HEADERS += $(TESTPORT_SOURCES:.cc=.hh)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS := $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES := configOper_port2.cc
USER_HEADERS := $(USER_SOURCES:.cc=.hh)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o) $(USER_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
USER_HEADERS = $(USER_SOURCES:.cc=.hh)
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# C/C++ Source & header files of Test Ports, external functions and
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Balasko, Jeno
# Baranyi, Botond
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = PCOType.cc
USER_HEADERS = $(USER_SOURCES:.cc=.hh)
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
USER_HEADERS = $(USER_SOURCES:.cc=.hh)
#
# Contributors:
# Balasko, Jeno
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Contributors:
# Balasko, Jeno
# Lovassy, Arpad
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../
$(DIR_SINGLE):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s -e $(RUNNABLE) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s -e $(RUNNABLE) ./* && $(MAKE_PROG)
$(DIR_PARALLEL):
mkdir $@
cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -e $(RUNNABLE) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -e $(RUNNABLE) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG) && grep "Overall verdict: pass" *.log
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+COMPILER_FLAGS += $(SPLIT_FLAG)
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES := $(ABS_SRC)/extfunc.cc
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES := $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS := $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES :=
+++ /dev/null
-../../core/TitanLoggerControl.ttcn
\ No newline at end of file
# Contributors:
# Balasko, Jeno
# Delic, Adam
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Czerman, Oliver
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
ifeq "$(MAKELEVEL)" "0"
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = PCOType.cc
USER_HEADERS = $(USER_SOURCES:.cc=.hh)
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o) $(USER_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Delic, Adam
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Szabados, Kristof
#
##############################################################################
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
# Source & header files of Test Ports and your other modules:
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
# Zalanyi, Balazs Andor
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Dimitrov, Peter
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS := $(notdir $(TTCN3_MODULES:.ttcn=.hh))
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+COMPILER_FLAGS += $(SPLIT_FLAG)
endif
# Source & header files of Test Ports and your other modules:
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = PIPEasp_PT.cc
PROF_GENERATED_SOURCES = $(PROF_MODULES:.ttcn=.cc)
PROF_GENERATED_HEADERS = $(PROF_GENERATED_SOURCES:.cc=.hh)
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+PROF_GENERATED_SOURCES2 := $(foreach file, $(PROF_GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+PROF_GENERATED_SOURCES += $(PROF_GENERATED_SOURCES2)
+endif
PROF_OBJECTS = $(PROF_GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Balasko, Jeno
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES = PT1.cc UNDER.cc
# Contributors:
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
#
# Contributors:
# Baranyi, Botond – initial implementation
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
#
# Contributors:
# Botond, Baranyi – initial implementation
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Balasko, Jeno
# Baranyi, Botond
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
$(DIR_SINGLE):
mkdir $@
cd $@ && for file in $(SINGLE_FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -sM -e $(RUNNABLE) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -sM -e $(RUNNABLE) ./* && $(MAKE_PROG)
$(DIR_PARALLEL):
mkdir $@
cd $@ && for file in $(PARALLEL_FILES); do ln -s ../$$file || exit; done
- cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -M -e $(RUNNABLE) ./* && $(MAKE_PROG)
+ cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -M -e $(RUNNABLE) ./* && $(MAKE_PROG)
run: $(GENERATED_DIRS)
cd $(DIR_SINGLE) && ./$(RUNNABLE) $(SINGLE_CFG) && grep "Overall verdict: pass" *.log
# Baji, Laszlo
# Balasko, Jeno
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
# this project:
GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
-
+ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
+endif
# C/C++ Source & header files of Test Ports, external functions and
# other modules:
USER_SOURCES =
#
# Contributors:
# Balasko, Jeno
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = external_function.cc PCOType.cc
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = PIPEasp_PT.cc f_ext_import_schema.cc
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) $(ASN1_MODULES:.asn=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES = external.cc
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
USER_SOURCES =
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
+# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)
# Czerman, Oliver
# Kovacs, Ferenc
# Raduly, Csaba
+# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ..
GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
ifdef CODE_SPLIT
GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
+else ifdef SPLIT_TO_SLICES
+POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
+POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
+GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
+GENERATED_SOURCES += $(GENERATED_SOURCES2)
endif
OBJECTS = $(GENERATED_SOURCES:.cc=.o)