1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# makefile -- <short description>
# PROVIEW/R
# Copyright (C) 1996 by Comator Process AB.
#
# <Description>.
#
include $(pwre_dir_symbols)
ifndef variables_mk
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif
ifndef variables_mk
include $(pwre_sroot)/tools/bld/src/$(os_name)/variables.mk
endif
ifndef rules_mk
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk
endif
ifndef rules_mk
include $(pwre_sroot)/tools/bld/src/$(os_name)/rules.mk
endif
.PHONY : all init copy lib exe dirs clean realclean\
$(clean_wbl)
all : init copy lib exe | silent
init : dirs | silent
copy : $(inc_dir)/pwr_baseclasses.h \
$(inc_dir)/pwr_baseclasses.hpp \
| silent
lib : $(load_dir)/pwrb.dbs | silent
exe : $(doc_dir)/en_us/orm/pwrb_allclasses.html \
$(doc_dir)/sv_se/orm/pwrb_allclasses.html \
$(doc_dir)/en_us/orm/pwrb_baseclasses_h.html \
$(doc_dir)/sv_se/orm/pwrb_baseclasses_h.html \
$(doc_dir)/en_us/orm/pwrb_baseclasses_hpp.html \
$(doc_dir)/sv_se/orm/pwrb_baseclasses_hpp.html \
$(doc_dir)/en_us/orm/rt_plc_macro_%_h.html \
$(doc_dir)/sv_se/orm/rt_plc_macro_%_h.html \
$(doc_dir)/en_us/orm/rt_plc_%_c.html \
$(doc_dir)/sv_se/orm/rt_plc_%_c.html \
$(doc_dir)/en_us/orm/rt_c_%_c.html \
$(doc_dir)/sv_se/orm/rt_c_%_c.html \
$(doc_dir)/en_us/orm/rt_csup_c.html \
$(doc_dir)/sv_se/orm/rt_csup_c.html \
$(doc_dir)/en_us/pwrb.ps \
$(doc_dir)/sv_se/pwrb.ps \
$(exe_dir)/en_us/pwrb_xtthelp.dat \
$(exe_dir)/sv_se/pwrb_xtthelp.dat \
| silent
dirs : $(bld_dir)$(dir_ext)
clean :
realclean : clean clean_pwrb_xtthelp clean_pwrb_html clean_baseclasses
silent :
@ :
$(load_dir)/pwrb.dbs :
@ echo "Generating loadfile for pwrb"
@ wb_cmd -q -i create snapshot $(wblflags) /file=\"$(pwre_sroot)/wbl/pwrb/src/\"/out=\"$(target)\"/depend=\"$(bld_dir)/pwrb.d_wbl\"
@ chmod a+w $(target)
$(inc_dir)/pwr_baseclasses.h :
@ echo "Generating struct files for pwrb classes..."
@ $(co_convert) -so -d $(inc_dir) -y $(bld_dir)/pwrb.d_h_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(inc_dir)/pwr_baseclasses.hpp :
@ echo "Generating hpp files for pwrb classes..."
@ $(co_convert) -po -d $(inc_dir) -y $(bld_dir)/pwrb.d_hpp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes en_us..."
@ $(co_convert) -w -d $(doc_dir)/en_us/orm -y $(bld_dir)/pwrb.d_html_wbl -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/en_us/orm/pwrb_baseclasses_h.html :
@ echo "Generating html files for pwrb structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.h
$(doc_dir)/en_us/orm/pwrb_baseclasses_hpp.html :
@ echo "Generating html files for pwrb structs en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm $(inc_dir)/pwr_baseclasses.hpp
$(doc_dir)/en_us/orm/rt_plc_macro_%_h.html :
@ echo "Generating html files for pwrb code en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(pwre_sroot)/lib/rt/src/rt_plc_macro_*.h"
$(doc_dir)/en_us/orm/rt_plc_%_c.html :
@ echo "Generating html files for pwrb code en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(pwre_sroot)/lib/rt/src/rt_plc_*.c"
$(doc_dir)/en_us/orm/rt_c_%_c.html :
@ echo "Generating html files for pwrb code en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(pwre_sroot)/lib/rt/src/rt_c_*.c"
$(doc_dir)/en_us/orm/rt_csup_c.html :
@ echo "Generating html files for pwrb code en_us..."
@ $(co_convert) -c -d $(doc_dir)/en_us/orm "$(pwre_sroot)/lib/rt/src/rt_csup.c"
$(doc_dir)/sv_se/orm/pwrb_allclasses.html :
@ echo "Generating html files for pwrb classes sv_se..."
@ $(co_convert) -w -l sv_se -d $(doc_dir)/sv_se/orm -g $(pwre_sroot)/wbl/pwrb/src/cnv_setup.dat "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/sv_se/orm/pwrb_baseclasses_h.html :
@ echo "Generating html files for pwrb structs sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.h
$(doc_dir)/sv_se/orm/pwrb_baseclasses_hpp.html :
@ echo "Generating html files for pwrb structs sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm $(inc_dir)/pwr_baseclasses.hpp
$(doc_dir)/sv_se/orm/rt_plc_macro_%_h.html :
@ echo "Generating html files for pwrb code sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(pwre_sroot)/lib/rt/src/rt_plc_macro_*.h"
$(doc_dir)/sv_se/orm/rt_plc_%_c.html :
@ echo "Generating html files for pwrb code sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(pwre_sroot)/lib/rt/src/rt_plc_*.c"
$(doc_dir)/sv_se/orm/rt_c_%_c.html :
@ echo "Generating html files for pwrb code sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(pwre_sroot)/lib/rt/src/rt_c_*.c"
$(doc_dir)/sv_se/orm/rt_csup_c.html :
@ echo "Generating html files for pwrb code sv_se..."
@ $(co_convert) -c -d $(doc_dir)/sv_se/orm "$(pwre_sroot)/lib/rt/src/rt_csup.c"
$(doc_dir)/en_us/pwrb.ps :
@ echo "Generating postscript file for pwrb classes..."
@ $(co_convert) -q -d $(doc_dir)/en_us "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(doc_dir)/sv_se/pwrb.ps :
@ echo "Generating postscript file for pwrb classes..."
@ $(co_convert) -q -l sv_se -d $(doc_dir)/sv_se "$(pwre_sroot)/wbl/pwrb/src/pwrb_*.wb_load"
$(exe_dir)/en_us/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes en_us"
@ $(co_convert) -x -d $(exe_dir)/en_us -y $(bld_dir)/pwrb.d_en_us_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
$(exe_dir)/sv_se/pwrb_xtthelp.dat :
@ echo "Generating xtt help files for pwrb classes sv_se"
@ $(co_convert) -x -l sv_se -d $(exe_dir)/sv_se -y $(bld_dir)/pwrb.d_sv_se_xtthelp_wbl "$(pwre_sroot)/wbl/pwrb/src/pwrb_c_*.wb_load"
#$(export_wbl) : $(cnf_dir)/%.wb_vers : %.wb_load
# @ write sys$$output "Exporting $< ..."
# @ $(copy) $(copyflags) $(source) $(target)
# @ if f$$search("$(target)") .nes. "" then $(pur) $(purflags) $(target)
clean_pwrb_xtthelp :
@ if [ -e $(exe_dir)/en_us/pwrb_xtthelp.dat ]; then \
$(rm) $(rmflags) $(exe_dir)/en_us/pwrb_xtthelp.dat; \
fi
@ if [ -e $(exe_dir)/sv_se/pwrb_xtthelp.dat ]; then \
$(rm) $(rmflags) $(exe_dir)/sv_se/pwrb_xtthelp.dat; \
fi
clean_pwrb_html :
@ if [ -e $(doc_dir)/orm/en_us/pwrb_allclasses.html ]; then \
$(rm) $(rmflags) $(doc_dir)/orm/pwrb_*.html; \
fi
clean_baseclasses :
@ if [ -e $(inc_dir)/pwr_baseclasses.h ]; then \
$(rm) $(rmflags) $(inc_dir)/pwr_systemclasses.h; \
$(rm) $(rmflags) $(inc_dir)/pwrb_c_*.h; \
fi
clean_wbl :
@ if [ -e $(load_dir)/pwrb.dbs ]; then \
$(rm) $(rmflags) $(load_dir)/pwrb.dbs; \
fi
$(bld_dir)$(dir_ext) :
@ $(mkdir) $(mkdirflags) $(basename $@)
-include $(bld_dir)/pwrb.d_h_wbl
-include $(bld_dir)/pwrb.d_hpp_wbl
-include $(bld_dir)/pwrb.d_html_wbl
-include $(bld_dir)/pwrb.d_en_us_xtthelp_wbl
-include $(bld_dir)/pwrb.d_sv_se_xtthelp_wbl
-include $(bld_dir)/pwrb.d_wbl