Commit 91a08a21 authored by claes's avatar claes

Module separation

parent 96b23585
...@@ -171,6 +171,9 @@ sub build () # args: branch, subbranch, phase ...@@ -171,6 +171,9 @@ sub build () # args: branch, subbranch, phase
# #
sub build_all_modules () sub build_all_modules ()
{ {
_module("xtt");
build_all("copy");
merge();
_module("kernel"); _module("kernel");
build_all("copy"); build_all("copy");
merge(); merge();
...@@ -180,6 +183,9 @@ sub build_all_modules () ...@@ -180,6 +183,9 @@ sub build_all_modules ()
_module("kernel"); _module("kernel");
build_all("lib"); build_all("lib");
merge(); merge();
_module("xtt");
build_all("lib");
merge();
_module("wb"); _module("wb");
build_all("lib"); build_all("lib");
merge(); merge();
...@@ -219,6 +225,9 @@ sub build_all_modules () ...@@ -219,6 +225,9 @@ sub build_all_modules ()
_module("telemecanique"); _module("telemecanique");
build_all("copy"); build_all("copy");
merge(); merge();
_module("xtt");
build_all("exe");
merge();
_module("wb"); _module("wb");
build_all("exe"); build_all("exe");
merge(); merge();
...@@ -275,6 +284,8 @@ sub create_all_modules () ...@@ -275,6 +284,8 @@ sub create_all_modules ()
{ {
_module("kernel"); _module("kernel");
create(); create();
_module("xtt");
create();
_module("wb"); _module("wb");
create(); create();
_module("nmps"); _module("nmps");
...@@ -360,12 +371,13 @@ sub build_all () ...@@ -360,12 +371,13 @@ sub build_all ()
_build("lib", "co", "init copy"); _build("lib", "co", "init copy");
_build("lib", "dtt", "init copy"); _build("lib", "dtt", "init copy");
# _build("exp", "wb", "init copy"); # _build("exp", "wb", "init copy");
_build("lib", "flow", "all"); # _build("lib", "flow", "all");
_build("lib", "glow", "all"); # _build("lib", "glow", "all");
_build("lib", "co", "all"); _build("lib", "co", "all");
_build("exe", "co*", "all"); _build("exe", "co*", "all");
_build("wbl", "pwrs", "copy"); _build("wbl", "pwrs", "copy");
_build("wbl", "pwrb", "copy"); _build("wbl", "pwrb", "copy");
_build("exe", "*", "copy");
} }
if ( $lib == 1) { if ( $lib == 1) {
...@@ -422,6 +434,7 @@ sub build_all () ...@@ -422,6 +434,7 @@ sub build_all ()
_build("lib", "*", "init copy"); _build("lib", "*", "init copy");
_build("exp", "*", "init copy"); _build("exp", "*", "init copy");
_build("mmi", "*", "copy"); _build("mmi", "*", "copy");
_build("exe", "*", "copy");
} }
if ( $lib == 1) { if ( $lib == 1) {
_build("lib", "*", "lib"); _build("lib", "*", "lib");
......
include $(pwre_dir_symbols) include $(pwre_dir_symbols)
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif endif
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
include $(pwre_sroot)/tools/bld/src/$(type_name)_generic.mk include $(pwre_kroot)/tools/bld/src/$(type_name)_generic.mk
endif endif
-include ../../special.mk -include ../../special.mk
......
ifndef link_rule_mk ifndef link_rule_mk
link_rule_mk := 1 link_rule_mk := 1
link = $(ldxx) $(linkflags) $(domap) -o $(export_exe) \ link = $(ldxx) $(elinkflags) $(domap) -o $(export_exe) \
$(export_obj) $(objects) $(rt_msg_objs) \ $(export_obj) $(objects) $(rt_msg_eobjs) \
$(pwr_obj)/rt_io_user.o -L/usr/X11R6/lib\ $(pwr_eobj)/rt_io_user.o -L/usr/X11R6/lib\
-L/opt/gnome/lib \ -L/opt/gnome/lib \
-lpwr_ge -lpwr_rt -lpwr_co -lpwr_flow -lpwr_glow \ -lpwr_xtt -lpwr_ge -lpwr_rt -lpwr_co -lpwr_flow -lpwr_glow \
-lpwr_msg_dummy -lImlib -lMrm -lXm -lXpm -lXt -lX11 -lXext -lXp\ -lpwr_msg_dummy -lImlib -lMrm -lXm -lXpm -lXt -lX11 -lXext -lXp\
-lSM -lICE\ -lSM -lICE\
-ldb-4.0 -lrpcsvc -lpthread -lm -lrt -lasound -ldb-4.0 -lrpcsvc -lpthread -lm -lrt -lasound
......
include $(pwre_dir_symbols) include $(pwre_dir_symbols)
ifndef variables_mk ifndef variables_mk
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif endif
ifndef variables_mk ifndef variables_mk
include $(pwre_sroot)/tools/bld/src/$(os_name)/variables.mk include $(pwre_kroot)/tools/bld/src/$(os_name)/variables.mk
endif endif
ifndef rules_mk ifndef rules_mk
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk
endif endif
ifndef rules_mk ifndef rules_mk
include $(pwre_sroot)/tools/bld/src/$(os_name)/rules.mk include $(pwre_kroot)/tools/bld/src/$(os_name)/rules.mk
endif endif
vpath %.pwg $(hw_source):$(os_source):$(co_source) vpath %.pwg $(hw_source):$(os_source):$(co_source)
......
...@@ -41,7 +41,7 @@ all : init copy lib exe ...@@ -41,7 +41,7 @@ all : init copy lib exe
init : init :
copy : $(export_includes) $(exe_dir)/pwrp_rules.mk copy : $(export_includes)
lib : lib :
...@@ -54,9 +54,6 @@ realclean : $(clean_includes) ...@@ -54,9 +54,6 @@ realclean : $(clean_includes)
$(clean_includes) : clean_%.h : %.h $(clean_includes) : clean_%.h : %.h
@ $(rm) $(rmflags) $(inc_dir)/$*.h @ $(rm) $(rmflags) $(inc_dir)/$*.h
$(exe_dir)/pwrp_rules.mk : ../../pwrp_rules.mk
@ $(log_h_h)
@ $(cp) $(cpflags) $(source) $(target)
......
include $(pwre_dir_symbols) include $(pwre_dir_symbols)
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif endif
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
include $(pwre_sroot)/tools/bld/src/$(type_name)_generic.mk include $(pwre_kroot)/tools/bld/src/$(type_name)_generic.mk
endif endif
-include ../../special.mk -include ../../special.mk
......
include $(pwre_dir_symbols) include $(pwre_dir_symbols)
#-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk #-include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
# -include $(pwre_sroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk # -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif endif
ifeq ($($(type_name)_generic_mk),) ifeq ($($(type_name)_generic_mk),)
# include $(pwre_sroot)/tools/bld/src/$(type_name)_generic.mk # include $(pwre_kroot)/tools/bld/src/$(type_name)_generic.mk
endif endif
-include ../../special.mk -include ../../special.mk
......
ifndef variables_mk ifndef variables_mk
-include $(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk -include $(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif endif
ifndef variables_mk ifndef variables_mk
include $(pwre_sroot)/tools/bld/src/$(os_name)/variables.mk include $(pwre_kroot)/tools/bld/src/$(os_name)/variables.mk
endif endif
......
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