Changeset 1f360dd in git


Ignore:
Timestamp:
May 13, 2009, 7:22:26 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d57c22055ecd67b8ddae703eab61eda37b068f6d
Parents:
c3efd3b8daceef769e526876195d19625344fd13
Message:
*hannes: profiling/debug libs


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

Legend:

Unmodified
Added
Removed
  • factory/GNUmakefile.in

    rc3efd3b r1f360dd  
    11# @configure_input@
    2 # $Id: GNUmakefile.in,v 1.60 2008-10-28 18:34:08 Singular Exp $
     2# $Id: GNUmakefile.in,v 1.61 2009-05-13 17:22:26 Singular Exp $
    33
    44#
     
    104104                -I. -I$(srcdir) -I$(includedir) \
    105105                $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
     106
     107LIBCGGFLAGS =   $(WARNFLAGS) -fno-implicit-templates \
     108                -I. -I$(srcdir) -I$(includedir) \
     109                $(DEFS) $(CPPFLAGS)
    106110
    107111# flags to translate ftmpl_inst.cc
     
    196200# factory object files and dependencies
    197201factoryobj :=   $(factorysrc:.cc=.o)
    198 factoryobj :=   $(factoryobj:.y=.o)
     202factoryobj :=   $(factorysrc:.y=.o)
     203factorygobj :=  $(factorysrc:%.cc=%.og)
     204factorypobj :=  $(factorysrc:%.cc=%.op)
    199205factorydep :=   $(factorysrc:.cc=.d)
    200206factorydep :=   $(factorydep:.y=.d)
     
    425431%.o: %.c config.h
    426432        $(CC) -c $< $(LIBCFLAGS) -o $@
     433# the debug version:
     434%.og: %.cc config.h
     435        $(CXX) -g -c $< $(LIBCGGFLAGS) -o $@
     436# the profiling version:
     437%.op: %.cc config.h
     438        $(CXX) -O -pg -c $< $(LIBCGGFLAGS) -o $@
    427439
    428440# how to create dependency files.  To avoid broken dependency files
     
    463475                $(RANLIB) $@
    464476
     477libsingcf_g.a:  $(factorygobj)
     478                $(AR) $(ARFLAGS) $@ $^
     479                $(RANLIB) $@
     480
     481libsingcf_p.a:  $(factorypobj)
     482                $(AR) $(ARFLAGS) $@ $^
     483                $(RANLIB) $@
     484
    465485libcfmem.a:     $(memmanobj)
    466486                $(AR) $(ARFLAGS) $@ $^
     
    593613                $(MKINSTALLDIRS) $(templatedir)
    594614                $(INSTALL_DATA) $(libfactory) $(libdir)/$(libfactory)
     615                -$(INSTALL_DATA) libsingcf_g.a $(libdir)/libsingcf_g.a
     616                -$(INSTALL_DATA) libsingcf_p.a $(libdir)/libsingcf_p.a
    595617                $(INSTALL_DATA) factory.h $(includedir)/factory.h
    596618                $(INSTALL_DATA) cf_gmp.h $(includedir)/cf_gmp.h
     
    640662                -rm -f $(includedir)/factory.h
    641663                -rm -f $(libdir)/$(libfactory)
     664                -rm -f $(libdir)/libsingcf_g.a
     665                -rm -f $(libdir)/libsingcf_p.a
    642666                -rmdir $(templatedir)
    643667                -rmdir $(includedir)
Note: See TracChangeset for help on using the changeset viewer.