Changeset 0dc7c0c in git


Ignore:
Timestamp:
Jun 20, 1997, 12:30:30 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
974ce1dca728600855dac83c17ce1f8f1f4e04b3
Parents:
1df4e6c4f9c26ac3482cf04502419f4f1283e2e9
Message:
o GNUmakefile.in is still not stable so i will not describe
  all the changes.  This release is simply for security.


git-svn-id: file:///usr/local/Singular/svn/trunk@415 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/GNUmakefile.in

    r1df4e6 r0dc7c0c  
    11# @configure_input@
    2 # $Id: GNUmakefile.in,v 1.1 1997-06-02 15:56:32 schmidt Exp $
     2# $Id: GNUmakefile.in,v 1.2 1997-06-20 10:30:30 schmidt Exp $
    33#
    44# GNUmakefile - master makefile for factory.
     
    2525gftabledir =    @gftabledir@
    2626includedir =    @includedir@
    27 tagtemplatedir =@tagtemplatedir@
    2827templatedir =   @templatedir@
    2928
     
    3534#
    3635
    37 # files with version tag included (used to install factory)
    38 taglibfactory = @taglibfactory@
    39 taglibmem =     @taglibmem@
    40 tagheaderfactory=@tagheaderfactory@
    41 tagfactoryconf =@tagfactoryconf@
    42 
    43 # raw file names (used to build factory)
    4436libfactory =    @libfactory@
    4537libmem =        @libmem@
     
    5850INSTALL_DATA =  @INSTALL_DATA@
    5951INSTALL_PROGRAM=@INSTALL_PROGRAM@
    60 LN_S =          @LN_S@
    6152RANLIB =        @RANLIB@
    6253
     
    109100                $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
    110101
    111 # flags to translate tmpl_inst.cc
     102# flags to translate ftmpl_inst.cc
    112103TMPLCXXFLAGS =  -Wall \
    113104                -I. -I$(srcdir) \
     
    273264# factory template files
    274265templatesrc :=  \
    275                 array.cc \
    276                 factor.cc \
    277                 list.cc \
    278                 matrix.cc
     266                ftmpl_array.cc \
     267                ftmpl_factor.cc \
     268                ftmpl_list.cc \
     269                ftmpl_matrix.cc
    279270templateincl := \
    280                 array.h \
    281                 factor.h \
    282                 functions.h \
    283                 list.h \
    284                 matrix.h
     271                ftmpl_array.h \
     272                ftmpl_factor.h \
     273                ftmpl_functions.h \
     274                ftmpl_list.h \
     275                ftmpl_matrix.h
    285276
    286277# header templates
     
    294285                $(distfactorysrc) $(distmemmansrc) \
    295286                $(addprefix templates/,$(templatesrc)) \
    296                 readcf.cc tmpl_inst.cc
     287                readcf.cc ftmpl_inst.cc gengftables.cc
    297288
    298289# all the C/C++ include files in the distribution
     
    304295distfiles :=    \
    305296                $(distsrc) $(distincl) $(hdrtemplsrc) \
    306                 GNUmakefile.in configure.in acconfig.h stamp-h.in \
    307                 config.h.in configure \
     297                GNUmakefile.in configure.in config.h.in configure \
     298                ChangeLog \
    308299                bin/install-sh bin/makeheader bin/mkinstalldirs
    309300
     
    368359                $(BISON) $< -o $@
    369360
    370 tmpl_inst.o:    tmpl_inst.cc factoryconf.h factory.h \
     361ftmpl_inst.o:   ftmpl_inst.cc factoryconf.h factory.h \
    371362                $(addprefix templates/,$(templatesrc)) \
    372363                $(addprefix templates/,$(templateincl))
     
    374365
    375366gengftables.o:  gengftables.cc factory.h cf_util.h gf_tabutil.h
    376 
    377 gengftables:    gengftables.o tmpl_inst.o cf mem
    378                 $(CXX) $< tmpl_inst.o -lcf -lcfmem $(TESTLDFLAGS) -o $@
    379 
    380 #! not ready yet (gengftables.cc not in the distribution yet)
     367                @if test -z "$(filter mem,$(alltargets))" \
     368                  || test -z "$(filter readcf.y,$(factorysrc))"; then \
     369                  echo "You should configure --with-memman --enable-streamio"; \
     370                  echo "to make gengftables."; \
     371                  exit 1; \
     372                fi
     373                $(CXX) -c $< $(LIBCXXFLAGS) -o $@
     374
     375gengftables:    gengftables.o ftmpl_inst.o all
     376                $(CXX) $< ftmpl_inst.o -lcf -lcfmem $(TESTLDFLAGS) -o $@
     377
    381378gftables:       gengftables
     379                @echo "This command will take quite a long time to execute;"
     380                @echo "maybe you want to get the tables directly via ftp (see"
     381                @echo "INSTALL)."
    382382                $(MKINSTALLDIRS) gftables
    383383                ./gengftables
     
    398398                $(MKINSTALLDIRS) $(libdir)
    399399                $(MKINSTALLDIRS) $(includedir)
    400                 $(MKINSTALLDIRS) $(tagtemplatedir)
    401                 $(INSTALL_DATA) $(libfactory) $(libdir)/$(taglibfactory)
    402                 $(INSTALL_DATA) $(headerfactory) $(includedir)/$(tagheaderfactory)
    403                 $(INSTALL_DATA) $(factoryconf) $(includedir)/$(tagfactoryconf)
    404                 $(INSTALL_DATA) $(srcdir)/tmpl_inst.cc $(tagtemplatedir)
     400                $(MKINSTALLDIRS) $(templatedir)
     401                $(INSTALL_DATA) $(libfactory) $(libdir)/$(libfactory)
     402                $(INSTALL_DATA) $(headerfactory) $(includedir)/$(headerfactory)
     403                $(INSTALL_DATA) $(factoryconf) $(includedir)/$(factoryconf)
     404                $(INSTALL_DATA) $(srcdir)/ftmpl_inst.cc $(templatedir)
    405405                for file in $(templatesrc) $(templateincl); do \
    406                   $(INSTALL_DATA) $(srcdir)/templates/$$file $(tagtemplatedir); \
     406                  $(INSTALL_DATA) $(srcdir)/templates/$$file $(templatedir); \
    407407                done
    408408
    409 # remove old links before installing new ones
    410 installcflinks: installcf
    411                 -rm -f $(libdir)/$(libfactory)
    412                 -rm -f $(includedir)/$(headerfactory)
    413                 -rm -f $(includedir)/$(factoryconf)
    414                 -rm -f $(templatedir)
    415                 $(LN_S) $(libdir)/$(taglibfactory) $(libdir)/$(libfactory)
    416                 $(LN_S) $(includedir)/$(tagheaderfactory) $(includedir)/$(headerfactory)
    417                 $(LN_S) $(includedir)/$(tagfactoryconf) $(includedir)/$(factoryconf)
    418                 $(LN_S) $(tagtemplatedir) $(templatedir)
    419 
    420 # remove old link before installing new one
    421409installmem:     mem
    422410                $(MKINSTALLDIRS) $(libdir)
    423                 -rm -f $(libdir)/$(libmem)
    424                 $(INSTALL_DATA) $(libmem) $(libdir)/$(taglibmem)
    425                 $(LN_S) $(libdir)/$(taglibmem) $(libdir)/$(libmem)
     411                $(INSTALL_DATA) $(libmem) $(libdir)/$(libmem)
    426412
    427413installgftables: gftables
     
    438424
    439425uninstallcf:
    440                 -rm -f $(libdir)/$(taglibfactory)
    441                 -rm -f $(includedir)/$(tagheaderfactory)
    442                 -rm -f $(includedir)/$(tagfactoryconf)
    443                 -for file in $(templatesrc) $(templateincl) tmpl_inst.cc; do \
    444                   rm -f $(tagtemplatedir)/$$file; \
     426                -for file in $(templatesrc) $(templateincl) ftmpl_inst.cc; do \
     427                  rm -f $(templatedir)/$$file; \
    445428                done
     429                -rm -f $(templatedir)/ftmpl_inst.cc
     430                -rm -f $(includedir)/$(factoryconf)
     431                -rm -f $(includedir)/$(headerfactory)
     432                -rm -f $(libdir)/$(libfactory)
     433                -rmdir $(templatedir)
     434                -rmdir $(includedir)
    446435                -rmdir $(libdir)
    447                 -rmdir $(tagtemplatedir)
    448                 -rmdir $(includedir)
    449 
    450 uninstallcflinks: uninstallcf
    451                 -rm -f $(libdir)/$(libfactory)
    452                 -rm -f $(includedir)/$(headerfactory)
    453                 -rm -f $(includedir)/$(factoryconf)
    454                 -rm -f $(templatedir)
    455                 -rmdir $(libdir)
    456                 -rmdir $(includedir)
    457436
    458437uninstallmem:
    459                 -rm -f $(libdir)/$(taglibmem)
    460438                -rm -f $(libdir)/$(libmem)
    461439                -rmdir $(libdir)
     
    468446#
    469447
    470 dist:           $(srcdir)/readcf.cc \
    471                 $(srcdir)/config.h.in $(srcdir)/stamp-h.in \
    472                 $(srcdir)/configure
     448dist:           $(srcdir)/readcf.cc $(srcdir)/configure
    473449                rm -f $(distname).tar.gz
    474450                rm -rf $(distname)
    475451                $(MKINSTALLDIRS) $(distname)/templates
    476452                $(MKINSTALLDIRS) $(distname)/bin
     453#! better use ln instead of cp
    477454                for file in $(distfiles); do \
    478 #! better use ln instead of cp
    479455                  cp $(srcdir)/$$file $(distname)/$$file; \
    480456                done
     
    489465
    490466clean:         
    491                 -rm -f $(libfactory) $(libmem) \
     467                -rm -f $(libfactory) $(libmem) gengftables \
    492468                  factoryconf.h factory.h *.o *.d core *~
    493469
     
    512488                @echo "This command is intended for *real* maintainers to use; it"
    513489                @echo "deletes files that requires the autoconf tools to rebuild."
    514                 -rm -f $(srcdir)/configure $(srcdir)/config.h.in $(srcdir)/stamp-h.in
     490                -rm -f $(srcdir)/configure
    515491
    516492#
     
    534510
    535511$(srcdir)/configure: configure.in
    536                 cd $(srcdir) && autoconf
    537 
    538 # autoheader might not change config.h.in, so touch a stamp file
    539 $(srcdir)/config.h.in: stamp-h.in
    540                 @:
    541 
    542 $(srcdir)/stamp-h.in: configure.in acconfig.h
    543                 cd $(srcdir) && autoheader
    544                 echo timestamp > $(srcdir)/stamp-h.in
     512                -cd $(srcdir) && autoconf
    545513
    546514# seems gmake needs at least a trivial command.  otherwise all
Note: See TracChangeset for help on using the changeset viewer.