Commit c1c34db1 authored by Claes Sjofors's avatar Claes Sjofors

Build dependecies for exe and class h, hpp, html, xtthelp-files. pwre modifications

parent 178fdc3a
...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_gif)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_gif) $(export_html) copy : $(export_gif) $(export_html) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gif) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -77,21 +77,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -77,21 +77,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_png) $(clean_gif) $(clean_png)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_gif) $(export_png) $(export_html) copy : $(export_gif) $(export_png) $(export_html) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gif) $(clean_png) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_png) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -139,12 +139,17 @@ dirs : $(app_res_dir)$(dir_ext) \ ...@@ -139,12 +139,17 @@ dirs : $(app_res_dir)$(dir_ext) \
$(app_res_dir)/menu$(dir_ext) \ $(app_res_dir)/menu$(dir_ext) \
$(app_res_dir)/values$(dir_ext) \ $(app_res_dir)/values$(dir_ext) \
$(app_res_dir)/values-v11$(dir_ext) \ $(app_res_dir)/values-v11$(dir_ext) \
$(app_res_dir)/values-v14$(dir_ext) $(app_res_dir)/values-v14$(dir_ext) \
| silent
copy: $(res_drawable_objects) $(res_drawable_hdpi_objects) $(res_drawable_ldpi_objects) \ copy: $(res_drawable_objects) $(res_drawable_hdpi_objects) $(res_drawable_ldpi_objects) \
$(res_drawable_mdpi_objects) $(res_drawable_xhdpi_objects) $(res_layout_objects) \ $(res_drawable_mdpi_objects) $(res_drawable_xhdpi_objects) $(res_layout_objects) \
$(res_menu_objects) $(res_values_objects) $(res_values_v11_objects) \ $(res_menu_objects) $(res_values_objects) $(res_values_v11_objects) \
$(res_values_v14_objects) $(res_values_v14_objects) \
| silent
silent :
@ :
$(app_res_dir)$(dir_ext) : $(app_res_dir)$(dir_ext) :
@ echo "Create directory " $(app_res_dir)$(dir_ext) @ echo "Create directory " $(app_res_dir)$(dir_ext)
......
...@@ -51,9 +51,12 @@ endif ...@@ -51,9 +51,12 @@ endif
local_objects := \ local_objects := \
$(app_package_dir)/$(comp_name)/Gdh.java $(app_package_dir)/$(comp_name)/Gdh.java
copy: $(objects) $(local_objects) copy: $(objects) $(local_objects) | silent
dirs : $(app_package_dir)/$(comp_name)$(dir_ext) dirs : $(app_package_dir)/$(comp_name)$(dir_ext) | silent
silent :
@ :
$(app_package_dir)/$(comp_name)$(dir_ext) : $(app_package_dir)/$(comp_name)$(dir_ext) :
@ echo "Create directory " $(app_package_dir)/$(comp_name)$(dir_ext) @ echo "Create directory " $(app_package_dir)/$(comp_name)$(dir_ext)
......
ifndef link_rule_mk ifndef link_rule_mk
link_rule_mk := 1 link_rule_mk := 1
exe_ext = .so
pre_so = lib
link = $(ldxx) -shared -DHW_X86 -DOS_LINUX \ link = $(ldxx) -shared -DHW_X86 -DOS_LINUX \
-L${pwr_elib} \ -L${pwr_elib} \
......
...@@ -27,23 +27,28 @@ endif ...@@ -27,23 +27,28 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : $(inc_dir)/pwr_nmpsclasses.h \ copy : $(inc_dir)/pwr_nmpsclasses.h \
$(inc_dir)/pwr_nmpsclasses.hpp $(inc_dir)/pwr_nmpsclasses.hpp \
| silent
lib : $(load_dir)/nmps.dbs lib : $(load_dir)/nmps.dbs | silent
exe : $(doc_dir)/en_us/orm/nmps_allclasses.html \ exe : $(doc_dir)/en_us/orm/nmps_allclasses.html \
$(exe_dir)/en_us/nmps_xtthelp.dat \ $(exe_dir)/en_us/nmps_xtthelp.dat \
$(exe_dir)/sv_se/nmps_xtthelp.dat $(exe_dir)/sv_se/nmps_xtthelp.dat \
| silent
clean : clean :
realclean : clean $(clean_wbl) realclean : clean $(clean_wbl)
silent :
@ :
$(load_dir)/nmps.dbs : $(load_dir)/nmps.dbs :
@ echo "Generating loadfile for nmps" @ echo "Generating loadfile for nmps"
@ export pwr_load=$(pwr_eload);\ @ export pwr_load=$(pwr_eload);\
...@@ -52,15 +57,15 @@ $(load_dir)/nmps.dbs : ...@@ -52,15 +57,15 @@ $(load_dir)/nmps.dbs :
$(inc_dir)/pwr_nmpsclasses.h : $(inc_dir)/pwr_nmpsclasses.h :
@ echo "Generating struct files for nmps classes..." @ echo "Generating struct files for nmps classes..."
@ $(co_convert) -so -d $(inc_dir) "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(release_root)/bld/$(type_name)/nmps.d_h_wbl "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load"
$(inc_dir)/pwr_nmpsclasses.hpp : $(inc_dir)/pwr_nmpsclasses.hpp :
@ echo "Generating hpp files for nmps classes..." @ echo "Generating hpp files for nmps classes..."
@ $(co_convert) -po -d $(inc_dir) "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(release_root)/bld/$(type_name)/nmps.d_hpp_wbl "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load"
$(doc_dir)/en_us/orm/nmps_allclasses.html : $(doc_dir)/en_us/orm/nmps_allclasses.html :
@ echo "Generating html files for nmps classes en_us..." @ echo "Generating html files for nmps classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/nmps/src/cnv_setup.dat "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(release_root)/bld/$(type_name)/nmps.d_html_wbl -g $(pwre_sroot)/wbl/nmps/src/cnv_setup.dat "$(pwre_sroot)/wbl/nmps/src/nmps_*.wb_load"
@ echo "Generating html files for nmps structs en_us..." @ echo "Generating html files for nmps structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_nmpsclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_nmpsclasses.h
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_nmpsclasses.hpp @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_nmpsclasses.hpp
...@@ -81,17 +86,22 @@ $(doc_dir)/en_us/orm/nmps_allclasses.html : ...@@ -81,17 +86,22 @@ $(doc_dir)/en_us/orm/nmps_allclasses.html :
$(exe_dir)/en_us/nmps_xtthelp.dat : $(exe_dir)/en_us/nmps_xtthelp.dat :
@ echo "Generating xtt help files for nmps classes en_us" @ echo "Generating xtt help files for nmps classes en_us"
@ $(co_convert) -x -d $(exe_dir)/en_us "$(pwre_sroot)/wbl/nmps/src/nmps_c_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(release_root)/bld/$(type_name)/nmps.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/nmps/src/nmps_c_*.wb_load"
$(exe_dir)/sv_se/nmps_xtthelp.dat : $(exe_dir)/sv_se/nmps_xtthelp.dat :
@ echo "Generating xtt help files for nmps classes sv_se" @ echo "Generating xtt help files for nmps classes sv_se"
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(pwre_sroot)/wbl/nmps/src/nmps_c_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(release_root)/bld/$(type_name)/nmps.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/nmps/src/nmps_c_*.wb_load"
clean_wbl : clean_wbl :
@ if [ -e $(load_dir)/nmps.dbs ]; then \ @ if [ -e $(load_dir)/nmps.dbs ]; then \
$(rm) $(rmflags) $(load_dir)/nmps.dbs; \ $(rm) $(rmflags) $(load_dir)/nmps.dbs; \
fi fi
-include $(release_root)/bld/$(type_name)/nmps.d_h_wbl
-include $(release_root)/bld/$(type_name)/nmps.d_hpp_wbl
-include $(release_root)/bld/$(type_name)/nmps.d_html_wbl
-include $(release_root)/bld/$(type_name)/nmps.d_en_us_xtthelp_wbl
-include $(release_root)/bld/$(type_name)/nmps.d_sv_se_xtthelp_wbl
......
...@@ -77,21 +77,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -77,21 +77,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_png) $(clean_gif) $(clean_png)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_gif) $(export_png) $(export_html) copy : $(export_gif) $(export_png) $(export_html) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gif) $(clean_png) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_png) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -46,20 +46,23 @@ clean_pwr_com := $(patsubst %.pwr_com, clean_%.pwr_com, $(pwr_com_sources)) ...@@ -46,20 +46,23 @@ clean_pwr_com := $(patsubst %.pwr_com, clean_%.pwr_com, $(pwr_com_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_sh) $(clean_sh)
all : init copy all : init copy | silent
init : init : silent
copy : $(export_sh) $(export_pwr_com) copy : $(export_sh) $(export_pwr_com) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_sh) $(clean_pwr_com) realclean : clean $(clean_sh) $(clean_pwr_com)
silent :
@ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -19,20 +19,23 @@ endif ...@@ -19,20 +19,23 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_c) $(clean_c)
all : init copy lib all : init copy lib | silent
init : init : silent
copy : $(inc_dir)/libusbio.h $(inc_dir)/openSocket.h $(inc_dir)/setport.h $(inc_dir)/pwr_arduino_uno.ino copy : $(inc_dir)/libusbio.h $(inc_dir)/openSocket.h $(inc_dir)/setport.h $(inc_dir)/pwr_arduino_uno.ino | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_obj) realclean : clean $(clean_obj)
silent :
@ :
.SUFFIXES: .SUFFIXES:
#$(lib_dir)/libusbio.a : ../libusbio.a #$(lib_dir)/libusbio.a : ../libusbio.a
......
...@@ -34,20 +34,23 @@ clean_xdd := $(patsubst %.xdd, clean_%.xdd, $(xdd_sources)) ...@@ -34,20 +34,23 @@ clean_xdd := $(patsubst %.xdd, clean_%.xdd, $(xdd_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_xdd) $(clean_xdd)
all : init copy all : init copy | silent
init : init : silent
copy : $(export_xdd) copy : $(export_xdd) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_xdd) realclean : clean $(clean_xdd)
silent :
@ :
$(export_xdd) : $(exe_dir)/%.xdd : %.xdd $(export_xdd) : $(exe_dir)/%.xdd : %.xdd
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -88,22 +88,26 @@ $(doc_dir)/sv_se/dsh/%.html : $(pwre_sroot)/doc/dsh/sv_se/%.html ...@@ -88,22 +88,26 @@ $(doc_dir)/sv_se/dsh/%.html : $(pwre_sroot)/doc/dsh/sv_se/%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_pdf) $(clean_pdf)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_pdf_en_us) $(export_html_en_us) \ copy : $(export_pdf_en_us) $(export_html_en_us) \
$(export_pdf_sv_se) $(export_html_sv_se) $(export_pdf_sv_se) $(export_html_sv_se) \
| silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_pdf) $(clean_html) realclean : clean $(clean_pdf) $(clean_html)
silent :
@ :
$(clean_pdf) : clean_%.pdf : %.pdf $(clean_pdf) : clean_%.pdf : %.pdf
@ $(rm) $(rmflags) $(doc_dir)/$*.pdf @ $(rm) $(rmflags) $(doc_dir)/$*.pdf
......
...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_gif)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_gif) $(export_html) copy : $(export_gif) $(export_html) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gif) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -58,20 +58,23 @@ clean_xml := $(patsubst %.xml, clean_%.xml, $(xml_sources)) ...@@ -58,20 +58,23 @@ clean_xml := $(patsubst %.xml, clean_%.xml, $(xml_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_gsd) $(clean_gse) $(clean_xml) $(clean_gsd) $(clean_gse) $(clean_xml)
all : init copy all : init copy | silent
init : init : silent
copy : $(export_gsd) $(export_gse) $(export_xml) copy : $(export_gsd) $(export_gse) $(export_xml) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gsd) $(clean_gse) $(clean_xml) realclean : clean $(clean_gsd) $(clean_gse) $(clean_xml)
silent :
@ :
$(export_gsd) : $(exe_dir)/%.gsd : %.gsd $(export_gsd) : $(exe_dir)/%.gsd : %.gsd
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -63,20 +63,23 @@ export_wav := $(patsubst %.wav,$(exe_dir)/%.wav,$(wav_sources)) ...@@ -63,20 +63,23 @@ export_wav := $(patsubst %.wav,$(exe_dir)/%.wav,$(wav_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_c) $(clean_c)
all : init copy lib all : init copy lib | silent
init : init : silent
copy : $(exe_dir)/profibus_xtthelp.dat $(export_gif) $(export_gifdoc) $(export_wav) copy : $(exe_dir)/profibus_xtthelp.dat $(export_gif) $(export_gifdoc) $(export_wav) | silent
lib : $(export_obj) lib : $(export_obj) | silent
exe : exe : | silent
clean : clean :
realclean : clean $(clean_obj) realclean : clean $(clean_obj)
silent :
@ :
.SUFFIXES: .SUFFIXES:
$(exe_dir)/%.wav : ../../%.wav $(exe_dir)/%.wav : ../../%.wav
......
...@@ -19,20 +19,23 @@ endif ...@@ -19,20 +19,23 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_c) $(clean_c)
all : init copy lib all : init copy lib | silent
init : init : silent
copy : $(exe_dir)/pb_module_classes.dat $(exe_dir)/pn_module_classes.dat copy : $(exe_dir)/pb_module_classes.dat $(exe_dir)/pn_module_classes.dat | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_obj) realclean : clean $(clean_obj)
silent :
@ :
.SUFFIXES: .SUFFIXES:
$(exe_dir)/pb_module_classes.dat : ../../pb_module_classes.dat $(exe_dir)/pb_module_classes.dat : ../../pb_module_classes.dat
......
...@@ -491,19 +491,17 @@ static pwr_tStatus logg_print( logg_ctx loggctx, ...@@ -491,19 +491,17 @@ static pwr_tStatus logg_print( logg_ctx loggctx,
conflist_ptr->outfile); conflist_ptr->outfile);
if (csts == 0) if (csts == 0)
*/ */
if ( conflist_ptr->outfile) {
csts = fprintf( conflist_ptr->outfile, "%s\n", msg); csts = fprintf( conflist_ptr->outfile, "%s\n", msg);
if ( csts < 0) if ( csts < 0) {
{
/* File error, close file and try to open it later */ /* File error, close file and try to open it later */
errh_CErrLog( REM__LOGGWRITE, NULL); errh_CErrLog( REM__LOGGWRITE, NULL);
fclose( conflist_ptr->outfile); fclose( conflist_ptr->outfile);
conflist_ptr->file_open = 0; conflist_ptr->file_open = 0;
} }
else else {
{
csts = fflush( conflist_ptr->outfile); csts = fflush( conflist_ptr->outfile);
if ( csts != 0) if ( csts != 0) {
{
/* File error, close file and try to open it later */ /* File error, close file and try to open it later */
errh_CErrLog( REM__LOGGWRITE, NULL); errh_CErrLog( REM__LOGGWRITE, NULL);
fclose( conflist_ptr->outfile); fclose( conflist_ptr->outfile);
...@@ -512,7 +510,7 @@ static pwr_tStatus logg_print( logg_ctx loggctx, ...@@ -512,7 +510,7 @@ static pwr_tStatus logg_print( logg_ctx loggctx,
else else
conflist_ptr->loggconf->LoggCount++; conflist_ptr->loggconf->LoggCount++;
} }
}
return REM__SUCCESS; return REM__SUCCESS;
} }
...@@ -713,6 +711,7 @@ int main() ...@@ -713,6 +711,7 @@ int main()
conflist_ptr->loggconf->NewVersion = 0; conflist_ptr->loggconf->NewVersion = 0;
if ( conflist_ptr->file_open) if ( conflist_ptr->file_open)
{ {
if ( conflist_ptr->outfile)
fclose( conflist_ptr->outfile); fclose( conflist_ptr->outfile);
conflist_ptr->file_open = 0; conflist_ptr->file_open = 0;
sts = logg_open_file( conflist_ptr, 1); sts = logg_open_file( conflist_ptr, 1);
......
...@@ -7,6 +7,7 @@ ifeq ($(PWRE_CONF_WMQ),1) ...@@ -7,6 +7,7 @@ ifeq ($(PWRE_CONF_WMQ),1)
$(pwre_conf_libdir) $(pwre_conf_libpwrremote) $(pwre_conf_libpwrrt) \ $(pwre_conf_libdir) $(pwre_conf_libpwrremote) $(pwre_conf_libpwrrt) \
$(pwre_conf_libwmq) $(pwre_conf_lib) $(pwre_conf_libwmq) $(pwre_conf_lib)
else else
link = echo "WMQ not installed" log_link_exe = echo "$(exe_flv_name): WMQ not installed"
link = :
endif endif
endif endif
...@@ -27,23 +27,28 @@ endif ...@@ -27,23 +27,28 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : $(inc_dir)/pwr_remoteclasses.h \ copy : $(inc_dir)/pwr_remoteclasses.h \
$(inc_dir)/pwr_remoteclasses.hpp $(inc_dir)/pwr_remoteclasses.hpp \
| silent
lib : $(load_dir)/remote.dbs lib : $(load_dir)/remote.dbs | silent
exe : $(doc_dir)/en_us/orm/remote_allclasses.html \ exe : $(doc_dir)/en_us/orm/remote_allclasses.html \
$(exe_dir)/en_us/remote_xtthelp.dat \ $(exe_dir)/en_us/remote_xtthelp.dat \
$(exe_dir)/sv_se/remote_xtthelp.dat $(exe_dir)/sv_se/remote_xtthelp.dat \
| silent
clean : clean :
realclean : clean $(clean_wbl) realclean : clean $(clean_wbl)
silent :
@ :
$(load_dir)/remote.dbs : $(load_dir)/remote.dbs :
@ echo "Generating loadfile for remote" @ echo "Generating loadfile for remote"
@ export pwr_load=$(pwr_eload);\ @ export pwr_load=$(pwr_eload);\
...@@ -52,15 +57,15 @@ $(load_dir)/remote.dbs : ...@@ -52,15 +57,15 @@ $(load_dir)/remote.dbs :
$(inc_dir)/pwr_remoteclasses.h : $(inc_dir)/pwr_remoteclasses.h :
@ echo "Generating struct files for remote classes..." @ echo "Generating struct files for remote classes..."
@ $(co_convert) -s -d $(inc_dir) "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load" @ $(co_convert) -s -d $(inc_dir) -y $(release_root)/bld/$(type_name)/remote.d_h_wbl "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load"
$(inc_dir)/pwr_remoteclasses.hpp : $(inc_dir)/pwr_remoteclasses.hpp :
@ echo "Generating hpp files for remote classes..." @ echo "Generating hpp files for remote classes..."
@ $(co_convert) -po -d $(inc_dir) "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(release_root)/bld/$(type_name)/remote.d_hpp_wbl "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load"
$(doc_dir)/en_us/orm/remote_allclasses.html : $(doc_dir)/en_us/orm/remote_allclasses.html :
@ echo "Generating html files for remote classes en_us..." @ echo "Generating html files for remote classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/remote/src/cnv_setup.dat "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(release_root)/bld/$(type_name)/remote.d_html_wbl -g $(pwre_sroot)/wbl/remote/src/cnv_setup.dat "$(pwre_sroot)/wbl/remote/src/remote_*.wb_load"
@ echo "Generating html files for remote structs en_us..." @ echo "Generating html files for remote structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_remoteclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_remoteclasses.h
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_remoteclasses.hpp @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_remoteclasses.hpp
...@@ -81,16 +86,21 @@ $(doc_dir)/en_us/orm/remote_allclasses.html : ...@@ -81,16 +86,21 @@ $(doc_dir)/en_us/orm/remote_allclasses.html :
$(exe_dir)/en_us/remote_xtthelp.dat : $(exe_dir)/en_us/remote_xtthelp.dat :
@ echo "Generating xtt help files for remote classes" @ echo "Generating xtt help files for remote classes"
@ $(co_convert) -x -d $(exe_dir)/en_us "$(pwre_sroot)/wbl/remote/src/remote_c_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(release_root)/bld/$(type_name)/remote.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/remote/src/remote_c_*.wb_load"
$(exe_dir)/sv_se/remote_xtthelp.dat : $(exe_dir)/sv_se/remote_xtthelp.dat :
@ echo "Generating xtt help files for remote classes" @ echo "Generating xtt help files for remote classes"
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(pwre_sroot)/wbl/remote/src/remote_c_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(release_root)/bld/$(type_name)/remote.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/remote/src/remote_c_*.wb_load"
clean_wbl : clean_wbl :
@ if [ -e $(load_dir)/remote.dbs ]; then \ @ if [ -e $(load_dir)/remote.dbs ]; then \
$(rm) $(rmflags) $(load_dir)/remote.dbs; \ $(rm) $(rmflags) $(load_dir)/remote.dbs; \
fi fi
-include $(release_root)/bld/$(type_name)/remote.d_h_wbl
-include $(release_root)/bld/$(type_name)/remote.d_hpp_wbl
-include $(release_root)/bld/$(type_name)/remote.d_html_wbl
-include $(release_root)/bld/$(type_name)/remote.d_en_us_xtthelp_wbl
-include $(release_root)/bld/$(type_name)/remote.d_sv_se_xtthelp_wbl
...@@ -20,7 +20,7 @@ endif ...@@ -20,7 +20,7 @@ endif
.PHONY : all init copy lib exe clean realclean .PHONY : all init copy lib exe clean realclean
all : init copy lib exe all : init copy lib exe | silent
init : init :
...@@ -28,12 +28,14 @@ copy : ...@@ -28,12 +28,14 @@ copy :
lib : lib :
exe : $(doc_dir)/dox/index.html exe : $(doc_dir)/dox/index.html | silent
clean : $(clean_dox) clean : $(clean_dox)
realclean : $(clean_html) realclean : $(clean_html)
silent :
@ :
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/dox/$*.html @ $(rm) $(rmflags) $(doc_dir)/dox/$*.html
......
...@@ -73,11 +73,11 @@ $(doc_dir)/%.pdf : ../../%.pdf ...@@ -73,11 +73,11 @@ $(doc_dir)/%.pdf : ../../%.pdf
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
all : init copy lib exe all : init copy lib exe | silent
init : init :
copy : $(export_doc) copy : $(export_doc) | silent
lib : lib :
...@@ -87,6 +87,9 @@ clean : $(clean_dweb) ...@@ -87,6 +87,9 @@ clean : $(clean_dweb)
realclean : $(clean_html) realclean : $(clean_html)
silent :
@ :
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/dox/$*.html @ $(rm) $(rmflags) $(doc_dir)/dox/$*.html
......
...@@ -213,7 +213,7 @@ $(doc_dir)/en_us/%.png : ../../%.png ...@@ -213,7 +213,7 @@ $(doc_dir)/en_us/%.png : ../../%.png
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_pdf) $(clean_pdf)
all : init copy lib exe all : init copy lib exe | silent
init : init :
...@@ -247,7 +247,7 @@ copy : $(export_pdf) $(export_pdf_en_us) $(export_pdf_sv_se) \ ...@@ -247,7 +247,7 @@ copy : $(export_pdf) $(export_pdf_en_us) $(export_pdf_sv_se) \
$(doc_dir)/en_us/man_exlib.ps \ $(doc_dir)/en_us/man_exlib.ps \
$(mediatargets) $(csstargets) \ $(mediatargets) $(csstargets) \
$(export_html) $(export_html_en_us) $(export_html_sv_se) \ $(export_html) $(export_html_en_us) $(export_html_sv_se) \
$(doc_dir)/en_us/changelog.html $(doc_dir)/en_us/changelog.html | silent
lib : lib :
...@@ -259,6 +259,9 @@ clean : ...@@ -259,6 +259,9 @@ clean :
realclean : clean $(clean_pdf) $(clean_c) realclean : clean $(clean_pdf) $(clean_c)
silent :
@ :
# added by jonas_h 2006-04-nn # added by jonas_h 2006-04-nn
......
...@@ -76,12 +76,12 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -76,12 +76,12 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_png) $(clean_gif) $(clean_png)
all : init copy lib exe all : init copy lib exe | silent
init : init :
copy : $(export_gif) $(export_png) $(export_html)\ copy : $(export_gif) $(export_png) $(export_html)\
$(doc_dir)/en_us/orm/orm.css $(doc_dir)/en_us/orm/orm.css | silent
lib : lib :
...@@ -92,6 +92,9 @@ clean : ...@@ -92,6 +92,9 @@ clean :
realclean : clean $(clean_gif) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -20,7 +20,7 @@ endif ...@@ -20,7 +20,7 @@ endif
.PHONY : all init copy lib exe clean realclean .PHONY : all init copy lib exe clean realclean
all : init copy lib exe all : init copy lib exe | silent
init : init :
...@@ -28,12 +28,14 @@ copy : ...@@ -28,12 +28,14 @@ copy :
lib : lib :
exe : $(doc_dir)/prm/index.html exe : $(doc_dir)/prm/index.html | silent
clean : $(clean_dox) clean : $(clean_dox)
realclean : $(clean_html) realclean : $(clean_html)
silent :
@ :
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/prm/$*.html @ $(rm) $(rmflags) $(doc_dir)/prm/$*.html
......
...@@ -89,12 +89,12 @@ clean_ge := $(clean_gif) $(clean_html) ...@@ -89,12 +89,12 @@ clean_ge := $(clean_gif) $(clean_html)
.PHONY : all init copy lib exe clean realclean .PHONY : all init copy lib exe clean realclean
all : init copy lib exe all : init copy lib exe | silent
init : init :
copy : $(export_doc) \ copy : $(export_doc) \
$(doc_dir)/pcss.css $(doc_dir)/pcss.css | silent
lib : lib :
...@@ -104,6 +104,8 @@ clean : $(clean_dox) ...@@ -104,6 +104,8 @@ clean : $(clean_dox)
realclean : $(clean_html) $(clean_js) realclean : $(clean_html) $(clean_js)
silent :
@ :
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/dox/$*.html @ $(rm) $(rmflags) $(doc_dir)/dox/$*.html
......
...@@ -37,11 +37,8 @@ ...@@ -37,11 +37,8 @@
#ifndef cnv_classdep_h #ifndef cnv_classdep_h
#define cnv_classdep_h #define cnv_classdep_h
#if defined __cplusplus
extern "C" {
#endif
#include <vector> #include <vector>
#include <string>
#include "pwr.h" #include "pwr.h"
#include "cnv_ctx.h" #include "cnv_ctx.h"
...@@ -81,9 +78,6 @@ class CnvClassDep { ...@@ -81,9 +78,6 @@ class CnvClassDep {
void print_html_classtable_children( ofstream& fp, int idx); void print_html_classtable_children( ofstream& fp, int idx);
}; };
#if defined __cplusplus
}
#endif
#endif #endif
......
...@@ -104,3 +104,30 @@ int CnvCtx::read_line( ...@@ -104,3 +104,30 @@ int CnvCtx::read_line(
return 1; return 1;
} }
void CnvCtx::add_depend( char *fname)
{
if ( strcmp( depend_filename, "") == 0)
return;
string fnamestr( fname);
depend.push_back(fnamestr);
}
void CnvCtx::print_depend()
{
if ( strcmp( depend_filename, "") == 0)
return;
dcli_translate_filename( dependfile, dependfile);
dcli_translate_filename( depend_filename, depend_filename);
ofstream fp( depend_filename);
fp << dependfile << " : \\" << endl;
for ( unsigned int i = 0; i < depend.size(); i++)
fp << depend[i] << " \\" << endl;
fp << endl;
fp.close();
}
...@@ -34,25 +34,28 @@ ...@@ -34,25 +34,28 @@
* General Public License plus this exception. * General Public License plus this exception.
*/ */
#ifndef co_convert_h #ifndef co_ctx_h
#define co_convert_h #define co_ctx_h
/* cnv_ctx.h -- Setup */ /* cnv_ctx.h -- Setup */
#if defined __cplusplus
extern "C" {
#endif
#include <stdio.h> #include <stdio.h>
#include <string>
#include <vector>
#include "pwr.h" #include "pwr.h"
#include "cnv_setup.h" #include "cnv_setup.h"
using namespace std;
class CnvWblTo; class CnvWblTo;
class CnvReadWbl; class CnvReadWbl;
class CnvReadXtthelp; class CnvReadXtthelp;
class CnvCtx { class CnvCtx {
private:
vector<string> depend;
public: public:
CnvCtx() : generate_html(0), generate_xtthelp(0), generate_src(0), CnvCtx() : generate_html(0), generate_xtthelp(0), generate_src(0),
generate_struct(0), generate_ps(0), generate_cdp(0), common_structfile_only(0), hpp(0), generate_struct(0), generate_ps(0), generate_cdp(0), common_structfile_only(0), hpp(0),
...@@ -60,6 +63,7 @@ class CnvCtx { ...@@ -60,6 +63,7 @@ class CnvCtx {
{ {
strcpy( dir, ""); strcpy( dir, "");
strcpy( setup_filename, ""); strcpy( setup_filename, "");
strcpy( depend_filename, "");
} }
char dir[120]; char dir[120];
int generate_html; int generate_html;
...@@ -71,21 +75,24 @@ class CnvCtx { ...@@ -71,21 +75,24 @@ class CnvCtx {
int common_structfile_only; int common_structfile_only;
int hpp; int hpp;
int verbose; int verbose;
char setup_filename[120]; pwr_tFileName setup_filename;
pwr_tFileName depend_filename;
pwr_tFileName dependfile;
int first_class; int first_class;
CnvSetup *setup; CnvSetup *setup;
CnvWblTo *wblto; CnvWblTo *wblto;
CnvReadWbl *rw; CnvReadWbl *rw;
CnvReadXtthelp *rx; CnvReadXtthelp *rx;
void add_depend( char *dname);
void set_dependfile( char *dname) {strncpy( dependfile, dname, sizeof(dependfile));}
void print_depend();
static int read_line( char *line, int maxsize, FILE *file); static int read_line( char *line, int maxsize, FILE *file);
static int remove_spaces( const char *in, char *out); static int remove_spaces( const char *in, char *out);
static char *low( const char *in); static char *low( const char *in);
}; };
#if defined __cplusplus
}
#endif
#endif #endif
......
...@@ -90,6 +90,8 @@ int CnvReadWbl::read_wbl( char *filename) ...@@ -90,6 +90,8 @@ int CnvReadWbl::read_wbl( char *filename)
if ( !fp) if ( !fp)
return 0; return 0;
ctx->add_depend( filename);
state = 0; state = 0;
doc_fresh = 0; doc_fresh = 0;
......
...@@ -78,6 +78,7 @@ class CnvWblTo { ...@@ -78,6 +78,7 @@ class CnvWblTo {
virtual int index_open() { return 0;} virtual int index_open() { return 0;}
virtual bool confpass() { return false;} virtual bool confpass() { return false;}
virtual void set_confpass( bool conf) {}; virtual void set_confpass( bool conf) {};
virtual void add_depend( char *) {};
}; };
#if defined __cplusplus #if defined __cplusplus
......
...@@ -73,6 +73,8 @@ int CnvWblToH::init( char *first) ...@@ -73,6 +73,8 @@ int CnvWblToH::init( char *first)
strcat( fname, struct_filename); strcat( fname, struct_filename);
fp_struct.open( fname); fp_struct.open( fname);
ctx->set_dependfile( fname);
if ( ctx->hpp) { if ( ctx->hpp) {
if ( strcmp( CnvCtx::low(ctx->rw->volume_name), "pwrb") == 0) if ( strcmp( CnvCtx::low(ctx->rw->volume_name), "pwrb") == 0)
sprintf( fname, "pwr_%sclasses_hpp", "base"); sprintf( fname, "pwr_%sclasses_hpp", "base");
...@@ -146,6 +148,8 @@ int CnvWblToH::close() ...@@ -146,6 +148,8 @@ int CnvWblToH::close()
fp_struct.close(); fp_struct.close();
ctx->print_depend();
return 1; return 1;
} }
...@@ -1081,3 +1085,4 @@ int CnvWblToH::check_typename( char *type_volume, char *type_name) ...@@ -1081,3 +1085,4 @@ int CnvWblToH::check_typename( char *type_volume, char *type_name)
else else
return 1; return 1;
} }
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
#ifndef cnv_wbltoh_h #ifndef cnv_wbltoh_h
#define cnv_wbltoh_h #define cnv_wbltoh_h
#if defined __cplusplus //#if defined __cplusplus
extern "C" { //extern "C" {
#endif //#endif
#include "pwr.h" #include "pwr.h"
#include "cnv_readwbl.h" #include "cnv_readwbl.h"
...@@ -93,8 +93,8 @@ class CnvWblToH : public CnvWblTo { ...@@ -93,8 +93,8 @@ class CnvWblToH : public CnvWblTo {
}; };
#if defined __cplusplus //#if defined __cplusplus
} //}
#endif //#endif
#endif #endif
...@@ -204,6 +204,7 @@ int CnvWblToHtml::init( char *first) ...@@ -204,6 +204,7 @@ int CnvWblToHtml::init( char *first)
cdh_ToLower( fname, fname); cdh_ToLower( fname, fname);
fp_html_index.open( fname); fp_html_index.open( fname);
ctx->set_dependfile( fname);
html_index_open = 1; html_index_open = 1;
...@@ -427,6 +428,8 @@ int CnvWblToHtml::close() ...@@ -427,6 +428,8 @@ int CnvWblToHtml::close()
ctx->dir, ctx->dir, ctx->dir, ctx->dir); ctx->dir, ctx->dir, ctx->dir, ctx->dir);
system( cmd); system( cmd);
ctx->print_depend();
return 1; return 1;
} }
......
...@@ -134,6 +134,8 @@ int CnvWblToXtthelp::init( char *first) ...@@ -134,6 +134,8 @@ int CnvWblToXtthelp::init( char *first)
fp_xtthelp_index.open( fname); fp_xtthelp_index.open( fname);
ctx->set_dependfile( fname);
fp_tmp.open( cread_cTmpFile2); fp_tmp.open( cread_cTmpFile2);
xtthelp_index_open = 1; xtthelp_index_open = 1;
...@@ -157,6 +159,9 @@ int CnvWblToXtthelp::close() ...@@ -157,6 +159,9 @@ int CnvWblToXtthelp::close()
ctx->rw->copy_tmp_file( cread_cTmpFile2, fp_xtthelp_index); ctx->rw->copy_tmp_file( cread_cTmpFile2, fp_xtthelp_index);
fp_xtthelp_index.close(); fp_xtthelp_index.close();
ctx->print_depend();
return 1; return 1;
} }
......
...@@ -157,7 +157,7 @@ int main( int argc, char *argv[]) ...@@ -157,7 +157,7 @@ int main( int argc, char *argv[])
usage(); usage();
exit(0); exit(0);
} }
strcpy( ctx->setup_filename, argv[i+1]); strncpy( ctx->setup_filename, argv[i+1], sizeof(ctx->setup_filename));
i++; i++;
} }
else if ( strcmp( argv[i], "-l") == 0) { else if ( strcmp( argv[i], "-l") == 0) {
...@@ -168,6 +168,14 @@ int main( int argc, char *argv[]) ...@@ -168,6 +168,14 @@ int main( int argc, char *argv[])
Lng::set( argv[i+1]); Lng::set( argv[i+1]);
i++; i++;
} }
else if ( strcmp( argv[i], "-y") == 0) {
if ( i+1 >= argc) {
usage();
exit(0);
}
strncpy( ctx->depend_filename, argv[i+1], sizeof(ctx->depend_filename));
i++;
}
else if ( argv[i][0] == '-') { else if ( argv[i][0] == '-') {
int next = 0; int next = 0;
s = &argv[i][1]; s = &argv[i][1];
......
...@@ -2,7 +2,8 @@ ifndef link_rule_mk ...@@ -2,7 +2,8 @@ ifndef link_rule_mk
link_rule_mk := 1 link_rule_mk := 1
link = $(ldxx) $(linkflags) $(domap) -o $(export_exe) $(export_obj) \ link = $(ldxx) $(linkflags) $(domap) -o $(export_exe) $(export_obj) \
$(objects) $(pwre_conf_libdir) $(pwre_conf_libpwrco) $(pwre_conf_lib) $(pwre_conf_libgtk);\ $(objects) $(pwre_conf_libdir) $(pwre_conf_libpwrco) $(pwre_conf_lib) $(pwre_conf_libgtk)
cp $(export_exe) $(eexe_dir)/
linkcp = cp $(export_exe) $(eexe_dir)/
endif endif
...@@ -58,11 +58,11 @@ clean_awk := $(patsubst %.awk, clean_%.awk, $(awk_sources)) ...@@ -58,11 +58,11 @@ clean_awk := $(patsubst %.awk, clean_%.awk, $(awk_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_sh) $(clean_sh)
all : init copy all : init copy | silent
init : init :
copy : $(export_sh) $(export_pwr_com) $(export_awk) copy : $(export_sh) $(export_pwr_com) $(export_awk) | silent
lib : lib :
...@@ -72,6 +72,9 @@ clean : ...@@ -72,6 +72,9 @@ clean :
realclean : clean $(clean_sh) $(clean_pwr_com) $(clean_awk) realclean : clean $(clean_sh) $(clean_pwr_com) $(clean_awk)
silent :
@ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -58,11 +58,11 @@ clean_awk := $(patsubst %.awk, clean_%.awk, $(awk_sources)) ...@@ -58,11 +58,11 @@ clean_awk := $(patsubst %.awk, clean_%.awk, $(awk_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_sh) $(clean_sh)
all : init copy all : init copy | silent
init : init :
copy : $(export_sh) $(export_pwr_com) $(export_awk) copy : $(export_sh) $(export_pwr_com) $(export_awk) | silent
lib : lib :
...@@ -72,6 +72,9 @@ clean : ...@@ -72,6 +72,9 @@ clean :
realclean : clean $(clean_sh) $(clean_pwr_com) $(clean_awk) realclean : clean $(clean_sh) $(clean_pwr_com) $(clean_awk)
silent :
@ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -37,11 +37,11 @@ clean_includes := $(patsubst %.h,clean_%.h,$(sources)) ...@@ -37,11 +37,11 @@ clean_includes := $(patsubst %.h,clean_%.h,$(sources))
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_includes) $(clean_includes)
all : init copy lib exe all : init copy lib exe | silent
init : init :
copy : $(export_includes) $(exe_dir)/pwrp_rules.mk copy : $(export_includes) $(exe_dir)/pwrp_rules.mk | silent
lib : lib :
...@@ -51,6 +51,9 @@ clean : ...@@ -51,6 +51,9 @@ clean :
realclean : $(clean_includes) realclean : $(clean_includes)
silent :
@ :
$(clean_includes) : clean_%.h : %.h $(clean_includes) : clean_%.h : %.h
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -63,13 +63,13 @@ export_wav := $(patsubst %.wav,$(exe_dir)/%.wav,$(wav_sources)) ...@@ -63,13 +63,13 @@ export_wav := $(patsubst %.wav,$(exe_dir)/%.wav,$(wav_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_c) $(clean_c)
all : init copy lib all : init copy lib | silent
init : init :
copy : $(load_dir)/pwr_volumelist.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif $(export_gif) $(export_gifdoc) $(export_wav) copy : $(load_dir)/pwr_volumelist.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif $(export_gif) $(export_gifdoc) $(export_wav) | silent
lib : $(export_obj) lib : $(export_obj) | silent
exe : exe :
...@@ -77,6 +77,9 @@ clean : ...@@ -77,6 +77,9 @@ clean :
realclean : clean $(clean_obj) realclean : clean $(clean_obj)
silent :
@ :
.SUFFIXES: .SUFFIXES:
$(exe_dir)/%.wav : ../../%.wav $(exe_dir)/%.wav : ../../%.wav
......
...@@ -60,13 +60,13 @@ export_h := $(patsubst %.h,$(inc_dir)/%.h,$(h_sources)) ...@@ -60,13 +60,13 @@ export_h := $(patsubst %.h,$(inc_dir)/%.h,$(h_sources))
.PHONY : all init copy lib exe clean realclean .PHONY : all init copy lib exe clean realclean
all : init copy lib all : init copy lib | silent
init : init :
copy : $(export_h) copy : $(export_h) | silent
lib : $(export_obj) lib : $(export_obj) | silent
exe : exe :
...@@ -74,6 +74,9 @@ clean : ...@@ -74,6 +74,9 @@ clean :
realclean : clean realclean : clean
silent :
@ :
.SUFFIXES: .SUFFIXES:
......
...@@ -103,18 +103,18 @@ export_lib = $(lib_dir)/$(lib_name)$(lib_ext) ...@@ -103,18 +103,18 @@ export_lib = $(lib_dir)/$(lib_name)$(lib_ext)
dirs $(clean_h_includes) $(clean_hpp_includes) \ dirs $(clean_h_includes) $(clean_hpp_includes) \
clean_bld clean_dirs clean_lib export_stuff clean_bld clean_dirs clean_lib export_stuff
all : init copy lib exe all : init copy lib exe | silent
init : dirs init : dirs | silent
copy : $(export_includes) copy : $(export_includes) | silent
lib : $(export_dtt_m)\ lib : $(export_dtt_m)\
$(inc_dir)/dtt_appl_rttsys_m.rdecl\ $(inc_dir)/dtt_appl_rttsys_m.rdecl\
$(inc_dir)/dtt_appl_rttsys_m.rhlp\ $(inc_dir)/dtt_appl_rttsys_m.rhlp\
$(inc_dir)/dtt_appl_rttsys_m.rh\ $(inc_dir)/dtt_appl_rttsys_m.rh\
$(export_lib)($(objects))\ $(export_lib)($(objects))\
$(export_obj) $(export_obj) | silent
exe : exe :
...@@ -153,6 +153,9 @@ clean_lib : ...@@ -153,6 +153,9 @@ clean_lib :
clean_includes : $(clean_h_includes) $(clean_hpp_includes) clean_includes : $(clean_h_includes) $(clean_hpp_includes)
silent :
@ :
$(clean_h_includes) : clean_%.h : %.h $(clean_h_includes) : clean_%.h : %.h
@ echo "Removing h-includes" @ echo "Removing h-includes"
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -84,13 +84,21 @@ hpp_includes := $(sort \ ...@@ -84,13 +84,21 @@ hpp_includes := $(sort \
) )
exe_name := $(comp_name) exe_name := $(comp_name)
exe_flv_name := $(comp_name)
ifneq ($(src_name),src)
exe_flv_name := $(comp_name)_$(src_name)
endif
exe_source := $(filter $(exe_name).%, $(c_sources)) exe_source := $(filter $(exe_name).%, $(c_sources))
c_sources := $(filter-out $(exe_source), $(c_sources)) c_sources := $(filter-out $(exe_source), $(c_sources))
export_exe := $(exe_dir)/$(exe_name)$(exe_ext) export_exe := $(exe_dir)/$(pre_so)$(exe_flv_name)$(exe_ext)
#export_obj := $(obj_dir)/$(exe_name)$(obj_ext) #export_obj := $(obj_dir)/$(exe_name)$(obj_ext)
export_obj := $(bld_dir)/$(exe_name)$(obj_ext) export_obj := $(bld_dir)/$(exe_name)$(obj_ext)
export_flv_obj := $(bld_dir)/$(exe_name)$(obj_ext)
ifneq ($(src_name),src)
export_flv_obj := $(bld_dir)/$(exe_name)_$(src_name)$(obj_ext)
endif
export_includes := $(addprefix $(inc_dir)/,$(h_includes) $(hpp_includes)) export_includes := $(addprefix $(inc_dir)/,$(h_includes) $(hpp_includes))
l_targets := $(addprefix $(bld_dir)/,$(basename $(l_sources))) l_targets := $(addprefix $(bld_dir)/,$(basename $(l_sources)))
...@@ -103,7 +111,7 @@ objects := $(strip $(addsuffix $(obj_ext),$(objects))) ...@@ -103,7 +111,7 @@ objects := $(strip $(addsuffix $(obj_ext),$(objects)))
lc_src_dep := $(objects:$(obj_ext)=$(d_ext)) lc_src_dep := $(objects:$(obj_ext)=$(d_ext))
exe_src_dep := $(obj_dir)/$(exe_name)$(d_ext) exe_src_dep := $(obj_dir)/$(exe_name)$(d_ext)
source_dependencies := $(lc_src_dep) $(exe_src_dep) source_dependencies := $(lc_src_dep) $(exe_src_dep)
link_dependencies := $(bld_dir)/$(exe_name)$(d_ld_ext) link_dependencies := $(bld_dir)/$(exe_flv_name)$(d_ld_ext)
clean_h_includes := $(patsubst %.h,clean_%.h, $(h_includes)) clean_h_includes := $(patsubst %.h,clean_%.h, $(h_includes))
clean_hpp_includes := $(patsubst %.hpp,clean_%.hpp, $(hpp_includes)) clean_hpp_includes := $(patsubst %.hpp,clean_%.hpp, $(hpp_includes))
...@@ -115,15 +123,15 @@ clean_hpp_includes := $(patsubst %.hpp,clean_%.hpp, $(hpp_includes)) ...@@ -115,15 +123,15 @@ clean_hpp_includes := $(patsubst %.hpp,clean_%.hpp, $(hpp_includes))
dirs $(clean_includes) clean_bld clean_dirs\ dirs $(clean_includes) clean_bld clean_dirs\
clean_exe clean_exe
all : init copy lib exe all : init copy lib exe | silent
init : dirs init : dirs | silent
copy : $(export_includes) copy : $(export_includes) | silent
lib : lib :
exe : $(l_targets) $(objects) $(export_obj) $(export_exe) exe : $(l_targets) $(objects) $(export_flv_obj) $(export_exe) | silent
dirs : $(bld_dir)$(dir_ext) dirs : $(bld_dir)$(dir_ext)
...@@ -134,24 +142,20 @@ clean : clean_exe clean_bld ...@@ -134,24 +142,20 @@ clean : clean_exe clean_bld
realclean : clean $(clean_h_includes) $(clean_hpp_includes) clean_dirs realclean : clean $(clean_h_includes) $(clean_hpp_includes) clean_dirs
$(export_exe) : $(link_rule) $(export_obj) $(objects) $(export_exe) : $(link_rule) $(export_flv_obj) $(objects)
@ $(log_link_exe) @ $(log_link_exe)
@ $(link) @ $(link) -t | grep $(pwre_broot) | awk -f $(pwre_kroot)/tools/bld/src/$(os_name)/ld_trace_to_d.awk -v target=$(target) > $(link_dependencies)
@ if [ "$(linkcp)" != ":" ]; then \
$(linkcp); \
fi
# This is for Lynx 2.5 map files, it doesn't work for Linux. ML
# ifeq ($(nodep),)
# @ echo "$(export_exe) : \\" > $(link_dependencies)
# @ $ sed -n "s|\(.*\)\($(lib_dir)/.*\.a\)\(\]\)\(.*\.o\)\(.*\)|\2(\4) \\\\|p" $(map) \
# | sort | uniq >> $(link_dependencies)
# endif
clean_exe : clean_exe :
@ if [ -e $(export_exe) ]; then \ @ if [ -e $(export_exe) ]; then \
$(rm) $(export_exe); \ $(rm) $(export_exe); \
fi fi
@ if [ -e $(export_obj) ]; then \ @ if [ -e $(export_flv_obj) ]; then \
$(rm) $(export_obj); \ $(rm) $(export_flv_obj); \
fi fi
clean_bld : clean_bld :
...@@ -160,6 +164,9 @@ clean_bld : ...@@ -160,6 +164,9 @@ clean_bld :
clean_dirs : clean_dirs :
@ $(rm) $(rmflags) $(bld_dir) @ $(rm) $(rmflags) $(bld_dir)
silent:
@ :
$(clean_h_includes) : clean_%.h : %.h $(clean_h_includes) : clean_%.h : %.h
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -92,6 +92,9 @@ rt_msg_eobjs := $(eobj_dir)/pwr_msg_co.o $(eobj_dir)/pwr_msg_rt.o ...@@ -92,6 +92,9 @@ rt_msg_eobjs := $(eobj_dir)/pwr_msg_co.o $(eobj_dir)/pwr_msg_rt.o
rs_msg_eobjs := $(eobj_dir)/pwr_msg_rs.o rs_msg_eobjs := $(eobj_dir)/pwr_msg_rs.o
wb_msg_eobjs := $(eobj_dir)/pwr_msg_wb.o $(eobj_dir)/pwr_msg_ge.o $(eobj_dir)/pwr_msg_flow.o wb_msg_eobjs := $(eobj_dir)/pwr_msg_wb.o $(eobj_dir)/pwr_msg_ge.o $(eobj_dir)/pwr_msg_flow.o
linkcp = :
pre_so =
# Configuration # Configuration
#ifeq ($(pwre_conf_mysql),1) #ifeq ($(pwre_conf_mysql),1)
# cmysql := -DPWRE_CONF_MYSQL=1 # cmysql := -DPWRE_CONF_MYSQL=1
......
...@@ -99,17 +99,17 @@ source_dependencies := $(addsuffix $(d_ext), $(source_dependencies)) ...@@ -99,17 +99,17 @@ source_dependencies := $(addsuffix $(d_ext), $(source_dependencies))
# dirs $(clean_h_includes) $(clean_hpp_includes) # dirs $(clean_h_includes) $(clean_hpp_includes)
all : init copy lib exe all : init copy lib exe | silent
init : dirs init : dirs | silent
copy : copy : silent
lib : $(export_lib) lib : $(export_lib) | silent
exe : exe : silent
dirs : $(bld_dir)$(dir_ext) dirs : $(bld_dir)$(dir_ext) | silent
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
@ $(mkdir) $(mkdirflags) $(basename $@)/ @ $(mkdir) $(mkdirflags) $(basename $@)/
...@@ -132,6 +132,9 @@ clean_lib : ...@@ -132,6 +132,9 @@ clean_lib :
clean_includes : $(clean_h_includes) $(clean_hpp_includes) clean_includes : $(clean_h_includes) $(clean_hpp_includes)
silent :
@ :
$(clean_h_includes) : clean_%.h : %.h $(clean_h_includes) : clean_%.h : %.h
@ echo "Removing h-includes" @ echo "Removing h-includes"
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -154,13 +154,13 @@ source_dependencies := $(addsuffix $(d_ext), $(source_dependencies)) ...@@ -154,13 +154,13 @@ source_dependencies := $(addsuffix $(d_ext), $(source_dependencies))
# dirs $(clean_h_includes) $(clean_hpp_includes) # dirs $(clean_h_includes) $(clean_hpp_includes)
all : init copy lib exe all : init copy lib exe | silent
init : dirs init : dirs | silent
copy : $(export_includes) $(l_copy) $(export_pwsg) $(export_meth) copy : $(export_includes) $(l_copy) $(export_pwsg) $(export_meth) | silent
lib : $(export_lib) lib : $(export_lib) | silent
exe : exe :
...@@ -195,6 +195,9 @@ clean_lib : ...@@ -195,6 +195,9 @@ clean_lib :
clean_includes : $(clean_h_includes) $(clean_hpp_includes) clean_includes : $(clean_h_includes) $(clean_hpp_includes)
silent:
@ :
$(clean_h_includes) : clean_%.h : %.h $(clean_h_includes) : clean_%.h : %.h
@ echo "Removing h-include: $(inc_dir)/$*.h" @ echo "Removing h-include: $(inc_dir)/$*.h"
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -97,11 +97,11 @@ clean_png := $(patsubst %.png,clean_%.png,$(png_sources)) ...@@ -97,11 +97,11 @@ clean_png := $(patsubst %.png,clean_%.png,$(png_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
dirs clean_bld clean_dirs $(clean_uid) dirs clean_bld clean_dirs $(clean_uid)
all : init copy all : init copy | silent
init : dirs init : dirs | silent
copy : $(export_uid) $(export_c_pwg) $(export_pwg) $(export_pwsg) $(export_png) copy : $(export_uid) $(export_c_pwg) $(export_pwg) $(export_pwsg) $(export_png) | silent
lib : lib :
...@@ -113,6 +113,9 @@ realclean : clean ...@@ -113,6 +113,9 @@ realclean : clean
dirs : dirs :
silent :
@ :
$(clean_uid) : clean_%.uid : %.uil $(clean_uid) : clean_%.uid : %.uil
@ echo "Removing uid" @ echo "Removing uid"
@ $(rm) $(rmflags) $(exe_dir)/$*.uid @ $(rm) $(rmflags) $(exe_dir)/$*.uid
......
...@@ -48,17 +48,17 @@ export_obj = $(obj_dir)/pwr_msg_$(comp_name)$(obj_ext) ...@@ -48,17 +48,17 @@ export_obj = $(obj_dir)/pwr_msg_$(comp_name)$(obj_ext)
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
dirs $(clean_includes) clean_lib clean_obj clean_dirs dirs $(clean_includes) clean_lib clean_obj clean_dirs
all : init copy lib all : init copy lib | silent
init : dirs init : dirs | silent
copy : $(export_includes) $(export_cmsg) copy : $(export_includes) $(export_cmsg) | silent
lib : $(export_obj) lib : $(export_obj) | silent
exe : exe :
dirs : $(bld_dir)$(dir_ext) dirs : $(bld_dir)$(dir_ext) | silent
$(bld_dir)$(dir_ext) : $(bld_dir)$(dir_ext) :
$(mkdir) $(mkdirflags) $(basename $@) $(mkdir) $(mkdirflags) $(basename $@)
...@@ -67,6 +67,8 @@ clean : ...@@ -67,6 +67,8 @@ clean :
realclean : $(clean_includes) clean_obj clean_dirs realclean : $(clean_includes) clean_obj clean_dirs
silent :
@ :
$(export_cmsg) : $(cmsgs) $(export_cmsg) : $(cmsgs)
@ echo Creating: obj_dir/$(notdir $@) @ echo Creating: obj_dir/$(notdir $@)
......
...@@ -152,17 +152,18 @@ $(load_dir)/%.flw : ../../%.flw ...@@ -152,17 +152,18 @@ $(load_dir)/%.flw : ../../%.flw
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
lib : $(export_wbl_dbs) lib : $(export_wbl_dbs) | silent
copy : $(export_wbl_h) \ copy : $(export_wbl_h) \
$(export_wbl_hpp) \ $(export_wbl_hpp) \
$(export_pwg) \ $(export_pwg) \
$(export_pwsg) \ $(export_pwsg) \
$(export_flw) $(export_flw) \
| silent
exe: $(export_wbl_xtthelp_en_us) \ exe: $(export_wbl_xtthelp_en_us) \
$(export_wbl_xtthelp_sv_se) \ $(export_wbl_xtthelp_sv_se) \
...@@ -171,7 +172,8 @@ exe: $(export_wbl_xtthelp_en_us) \ ...@@ -171,7 +172,8 @@ exe: $(export_wbl_xtthelp_en_us) \
$(export_wbl_ps_en_us) \ $(export_wbl_ps_en_us) \
$(export_wbl_ps_sv_se) \ $(export_wbl_ps_sv_se) \
$(export_pdf_en_us) \ $(export_pdf_en_us) \
$(export_pdf_sv_se) $(export_pdf_sv_se) \
| silent
clean : \ clean : \
$(clean_xtthelp_sv_se) $(clean_xtthelp_en_us) \ $(clean_xtthelp_sv_se) $(clean_xtthelp_en_us) \
...@@ -183,6 +185,9 @@ realclean : clean \ ...@@ -183,6 +185,9 @@ realclean : clean \
$(clean_h) \ $(clean_h) \
$(clean_hpp) \ $(clean_hpp) \
silent :
@ :
$(clean_dbs) : clean_%.dbs : $(load_dir)/%.dbs $(clean_dbs) : clean_%.dbs : $(load_dir)/%.dbs
@ echo "rm $(source)" @ echo "rm $(source)"
@ if [ -e $(source) ]; then \ @ if [ -e $(source) ]; then \
......
This diff is collapsed.
...@@ -20,12 +20,16 @@ merge_dir_func() ...@@ -20,12 +20,16 @@ merge_dir_func()
if [ ! -d $fromdir/$file ]; then if [ ! -d $fromdir/$file ]; then
if [ -e $todir/$file ]; then if [ -e $todir/$file ]; then
if [ $todir/$file -ot $fromdir/$file ]; then if [ $todir/$file -ot $fromdir/$file ]; then
if [ $ver -eq 1 ]; then
echo "Copy $fromdir/$file" echo "Copy $fromdir/$file"
cp $fromdir/$file $todir fi
cp -p $fromdir/$file $todir
fi fi
else else
if [ $ver -eq 1 ]; then
echo "Copy $fromdir/$file" echo "Copy $fromdir/$file"
cp $fromdir/$file $todir fi
cp -p $fromdir/$file $todir
if [ ${file##*.} = "dbs" ]; then if [ ${file##*.} = "dbs" ]; then
# Change access on dbsfiles # Change access on dbsfiles
chmod a+w $todir/$file chmod a+w $todir/$file
...@@ -36,10 +40,14 @@ merge_dir_func() ...@@ -36,10 +40,14 @@ merge_dir_func()
fi fi
} }
fromroot=$1 fromroot=$2
toroot=$2 toroot=$3
file=$3 file=$4
if [ "$1" == "1" ]; then
ver=1
else
ver=0
fi
if [ -z "$pwre_host_exe" ]; then if [ -z "$pwre_host_exe" ]; then
co_merge="co_merge" co_merge="co_merge"
...@@ -70,13 +78,17 @@ else ...@@ -70,13 +78,17 @@ else
arname=${lib##/*/} arname=${lib##/*/}
if [ $arname = "libpwr_rt.a" ] || [ $arname = "libpwr_cow.a" ] || [ $arname = "libpwr_cow_motif.a" ] || [ $arname = "libpwr_cow_gtk.a" ] || [ $arname = "libpwr_wb.a" ] || [ $arname = "libpwr_wb_motif.a" ] || [ $arname = "libpwr_wb_gtk.a" ] || [ $arname = "libpwr_xtt.a" ] || [ $arname = "libpwr_xtt_motif.a" ] || [ $arname = "libpwr_xtt_gtk.a" ]; then if [ $arname = "libpwr_rt.a" ] || [ $arname = "libpwr_cow.a" ] || [ $arname = "libpwr_cow_motif.a" ] || [ $arname = "libpwr_cow_gtk.a" ] || [ $arname = "libpwr_wb.a" ] || [ $arname = "libpwr_wb_motif.a" ] || [ $arname = "libpwr_wb_gtk.a" ] || [ $arname = "libpwr_xtt.a" ] || [ $arname = "libpwr_xtt_motif.a" ] || [ $arname = "libpwr_xtt_gtk.a" ]; then
if [ $ver -eq 1 ]; then
echo "Merge $lib" echo "Merge $lib"
fi
modules=`eval ar -tf $lib` modules=`eval ar -tf $lib`
ar -xf $lib ar -xof $lib
ar -rc $toroot/lib/$arname $modules ar -roc $toroot/lib/$arname $modules
rm $modules rm $modules
else else
if [ $ver -eq 1 ]; then
echo "Copy $lib" echo "Copy $lib"
fi
cp $lib $toroot/lib/ cp $lib $toroot/lib/
fi fi
done done
...@@ -84,19 +96,25 @@ else ...@@ -84,19 +96,25 @@ else
# Merge io methods # Merge io methods
methodfile=$pwr_inc/rt_io_$pwre_module.meth methodfile=$pwr_inc/rt_io_$pwre_module.meth
if [ -e $methodfile ]; then if [ -e $methodfile ]; then
if [ $ver -eq 1 ]; then
echo "-- Merge io methods" echo "-- Merge io methods"
fi
$co_merge io_base $pwr_einc/rt_io_\*.meth $pwr_elib/libpwr_rt.a $co_merge io_base $pwr_einc/rt_io_\*.meth $pwr_elib/libpwr_rt.a
fi fi
# Merge wb methods # Merge wb methods
methodfile=$pwr_inc/wb_$pwre_module.meth methodfile=$pwr_inc/wb_$pwre_module.meth
if [ -e $methodfile ]; then if [ -e $methodfile ]; then
if [ $ver -eq 1 ]; then
echo "-- Merge wb methods" echo "-- Merge wb methods"
fi
$co_merge wb_base $pwr_einc/wb_\*.meth $pwr_elib/libpwr_wb.a $co_merge wb_base $pwr_einc/wb_\*.meth $pwr_elib/libpwr_wb.a
fi fi
# Merge xtt methods # Merge xtt methods
methodfile=$pwr_inc/xtt_$pwre_module.meth methodfile=$pwr_inc/xtt_$pwre_module.meth
if [ -e $methodfile ]; then if [ -e $methodfile ]; then
if [ $ver -eq 1 ]; then
echo "-- Merge xtt methods" echo "-- Merge xtt methods"
fi
$co_merge xtt_base $pwr_einc/xtt_\*.meth $pwr_elib/libpwr_xtt.a $co_merge xtt_base $pwr_einc/xtt_\*.meth $pwr_elib/libpwr_xtt.a
fi fi
fi fi
......
...@@ -27,24 +27,29 @@ endif ...@@ -27,24 +27,29 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : $(inc_dir)/pwr_baseclasses.h \ copy : $(inc_dir)/pwr_baseclasses.h \
$(inc_dir)/pwr_baseclasses.hpp $(inc_dir)/pwr_baseclasses.hpp \
| silent
lib : $(load_dir)/pwrb.dbs lib : $(load_dir)/pwrb.dbs | silent
exe : $(doc_dir)/en_us/orm/pwrb_allclasses.html \ exe : $(doc_dir)/en_us/orm/pwrb_allclasses.html \
$(exe_dir)/en_us/pwrb_xtthelp.dat \ $(exe_dir)/en_us/pwrb_xtthelp.dat \
$(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat \
| silent
clean : clean :
realclean : clean clean_pwrb_xtthelp clean_pwrb_html clean_baseclasses realclean : clean clean_pwrb_xtthelp clean_pwrb_html clean_baseclasses
silent :
@ :
$(load_dir)/pwrb.dbs : $(load_dir)/pwrb.dbs :
@ echo "Generating loadfile for pwrb" @ echo "Generating loadfile for pwrb"
@ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrb/src/\"/out=\"$(target)\" @ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrb/src/\"/out=\"$(target)\"
...@@ -52,15 +57,15 @@ $(load_dir)/pwrb.dbs : ...@@ -52,15 +57,15 @@ $(load_dir)/pwrb.dbs :
$(inc_dir)/pwr_baseclasses.h : $(inc_dir)/pwr_baseclasses.h :
@ echo "Generating struct files for pwrb classes..." @ echo "Generating struct files for pwrb classes..."
@ $(co_convert) -so -d $(inc_dir) "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(release_root)/bld/$(type_name)/pwrb.d_h_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(inc_dir)/pwr_baseclasses.hpp : $(inc_dir)/pwr_baseclasses.hpp :
@ echo "Generating hpp files for pwrb classes..." @ echo "Generating hpp files for pwrb classes..."
@ $(co_convert) -po -d $(inc_dir) "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(release_root)/bld/$(type_name)/pwrb.d_hpp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/orm/pwrb_allclasses.html : $(doc_dir)/en_us/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes en_us..." @ echo "Generating html files for pwrb classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(release_root)/bld/$(type_name)/pwrb.d_html_wbl -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
@ echo "Generating html files for pwrb structs en_us..." @ echo "Generating html files for pwrb structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.h
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.hpp @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.hpp
...@@ -85,11 +90,11 @@ $(doc_dir)/en_us/orm/pwrb_allclasses.html : ...@@ -85,11 +90,11 @@ $(doc_dir)/en_us/orm/pwrb_allclasses.html :
$(exe_dir)/en_us/pwrb_xtthelp.dat : $(exe_dir)/en_us/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes en_us" @ echo "Generating xtt help files for pwrb classes en_us"
@ $(co_convert) -x -d $(exe_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(release_root)/bld/$(type_name)/pwrb.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
$(exe_dir)/sv_se/pwrb_xtthelp.dat : $(exe_dir)/sv_se/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes sv_se" @ echo "Generating xtt help files for pwrb classes sv_se"
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(release_root)/bld/$(type_name)/pwrb.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
#$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load #$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load
# @ write sys$$output "Exporting $< ..." # @ write sys$$output "Exporting $< ..."
...@@ -100,6 +105,9 @@ clean_pwrb_xtthelp : ...@@ -100,6 +105,9 @@ clean_pwrb_xtthelp :
@ if [ -e $(exe_dir)/en_us/pwrb_xtthelp.dat ]; then \ @ if [ -e $(exe_dir)/en_us/pwrb_xtthelp.dat ]; then \
$(rm) $(rmflags) $(exe_dir)/en_us/pwrb_xtthelp.dat; \ $(rm) $(rmflags) $(exe_dir)/en_us/pwrb_xtthelp.dat; \
fi fi
@ if [ -e $(exe_dir)/sv_se/pwrb_xtthelp.dat ]; then \
$(rm) $(rmflags) $(exe_dir)/sv_se/pwrb_xtthelp.dat; \
fi
clean_pwrb_html : clean_pwrb_html :
@ if [ -e $(doc_dir)/orm/en_us/pwrb_allclasses.html ]; then \ @ if [ -e $(doc_dir)/orm/en_us/pwrb_allclasses.html ]; then \
$(rm) $(rmflags) $(doc_dir)/orm/pwrb_*.html; \ $(rm) $(rmflags) $(doc_dir)/orm/pwrb_*.html; \
...@@ -116,3 +124,8 @@ clean_wbl : ...@@ -116,3 +124,8 @@ clean_wbl :
$(rm) $(rmflags) $(load_dir)/pwrb.dbs; \ $(rm) $(rmflags) $(load_dir)/pwrb.dbs; \
fi fi
-include $(release_root)/bld/$(type_name)/pwrb.d_h_wbl
-include $(release_root)/bld/$(type_name)/pwrb.d_hpp_wbl
-include $(release_root)/bld/$(type_name)/pwrb.d_html_wbl
-include $(release_root)/bld/$(type_name)/pwrb.d_en_us_xtthelp_wbl
-include $(release_root)/bld/$(type_name)/pwrb.d_sv_se_xtthelp_wbl
...@@ -26,23 +26,28 @@ endif ...@@ -26,23 +26,28 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(inc_dir)/pwr_systemclasses.h \ copy : $(inc_dir)/pwr_systemclasses.h \
$(inc_dir)/pwr_systemclasses.hpp $(inc_dir)/pwr_systemclasses.hpp \
| silent
lib : $(load_dir)/pwrs.dbs lib : $(load_dir)/pwrs.dbs | silent
exe : $(doc_dir)/en_us/orm/pwrs_allclasses.html \ exe : $(doc_dir)/en_us/orm/pwrs_allclasses.html \
$(exe_dir)/en_us/pwrs_xtthelp.dat \ $(exe_dir)/en_us/pwrs_xtthelp.dat \
$(exe_dir)/sv_se/pwrs_xtthelp.dat $(exe_dir)/sv_se/pwrs_xtthelp.dat \
| silent
clean : $(clean_wbl) clean : $(clean_wbl)
realclean : clean clean_pwrs_xtthelp clean_pwrs_html clean_systemclasses realclean : clean clean_pwrs_xtthelp clean_pwrs_html clean_systemclasses
silent :
@ :
$(load_dir)/pwrs.dbs : $(load_dir)/pwrs.dbs :
@ echo "Generating loadfile for pwrs" @ echo "Generating loadfile for pwrs"
@ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrs/src/\"/out=\"$(target)\" @ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrs/src/\"/out=\"$(target)\"
...@@ -50,15 +55,15 @@ $(load_dir)/pwrs.dbs : ...@@ -50,15 +55,15 @@ $(load_dir)/pwrs.dbs :
$(inc_dir)/pwr_systemclasses.h : $(inc_dir)/pwr_systemclasses.h :
@ echo "Generating struct files for pwrs classes..." @ echo "Generating struct files for pwrs classes..."
@ $(co_convert) -so -d $(inc_dir) "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(release_root)/bld/$(type_name)/pwrs.d_h_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load"
$(inc_dir)/pwr_systemclasses.hpp : $(inc_dir)/pwr_systemclasses.hpp :
@ echo "Generating hpp files for pwrs classes..." @ echo "Generating hpp files for pwrs classes..."
@ $(co_convert) -po -d $(inc_dir) "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(release_root)/bld/$(type_name)/pwrs.d_hpp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_c_*.wb_load"
$(doc_dir)/en_us/orm/pwrs_allclasses.html : $(doc_dir)/en_us/orm/pwrs_allclasses.html :
@ echo "Generating html files for pwrs classes en_us..." @ echo "Generating html files for pwrs classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(release_root)/bld/$(type_name)/pwrs.d_html_wbl -g $(pwre_sroot)/wbl/pwrs/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
@ echo "Generating html files for pwrs structs en_us..." @ echo "Generating html files for pwrs structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_systemclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_systemclasses.h
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr.h
...@@ -75,11 +80,11 @@ $(doc_dir)/en_us/orm/pwrs_allclasses.html : ...@@ -75,11 +80,11 @@ $(doc_dir)/en_us/orm/pwrs_allclasses.html :
$(exe_dir)/en_us/pwrs_xtthelp.dat : $(exe_dir)/en_us/pwrs_xtthelp.dat :
@ echo "Generating xtt help files for pwrs classes en_us" @ echo "Generating xtt help files for pwrs classes en_us"
@ $(co_convert) -x -d $(exe_dir)/en_us "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(release_root)/bld/$(type_name)/pwrs.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
$(exe_dir)/sv_se/pwrs_xtthelp.dat : $(exe_dir)/sv_se/pwrs_xtthelp.dat :
@ echo "Generating xtt help files for pwrs classes sv_se" @ echo "Generating xtt help files for pwrs classes sv_se"
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load" @ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(release_root)/bld/$(type_name)/pwrs.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrs/src/pwrs_*.wb_load"
#$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load #$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load
...@@ -108,3 +113,8 @@ clean_systemclasses : ...@@ -108,3 +113,8 @@ clean_systemclasses :
$(rm) $(rmflags) $(inc_dir)/pwrs_c_*.h; \ $(rm) $(rmflags) $(inc_dir)/pwrs_c_*.h; \
fi fi
-include $(release_root)/bld/$(type_name)/pwrs.d_h_wbl
-include $(release_root)/bld/$(type_name)/pwrs.d_hpp_wbl
-include $(release_root)/bld/$(type_name)/pwrs.d_html_wbl
-include $(release_root)/bld/$(type_name)/pwrs.d_en_us_xtthelp_wbl
-include $(release_root)/bld/$(type_name)/pwrs.d_sv_se_xtthelp_wbl
...@@ -26,20 +26,23 @@ endif ...@@ -26,20 +26,23 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : copy : silent
lib : $(load_dir)/rt.dbs lib : $(load_dir)/rt.dbs | silent
exe : exe : silent
clean : $(clean_wbl) clean : $(clean_wbl)
realclean : clean realclean : clean
silent :
@ :
$(load_dir)/rt.dbs : $(load_dir)/rt.dbs :
@ echo "Generating snapshot for rt" @ echo "Generating snapshot for rt"
@ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/rt/src/rt.wb_load\"/out=\"$(target)\" @ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/rt/src/rt.wb_load\"/out=\"$(target)\"
......
...@@ -26,13 +26,13 @@ endif ...@@ -26,13 +26,13 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : copy : silent
lib : $(load_dir)/wb.dbs lib : $(load_dir)/wb.dbs | silent
exe : exe :
...@@ -40,6 +40,9 @@ clean : $(clean_wbl) ...@@ -40,6 +40,9 @@ clean : $(clean_wbl)
realclean : clean realclean : clean
silent :
@ :
$(load_dir)/wb.dbs : $(load_dir)/wb.dbs :
@ echo "Generating snapshot for wb" @ echo "Generating snapshot for wb"
@ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/wb/src/wb.wb_load\"/out=\"$(target)\" @ wb_cmd -i -q create snapshot /file=\"$(pwre_sroot)/wbl/wb/src/wb.wb_load\"/out=\"$(target)\"
......
...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -59,21 +59,24 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_gif)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_gif) $(export_html) copy : $(export_gif) $(export_html) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : clean $(clean_gif) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_html) $(clean_c)
silent :
@ :
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
......
...@@ -27,22 +27,28 @@ endif ...@@ -27,22 +27,28 @@ endif
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_wbl) $(clean_wbl)
all : init copy exe all : init copy exe | silent
init : init : silent
copy : $(inc_dir)/pwr_tlogclasses.h \ copy : $(inc_dir)/pwr_tlogclasses.h \
$(inc_dir)/pwr_tlogclasses.hpp $(inc_dir)/pwr_tlogclasses.hpp \
| silent
lib : $(load_dir)/tlog.dbs lib : $(load_dir)/tlog.dbs | silent
exe : $(doc_dir)/en_us/orm/tlog_allclasses.html \ exe : $(doc_dir)/en_us/orm/tlog_allclasses.html \
$(exe_dir)/tlog_xtthelp.dat $(exe_dir)/en_us/tlog_xtthelp.dat \
$(exe_dir)/sv_se/tlog_xtthelp.dat \
| silent
clean : clean :
realclean : clean $(clean_wbl) realclean : clean $(clean_wbl)
silent :
@ :
$(load_dir)/tlog.dbs : $(load_dir)/tlog.dbs :
@ echo "Generating loadfile for tlog" @ echo "Generating loadfile for tlog"
@ export pwr_load=$(pwr_eload); \ @ export pwr_load=$(pwr_eload); \
...@@ -51,15 +57,15 @@ $(load_dir)/tlog.dbs : ...@@ -51,15 +57,15 @@ $(load_dir)/tlog.dbs :
$(inc_dir)/pwr_tlogclasses.h : $(inc_dir)/pwr_tlogclasses.h :
@ echo "Generating struct files for tlog classes..." @ echo "Generating struct files for tlog classes..."
@ $(co_convert) -so -d $(inc_dir) "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load" @ $(co_convert) -so -d $(inc_dir) -y $(release_root)/bld/$(type_name)/tlog.d_h_wbl "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load"
$(inc_dir)/pwr_tlogclasses.hpp : $(inc_dir)/pwr_tlogclasses.hpp :
@ echo "Generating hpp files for tlog classes..." @ echo "Generating hpp files for tlog classes..."
@ $(co_convert) -po -d $(inc_dir) "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load" @ $(co_convert) -po -d $(inc_dir) -y $(release_root)/bld/$(type_name)/tlog.d_hpp_wbl "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load"
$(doc_dir)/en_us/orm/tlog_allclasses.html : $(doc_dir)/en_us/orm/tlog_allclasses.html :
@ echo "Generating html files for tlog classes en_us..." @ echo "Generating html files for tlog classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load" @ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(release_root)/bld/$(type_name)/tlog.d_html_wbl "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load"
@ echo "Generating html files for tlog structs en_us..." @ echo "Generating html files for tlog structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_tlogclasses.h @ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_tlogclasses.h
@ echo "Generating html files for tlog code en_us..." @ echo "Generating html files for tlog code en_us..."
...@@ -75,11 +81,21 @@ $(doc_dir)/en_us/orm/tlog_allclasses.html : ...@@ -75,11 +81,21 @@ $(doc_dir)/en_us/orm/tlog_allclasses.html :
@ echo "Generating postscript file for tlog classes..." @ echo "Generating postscript file for tlog classes..."
@ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/tlog/src/tlog_*.wb_load" @ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/tlog/src/tlog_*.wb_load"
$(exe_dir)/tlog_xtthelp.dat : $(exe_dir)/en_us/tlog_xtthelp.dat :
@ echo "Generating xtt help files for tlog classes" @ echo "Generating xtt help files for tlog classes en_us"
@ $(co_convert) -x -d $(exe_dir) "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load" @ $(co_convert) -x -d $(exe_dir)/en_us -y $(release_root)/bld/$(type_name)/tlog.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load"
$(exe_dir)/sv_se/tlog_xtthelp.dat :
@ echo "Generating xtt help files for tlog classes sv_se"
@ $(co_convert) -x -d $(exe_dir)/sv_se -y $(release_root)/bld/$(type_name)/tlog.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/tlog/src/tlog_c_*.wb_load"
clean_wbl : clean_wbl :
@ if [ -e $(load_dir)/tlog.dbs ]; then \ @ if [ -e $(load_dir)/tlog.dbs ]; then \
$(rm) $(rmflags) $(load_dir)/tlog.dbs; \ $(rm) $(rmflags) $(load_dir)/tlog.dbs; \
fi fi
-include $(release_root)/bld/$(type_name)/tlog.d_h_wbl
-include $(release_root)/bld/$(type_name)/tlog.d_hpp_wbl
-include $(release_root)/bld/$(type_name)/tlog.d_html_wbl
-include $(release_root)/bld/$(type_name)/tlog.d_en_us_xtthelp_wbl
-include $(release_root)/bld/$(type_name)/tlog.d_sv_se_xtthelp_wbl
...@@ -46,13 +46,13 @@ clean_pwr_com := $(patsubst %.pwr_com, clean_%.pwr_com, $(pwr_com_sources)) ...@@ -46,13 +46,13 @@ clean_pwr_com := $(patsubst %.pwr_com, clean_%.pwr_com, $(pwr_com_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_sh) $(clean_sh)
all : init copy all : init copy | slient
init : init : silent
copy : $(export_sh) $(export_pwr_com) copy : $(export_sh) $(export_pwr_com) | silent
lib : lib : silent
exe : exe :
...@@ -60,6 +60,9 @@ clean : ...@@ -60,6 +60,9 @@ clean :
realclean : clean $(clean_sh) $(clean_pwr_com) realclean : clean $(clean_sh) $(clean_pwr_com)
silent :
@ :
$(export_sh) : $(exe_dir)/%.sh : %.sh $(export_sh) : $(exe_dir)/%.sh : %.sh
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
...@@ -68,14 +68,15 @@ $(src_dir)/%.dat : %.dat ...@@ -68,14 +68,15 @@ $(src_dir)/%.dat : %.dat
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
clean_obj $(clean_h) $(clean_c) $(clean_dat) clean_obj $(clean_h) $(clean_c) $(clean_dat)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_h) $(export_c) $(export_dat) \ copy : $(export_h) $(export_c) $(export_dat) \
$(exe_dir)/pwr_wb_palette.cnf $(exe_dir)/pwr_wb_palette.cnf \
| silent
lib : $(export_obj) lib : $(export_obj) | silent
exe : exe :
...@@ -84,6 +85,9 @@ clean : clean_obj ...@@ -84,6 +85,9 @@ clean : clean_obj
realclean : clean $(clean_h) $(clean_c) $(clean_dat) realclean : clean $(clean_h) $(clean_c) $(clean_dat)
silent :
@ :
$(exe_dir)/pwr_wb_palette.cnf : ../../pwr_wb_palette.cnf $(exe_dir)/pwr_wb_palette.cnf : ../../pwr_wb_palette.cnf
@ echo "Copying pwr_wb_palette.cnf" @ echo "Copying pwr_wb_palette.cnf"
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
ifndef link_rule_mk ifndef link_rule_mk
link_rule_mk := 1 link_rule_mk := 1
link = $(ldxx) -L$(pwr_elib) $(elinkflags) $(domap) -o $(pwr_exe)/wb_ge_gtk \ # Link with local wb to avoid profibus wb methods
link = $(ldxx) -L$(release_root)/wb/lib -L$(pwr_lib) -L$(pwr_elib) $(domap) -o $(pwr_exe)/wb_ge_gtk \
$(bld_dir)/wb_ge_gtk.o $(wb_msg_eobjs) $(rt_msg_eobjs) $(pwr_eobj)/pwr_msg_glow.o\ $(bld_dir)/wb_ge_gtk.o $(wb_msg_eobjs) $(rt_msg_eobjs) $(pwr_eobj)/pwr_msg_glow.o\
$(pwr_eobj)/rt_io_user.o $(pwr_eobj)/wb_provider.o \ $(pwr_eobj)/rt_io_user.o $(pwr_eobj)/wb_provider.o \
$(pwre_conf_libdir) $(pwre_conf_libpwrwbgtk) $(pwre_conf_libpwrxttgtk) $(pwre_conf_libpwrwb) \ $(pwre_conf_libdir) $(pwre_conf_libpwrwbgtk) $(pwre_conf_libpwrxttgtk) $(pwre_conf_libpwrwb) \
......
...@@ -82,21 +82,25 @@ clean_ge := $(clean_pwg) $(clean_pwsg) $(clean_pwgc) $(clean_html) ...@@ -82,21 +82,25 @@ clean_ge := $(clean_pwg) $(clean_pwsg) $(clean_pwgc) $(clean_html)
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_ge) $(clean_ge)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_ge)\ copy : $(export_ge)\
$(exe_dir)/pwr_css.css $(exe_dir)/pwr_css.css \
| silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : $(clean_ge) realclean : $(clean_ge)
silent :
@ :
$(clean_pwg) : clean_%.pwg : %.pwg $(clean_pwg) : clean_%.pwg : %.pwg
@ $(rm) $(rmflags) $(exe_dir)/$*.pwg @ $(rm) $(rmflags) $(exe_dir)/$*.pwg
......
...@@ -37,20 +37,23 @@ clean_includes := $(patsubst %.h,clean_%.h,$(sources)) ...@@ -37,20 +37,23 @@ clean_includes := $(patsubst %.h,clean_%.h,$(sources))
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_includes) $(clean_includes)
all : init copy lib exe all : init copy lib exe | silent
init : init : silent
copy : $(export_includes) copy : $(export_includes) | silent
lib : lib : silent
exe : exe : silent
clean : clean :
realclean : $(clean_includes) realclean : $(clean_includes)
silent :
@ :
$(clean_includes) : clean_%.h : %.h $(clean_includes) : clean_%.h : %.h
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
class CoWow; class CoWow;
class CoWowTimer; class CoWowTimer;
class XttOTree;
//! Window that displays sevhist curve in a SevHistCurve object. //! Window that displays sevhist curve in a SevHistCurve object.
/*! /*!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment