X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fftacmp%2Ftranslate_fta.cc;h=97aa38aa85c98b9ff22a00ed67951c016761ec11;hb=f1754ecea2eab7bd0a302042ac82eb11667b166c;hp=31c552ffd97ebbd89c43352dad8496959c5dbcb1;hpb=8b04ba410b46bc4853dfda7095d2a2229b609003;p=com%2Fgs-lite.git diff --git a/src/ftacmp/translate_fta.cc b/src/ftacmp/translate_fta.cc index 31c552f..97aa38a 100644 --- a/src/ftacmp/translate_fta.cc +++ b/src/ftacmp/translate_fta.cc @@ -55,6 +55,8 @@ Copyright 2014 AT&T Intellectual Property #include"xml_t.h" #include"field_list.h" +#include "gsconfig.h" + extern int xmlParserparse(void); extern FILE *xmlParserin; extern int xmlParserdebug; @@ -3082,19 +3084,34 @@ void generate_makefile(vector &input_file_names, int nfiles, vector ift = ifdb->get_iface_vals(ifmachines[ifnm],ifnm, "InterfaceType", erri, err_str); for(int ift_i=0;ift_iget_iface_vals(ifmachines[ifnm],ifnm, "BSA", erri, err_str); for(int ift_i=0;ift_iget_iface_vals(ifmachines[ifnm],ifnm, "KAFKA", erri, err_str); for(int ift_i=0;ift_i &input_file_names, int nfiles, fprintf(outfl," -last "); if(use_pads) fprintf(outfl, " -ldll -ldl "); - if(use_proto) - fprintf(outfl, " -L/usr/local/lib/ -lprotobuf-c "); - if(use_bsa) - fprintf(outfl, " -lbsa_stream "); - if(use_kafka) - fprintf(outfl, " -lrdkafka "); + +#ifdef PROTO_ENABLED + fprintf(outfl, " -L/usr/local/lib/ -lprotobuf-c "); +#endif +#ifdef BSA_ENABLED + fprintf(outfl, " -lbsa_stream "); +#endif +#ifdef KAFKA_ENABLED + fprintf(outfl, " -lrdkafka "); +#endif fprintf(outfl," -lgscpaux"); #ifdef GCOV fprintf(outfl," -fprofile-arcs");