summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.local.GNU
diff options
context:
space:
mode:
authoragg1 <agg1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-25 01:24:28 +0000
committeragg1 <agg1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-25 01:24:28 +0000
commit039733a1ee38680c38193a1c23e58d020b17597b (patch)
treeec7b181867e50c872cca0b4e2a242efc782fdea5 /include/makeinclude/rules.local.GNU
parent367b66076e9b70598a09e0f76a21d4fc0087b4f4 (diff)
downloadATCD-039733a1ee38680c38193a1c23e58d020b17597b.tar.gz
Mon Jul 24 20:21:47 2000 Andrew G. Gilpin <agg1@cs.wustl.edu>
Diffstat (limited to 'include/makeinclude/rules.local.GNU')
-rw-r--r--include/makeinclude/rules.local.GNU18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU
index d1e86e67638..c634216ffcc 100644
--- a/include/makeinclude/rules.local.GNU
+++ b/include/makeinclude/rules.local.GNU
@@ -12,7 +12,7 @@
#### platform_sunos5_sunc++.GNU for an example.
OBJDIRS += $(TEMPLATE_REPOSITORY)
-all.local: build.objdirs build.local install.local
+all.local: $(split_target) build.objdirs build.local install.local
#----------------------------------------------------------------------------
# C/C++ compilation targets
@@ -85,8 +85,16 @@ else
$(VSHDIR)%.$(SOEXT): %.cpp
$(SOBUILD)
endif
+
+ifeq ($(split), 1)
+$(VSHDIR)%.$(OBJEXT): %.cpp
+ $(COMPILE.cc) $(PIC) SPLIT/`echo $< | sed "s/.cpp/_S\*/"`
+ mv *.$(OBJEXT) $(OBJDIRS)
+else
$(VSHDIR)%.$(OBJEXT): %.cpp
$(COMPILE.cc) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
+endif
+
$(VSHDIR)%.$(OBJEXT): %.cc
$(COMPILE.cc) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
$(VSHDIR)%.$(OBJEXT): %.c
@@ -265,3 +273,11 @@ else
$(OBJDIRS):
test -d $@ || mkdir $@
endif
+
+#---------------------------------------------------------------------------
+# Source file splitting
+#---------------------------------------------------------------------------
+SPLIT:
+ @echo "Splitting source files..."
+ @$(ACE_ROOT)/bin/split-cpp -s Svc_Conf_l.cpp -s Svc_Conf_y.cpp $(LSRC)
+ @echo "done."