diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
commit | d9661aebab28abc0ec4fb1e716170d347d56c168 (patch) | |
tree | ecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /include/makeinclude/rules.lib.GNU | |
parent | ea0d28240863caf437a18071bfd03e7b146c5ade (diff) | |
download | ATCD-unlabeled-4.3.2.tar.gz |
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'include/makeinclude/rules.lib.GNU')
-rw-r--r-- | include/makeinclude/rules.lib.GNU | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/include/makeinclude/rules.lib.GNU b/include/makeinclude/rules.lib.GNU deleted file mode 100644 index a988330d2d4..00000000000 --- a/include/makeinclude/rules.lib.GNU +++ /dev/null @@ -1,113 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Build libraries (i.e., contain no binary executables) -# GNU version -# Requires GNU make -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# The following targets arrange to build both unshared and shared libraries -#---------------------------------------------------------------------------- - -VSHLIB = $(SHLIB:%.so=%$(VAR).so) -VOBJS = $(LSRC:%.cpp=$(VDIR)%.o) - -ifdef TEMPINCDIR -VSHOBJS1 = -else -LSRC += $(LSRC2) -ifdef PRELIB -VSHOBJS = $(LSRC:%.cpp=$(VSHDIR)%.so) -VSHOBJS1 = $(VSHOBJS) -else -VSHOBJS = $(LSRC:%.cpp=$(VSHDIR)%.so) -VSHOBJS1 = $(LSRC:%.cpp=$(VSHDIR)%.o) -endif -endif - -# Comment out for now... -# $(DEFS:%=$(INSINC)/%) \ - -INSTALL = $(VLIB:%.a=$(INSLIB)/%.a) \ - $(VSHLIB:%.so=$(INSLIB)/%.so) - -ifdef PRELIB -# Unfortunately, gcc has to do a link of all of the objects (during which -# it may decide to recompile some of the objects), before we can safely build -# any libraries or shared objects. Comment this line if no shared -# libraries or objects are used. -$(VSHOBJS): $(VSHLIB) -endif - -# Comment these lines out if you want to build both *.a and *.so libraries... -#$(VSHLIB): $(VSHOBJS) $(STATLIB) -#ifdef PRELIB -# $(PRELIB) -#endif -# $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)*.o - -# Uncomment the remaining lines if you want to build both *.a and *.so libraries... -VLIB = $(LIB:%.a=%$(VAR).a) - -$(VLIB): $(VOBJS) -ifdef PRELIB - $(PRELIB) -endif - $(AR) $(ARFLAGS) $@ $? -ifdef TEMPINCDIR -# This is required for AIX!!! - if test -e xxx; \ - then \ - rm xxx; \ - fi - (if test -s ./$(TEMPINCDIR)/*.C; \ - then \ - while ! test -e xxx; \ - do \ - touch xxx; \ - cd ./$(TEMPINCDIR); \ - for temp in *.C; \ - do \ - if ! test -d ./$(TEMPINCDIR); \ - then \ - cd ..; \ - fi; \ - if $(COMPILE.cc) -o $(VDIR)$$temp.o ./$(TEMPINCDIR)/$$temp; \ - then \ - $(AR) $(ARFLAGS) $@ $(VDIR)$$temp.o;\ - else \ - rm $@; \ - rm xxx; \ - exit; \ - fi \ - done; \ - for temp in ./$(TEMPINCDIR)/*.C; \ - do \ - if test $$temp -nt xxx; \ - then \ - rm xxx; \ - break; \ - fi \ - done \ - done; \ - fi) - rm xxx -endif - -chmod a+r $@ - -$(RANLIB) $@ - -# Note that if you don't want to build shared libraries, just remove the $(VSHOBJS) -$(VSHLIB): $(VSHOBJS) $(STATLIB) -ifdef PRELIB - $(PRELIB) -endif - $(SOLINK.cc) -o $@ $(VSHOBJS1) $(LDFLAGS) $(LIBS) $(STATLIB) - -chmod a+rx $@ - -ifdef SHLIBA -$(SHLIBA): $(VSHLIB) - $(AR) $(ARFLAGS) $@ $? - -chmod a+rx $@ - -$(RANLIB) $@ -endif |