source: git/factory/GNUmakefile.in @ 26da1d

spielwiese
Last change on this file since 26da1d was 341696, checked in by Hans Schönemann <hannes@…>, 14 years ago
Adding Id property to all files git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 17.5 KB
Line 
1# @configure_input@
2# $Id$
3
4#
5# GNUmakefile.in - used by `configure' to create `GNUmakefile', the
6#   top level makefile for Factory.
7#
8# In general, you should let `configure' guess the correct values
9# for the variables below.  But if something seriously goes wrong
10# in configuring, please inform the authors and feel free to
11# edit the marked section.
12#
13# See the `INSTALL' file for information on how to build Factory.
14#
15# Note: Use GNU `make' (`gmake') to make with this makefile.
16#
17
18############### START OF CONFIGURABLE SECTION ###############
19
20SHELL =         /bin/sh
21
22#
23# - versions.  Do not change version here !!!
24#
25version =       @factory_version@
26distname =      factory-$(version)
27
28#
29# - paths.
30#
31prefix =        @prefix@
32exec_prefix =   @exec_prefix@
33libdir =        @libdir@
34datadir =       @datadir@
35gftabledir =    @gftabledir@
36includedir =    @includedir@
37templatedir =   @templatedir@
38
39srcdir =        @srcdir@
40VPATH =         @srcdir@
41
42#
43# - the name of the game.
44#
45libfactory =    @libfactory@
46
47#
48# - programs.
49#
50CC =            @CC@
51CXX =           @CXX@
52# seems configure sometimes finds non-BSD install, so we better
53# hardcode path to our install-sh
54INSTALL =       $(srcdir)/bin/install-sh -c
55INSTALL_DATA =  @INSTALL_DATA@
56INSTALL_PROGRAM=@INSTALL_PROGRAM@
57RANLIB =        @RANLIB@
58
59LN_S =          @LN_S@
60AR =            @AR@
61BISON =         @BISON@
62MKINSTALLDIRS = @FACTORY_MKINSTALLDIRS@
63MAKEHEADER =    @FACTORY_MAKEHEADER@
64
65#
66# - flags.
67#
68CFLAGS =        @CFLAGS@
69CPPFLAGS =      @CPPFLAGS@
70CXXFLAGS =      @CXXFLAGS@
71DEFS =          @DEFS@
72LDFLAGS =       @LDFLAGS@
73LIBS =          @LIBS@
74
75ARFLAGS =       @ARFLAGS@
76MAKEHEADERFLAGS=@MAKEHEADERFLAGS@
77
78#
79# - some other variables.
80#
81factorysrc =    @factorysrc@
82factoryincl =   @factoryincl@
83memmansrc =     @memmansrc@
84memmanincl =    @memmanincl@
85
86alltargets =    @alltargets@
87installtargets =@installtargets@
88uninstalltargets=@uninstalltargets@
89
90############### END OF CONFIGURABLE SECTION ###############
91
92#
93# - compiler flags.
94#
95WARNFLAGS =     -w
96
97# flags to translate library c files
98LIBCFLAGS =     $(WARNFLAGS) \
99                -I. -I$(srcdir) -I$(includedir) \
100                $(DEFS) $(CPPFLAGS) $(CFLAGS)
101
102# flags to translate library c++ files
103LIBCXXFLAGS =   $(WARNFLAGS) -fno-implicit-templates \
104                -I. -I$(srcdir) -I$(includedir) \
105                $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
106
107LIBCGGFLAGS =   $(WARNFLAGS) -fno-implicit-templates \
108                -I. -I$(srcdir) -I$(includedir) \
109                $(DEFS) $(CPPFLAGS)
110
111# flags to translate ftmpl_inst.cc
112TMPLCXXFLAGS =  $(LIBCXXFLAGS)
113
114# flags to link test programs
115TESTCXXFLAGS =  $(LIBCXXFLAGS)
116
117# flags to link test programs
118TESTLDFLAGS =   $(LIBS) $(LDFLAGS)
119
120# flags to create dependency lists
121DEPCXXFLAGS =   -I. -I$(srcdir) -I$(includedir) \
122                $(DEFS) $(CPPFLAGS)
123
124#
125# - source files.
126#
127
128# factory source files
129basefactorysrc := \
130                canonicalform.cc \
131                cf_algorithm.cc \
132                cf_binom.cc \
133                cf_char.cc \
134                cf_chinese.cc \
135                cf_eval.cc \
136                cf_factor.cc \
137                cf_factory.cc \
138                cf_gcd.cc \
139                cf_gcd_charp.cc \
140                cf_generator.cc \
141                cf_globals.cc \
142                cf_inline.cc \
143                cf_irred.cc \
144                cf_iter.cc \
145                cf_iter_inline.cc \
146                cf_linsys.cc \
147                cf_map.cc \
148                cf_ops.cc \
149                cf_primes.cc \
150                cf_random.cc \
151                cf_resultant.cc \
152                cf_reval.cc \
153                cf_switches.cc \
154                cf_util.cc \
155                debug.cc \
156                fac_berlekamp.cc \
157                fac_cantzass.cc \
158                fac_distrib.cc \
159                fac_ezgcd.cc \
160                fac_iterfor.cc \
161                fac_multihensel.cc \
162                fac_multivar.cc \
163                fac_sqrfree.cc \
164                fac_univar.cc \
165                fac_util.cc \
166                fieldGCD.cc \
167                ffops.cc \
168                ffreval.cc \
169                gf_tabutil.cc \
170                gfops.cc \
171                imm.cc \
172                initgmp.cc \
173                int_cf.cc \
174                int_int.cc \
175                int_intdiv.cc \
176                int_poly.cc \
177                int_pp.cc \
178                int_rat.cc \
179                sm_sparsemod.cc \
180                sm_util.cc \
181                variable.cc \
182                NTLconvert.cc \
183                abs_fac.cc \
184                bifac.cc \
185                lgs.cc
186
187singfactorysrc := \
188                singext.cc
189useiofactorysrc := \
190                parseutil.cc \
191                readcf.y
192distfactorysrc := \
193                $(basefactorysrc) \
194                $(singfactorysrc) \
195                $(useiofactorysrc)
196doxysrc :=      \
197                $(basefactorysrc) \
198                parseutil.cc
199
200# factory object files and dependencies
201factoryobj1 :=  $(factorysrc:%.cc=%.o)
202factoryobj :=   $(factoryobj1:%.y=%.o)
203factorygobj :=  $(factorysrc:%.cc=%.og)
204factorypobj :=  $(factorysrc:%.cc=%.op)
205factorydep :=   $(factorysrc:%.cc=%.d)
206factorydep :=   $(factorydep:%.y=%.d)
207
208# factory header files
209basefactoryincl := \
210                assert.h \
211                canonicalform.h \
212                cf_algorithm.h \
213                cf_binom.h \
214                cf_defs.h \
215                cf_eval.h \
216                cf_factory.h \
217                cf_generator.h \
218                cf_globals.h \
219                cf_irred.h \
220                cf_iter.h \
221                cf_map.h \
222                cf_primes.h \
223                cf_primetab.h \
224                cf_random.h \
225                cf_reval.h \
226                cf_switches.h \
227                cf_util.h \
228                debug.h \
229                fac_berlekamp.h \
230                fac_cantzass.h \
231                fac_distrib.h \
232                fac_iterfor.h \
233                fac_multivar.h \
234                fac_sqrfree.h \
235                fac_univar.h \
236                fac_util.h \
237                fieldGCD.h \
238                ffops.h \
239                ffreval.h \
240                ftmpl_array.h \
241                ftmpl_factor.h \
242                ftmpl_functions.h \
243                ftmpl_list.h \
244                ftmpl_matrix.h \
245                gf_tabutil.h \
246                gfops.h \
247                gmpext.h \
248                imm.h \
249                int_cf.h \
250                int_int.h \
251                int_poly.h \
252                int_pp.h \
253                int_rat.h \
254                sm_sparsemod.h \
255                sm_util.h \
256                timing.h \
257                variable.h \
258                NTLconvert.h \
259                bifac.h \
260                bifacConfig.h \
261                lgs.h \
262                algext.h
263
264singfactoryincl := \
265                singext.h
266useiofactoryincl := \
267                parseutil.h
268distfactoryincl := \
269                $(basefactoryincl) \
270                $(singfactoryincl) \
271                $(useiofactoryincl)
272doxyincl :=     \
273                $(basefactoryincl) \
274                parseutil.h
275
276# memory manager source files
277basememmansrc := \
278                newdelete.cc
279newmemmansrc := \
280                mmalloc.c \
281                mmallocb.c \
282                mmallocs.c \
283                mmblock.c \
284                mmheap.c \
285                mminit.c \
286                mmspec.c \
287                mmutil.c
288oldmemmansrc := \
289                memutil.c
290distmemmansrc := \
291                $(basememmansrc) \
292                $(newmemmansrc) \
293                $(oldmemmansrc)
294
295# memory manager object files and dependencies
296memmanobj :=    $(memmansrc:.cc=.o)
297memmanobj :=    $(memmanobj:.c=.o)
298memmandep :=    $(memmansrc:.cc=.d)
299memmandep :=    $(memmandep:.c=.d)
300
301# memory manager header files
302newmemmanincl := \
303                mmprivate.h \
304                memman.h
305oldmemmanincl := \
306                memutil.h
307distmemmanincl := \
308                $(newmemmanincl) \
309                $(oldmemmanincl)
310
311# factory template files
312templatesrc :=  \
313                ftmpl_array.cc \
314                ftmpl_factor.cc \
315                ftmpl_functions.h \
316                ftmpl_list.cc \
317                ftmpl_matrix.cc
318templateincl := \
319                ftmpl_array.h \
320                ftmpl_factor.h \
321                ftmpl_list.h \
322                ftmpl_matrix.h
323
324# header templates
325hdrtemplsrc := \
326                factoryconf.template \
327                factory.template
328hdrtempldep :=  $(hdrtemplsrc:.template=.d)
329
330# FTE source files
331ftestsrc :=     \
332                ftest_io.cc \
333                ftest_util.cc \
334                ntl_util.cc
335
336# FTE header files
337ftestincl :=    \
338                ftest_io.h \
339                ftest_util.h \
340                ntl_util.h
341
342# FTE m4 source files (exported for `GNUmakefile' in `ftest/').
343# The variable `$(ftestm4develsrc)' may be already initialized
344# from the development `GNUmakefile'.
345ftestm4src :=   $(ftestm4develsrc) \
346                commonden.m4 \
347                degree.m4 \
348                deriv.m4 \
349                divides.m4 \
350                divrem.m4 \
351                extgcd.m4 \
352                factorize.m4 \
353                fbinops.m4 \
354                feval.m4 \
355                gcd.m4 \
356                gcd.ntl.m4 \
357                insert.m4 \
358                norm.m4 \
359                resultant.m4 \
360                revert.m4 \
361                sqrfree.m4 \
362                size.m4 \
363                totaldegree.m4
364export ftestm4src
365
366# other files from the FTE
367ftestdistfiles := \
368                ChangeLog \
369                GNUmakefile.in \
370                ftest_util.m4
371
372# FTE executables
373ftestexec :=    $(ftestm4src:.m4=)
374
375# all the C/C++ source files in the distribution
376distsrc :=      \
377                $(distfactorysrc) $(distmemmansrc) \
378                $(addprefix templates/,$(templatesrc)) \
379                $(addprefix ftest/,$(ftestsrc)) \
380                readcf.cc ftmpl_inst.cc \
381                gengftables.cc gengftables-conway.cc test_install.cc
382
383# all the C/C++ include files in the distribution
384distincl :=     \
385                $(distfactoryincl) $(distmemmanincl) \
386                $(addprefix templates/,$(templateincl)) \
387                $(addprefix ftest/,$(ftestincl))
388
389# all files for the Windows NT environment
390distntfiles :=  \
391                config.h nt.mak \
392                factory.h factoryconf.h \
393                INSTALL.nt
394
395# all files in the distribution
396distfiles :=    \
397                $(distsrc) $(distincl) $(hdrtemplsrc) \
398                $(addprefix ftest/,$(ftestm4src)) \
399                $(addprefix ftest/,$(ftestdistfiles)) \
400                GNUmakefile.in configure.in config.h.in configure \
401                ChangeLog README NEWS INSTALL \
402                factory.cfg gen_cf_gmp.template \
403                $(addprefix winnt/,$(distntfiles)) \
404                examples/GNUmakefile examples/application.cc \
405                examples/factorize.cc examples/gcd.cc \
406                bin/folding.el bin/fold-docu.el \
407                bin/install-sh bin/mkinstalldirs \
408                bin/makeheader bin/gen-readcf
409
410#
411# - phony targets.
412#
413.PHONY:         all cf mem dist depend \
414                clean mostlyclean distclean maintainer-clean \
415                install installcf installmem installgftables installtest \
416                uninstall uninstallcf uninstallmem uninstallgftables \
417                ftestall ftestclean ftestdistclean \
418                doxy doxyclean
419
420# we make these targets phony to make sure that they are
421# up to date when a new distribution is built
422.PHONY:         $(srcdir)/winnt/factory.h $(srcdir)/winnt/factoryconf.h
423
424#
425# - pattern rules.
426#
427
428# how to create library objets
429%.o: %.cc config.h
430        $(CXX) -c $< $(LIBCXXFLAGS) -o $@
431%.o: %.c config.h
432        $(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 $@
439
440# how to create dependency files.  To avoid broken dependency files
441# (which in turn break this GNUmakefile) we first generate them in
442# a temporary file which we then move to the destination file.
443%.d: %.cc factoryconf.h config.h
444        echo $@ "\\" > $@tmp
445        $(CXX) -MM $< $(DEPCXXFLAGS) >> $@tmp
446        mv $@tmp $@
447%.d: %.c factoryconf.h config.h
448        echo $@ "\\" > $@tmp
449        $(CXX) -MM $< $(DEPCXXFLAGS) >> $@tmp
450        mv $@tmp $@
451%.d: %.template
452        echo $@ $(@:.d=.h) : "\\" > $@tmp
453        sed -n '/^\/\*MAKEHEADER/!d; n; s/^#include "//; s/"//; p;' $< | tr '\012' ' ' >> $@tmp
454        echo >> $@tmp
455        mv $@tmp $@
456
457# how to create header files from header templates
458%.h: %.template
459        $(MAKEHEADER) $(MAKEHEADERFLAGS) $< $@
460
461#
462# - building factory.
463#
464all:            $(alltargets)
465
466cf:             factoryconf.h factory.h $(libfactory) libsingcf_g.a libsingcf_p.a
467
468mem:            libcfmem.a
469
470#
471# - explicit targets.
472#
473$(libfactory):  $(factoryobj)
474                $(AR) $(ARFLAGS) $@ $^
475                $(RANLIB) $@
476
477libsingcf_g.a:  $(factorygobj)
478                $(AR) $(ARFLAGS) $@ $^
479                $(RANLIB) $@
480
481libsingcf_p.a:  $(factorypobj)
482                $(AR) $(ARFLAGS) $@ $^
483                $(RANLIB) $@
484
485libcfmem.a:     $(memmanobj)
486                $(AR) $(ARFLAGS) $@ $^
487                $(RANLIB) $@
488
489ftmpl_inst.o:   ftmpl_inst.cc factoryconf.h factory.h \
490                $(addprefix templates/,$(templatesrc)) \
491                $(addprefix templates/,$(templateincl))
492                $(CXX) -c $< $(TMPLCXXFLAGS) -o $@
493
494# note that this is a non-source file which is distributed!
495$(srcdir)/readcf.cc: readcf.y
496                @./bin/gen-readcf "${BISON}"
497
498# note that these are non-source file which are distributed!
499# We do not specify any dependencies except the most important ones.
500$(srcdir)/winnt/factory.h: factory.template
501                $(MAKEHEADER) $(MAKEHEADERFLAGS) $< $@
502$(srcdir)/winnt/factoryconf.h: factoryconf.template winnt/config.h
503                $(MAKEHEADER) -I$(srcdir)/winnt $(MAKEHEADERFLAGS) $< $@
504
505# specify dependency in case user does not 'make depend'
506factoryconf.h:  config.h cf_gmp.h
507
508TAGS:
509                etags $(addprefix $(srcdir)/, $(distsrc) $(distincl))
510
511# check configuration before building executables
512conftest:
513                @if test -z "$(filter mem,$(alltargets))" \
514                  || test -z "$(filter readcf.y,$(factorysrc))" \
515                  || test -n "$(filter singext.cc,$(factorysrc))"; then \
516                  echo "To make this target you have to configure"; \
517                  echo "\`--without-Singular --with-memman --enable-streamio'."; \
518                  exit 1; \
519                fi
520
521#
522# - doxygen.
523#
524
525# files and environment variables to export for doxygen
526doxyfiles :=    $(addprefix $(srcdir)/,$(doxysrc) $(doxyincl))
527
528export version srcdir doxyfiles
529
530# doxygen targets
531doxy:           factory.cfg $(doxysrc) $(doxyincl)
532                doxygen $<
533
534doxyclean:
535                rm -rf doxygen
536
537#
538# - Factory Test Environment.
539#
540$(ftestexec):   conftest factoryconf.h factory.h libcf.a libcfmem.a ftmpl_inst.o
541                cd ftest && $(MAKE) $@
542                @if test -r "$@"; then \
543                  :; \
544                else \
545                  echo "$(LN_S) ftest/$@ $@"; \
546                  $(LN_S) ftest/$@ $@; \
547                fi
548
549ftestall:       $(ftestexec)
550
551ftestclean:
552                -cd ftest && $(MAKE) clean
553
554ftestdistclean:
555                -cd ftest && $(MAKE) distclean
556                -rmdir ftest
557
558#
559# - GF(q) table generation.
560#
561
562# these are not all dependencies, but the most important ones
563gengftables.o:  gengftables-conway.cc conftest factory.h gf_tabutil.h
564                $(CXX) -c $< $(TESTCXXFLAGS) -o $@
565
566gengftables:    gengftables.o libcf.a libcfmem.a ftmpl_inst.o
567                $(CXX) $^ $(TESTLDFLAGS) -o $@
568
569gftables:       gengftables
570                @echo "This command will take quite a long time to execute;"
571                @echo "maybe you want to get the tables directly via ftp (see"
572                @echo "the INSTALL file)."
573                $(MKINSTALLDIRS) gftables
574                ./gengftables
575
576#
577# - installation test program.
578#
579
580# compile installation test program.  do not look up
581# header files in current directory or in $(srcdir), but use
582# the header files from the directory where they should be
583# after installation.
584test_install.o: test_install.cc
585                $(CXX) -c $< $(TESTCXXFLAGS) -I- -I$(includedir) -o $@
586
587# the same we do for ftmpl_inst.o which for this reason is named
588# iftmpl_inst.o
589iftmpl_inst.o:
590                $(CXX) -c $(templatedir)/ftmpl_inst.cc $(TMPLCXXFLAGS) -I- -I$(includedir) -o $@
591
592# link installation test program
593test_install:   test_install.o iftmpl_inst.o
594                $(CXX) $^ -L$(libdir) -lcf -lcfmem $(TESTLDFLAGS) -o $@
595
596installtest:    test_install
597                @-if ./test_install; then \
598                  echo "Installation seems ok."; \
599                else \
600                  echo "Please check path of your GF(q) tables in config.h."; \
601                fi
602
603#
604# - install targets.
605#
606install:        $(installtargets)
607
608install-nolns: install
609
610installcf:      cf
611                $(MKINSTALLDIRS) $(libdir)
612                $(MKINSTALLDIRS) $(includedir)
613                $(MKINSTALLDIRS) $(templatedir)
614                $(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
617                $(INSTALL_DATA) factory.h $(includedir)/factory.h
618                $(INSTALL_DATA) cf_gmp.h $(includedir)/cf_gmp.h
619                $(INSTALL_DATA) factoryconf.h $(includedir)/factoryconf.h
620                $(INSTALL_DATA) $(srcdir)/ftmpl_inst.cc $(templatedir)/ftmpl_inst.cc
621                for file in $(templatesrc) $(templateincl); do \
622                  $(INSTALL_DATA) $(srcdir)/templates/$$file $(templatedir)/$$file; \
623                done
624# we run `ranlib' another time for SUN machines
625                $(RANLIB) $(libdir)/$(libfactory)
626
627installmem:     mem
628                $(MKINSTALLDIRS) $(libdir)
629                $(INSTALL_DATA) libcfmem.a $(libdir)/libcfmem.a
630# once again: another run for SUN
631                $(RANLIB) $(libdir)/libcfmem.a
632
633# to a pity, this cannot be done automatically ...
634installgftables:
635                @echo "Copying GF(q) tables ..."
636                @if test -d gftables; then \
637                  $(MKINSTALLDIRS) $(gftabledir); \
638                  for file in gftables/gftable.*.*; do \
639                    $(INSTALL_DATA) $$file $(gftabledir); \
640                  done \
641                elif test -d "$(srcdir)"/gftables; then \
642                  $(MKINSTALLDIRS) $(gftabledir); \
643                  for file in "$(srcdir)"/gftables/gftable.*.*; do \
644                    $(INSTALL_DATA) $$file $(gftabledir); \
645                  done \
646                else \
647                  echo "Run 'make gftables' before installing them"; \
648                  exit 1; \
649                fi
650
651#
652# - uninstall targets.
653#
654uninstall:      $(uninstalltargets)
655
656uninstallcf:
657                -for file in $(templatesrc) $(templateincl); do \
658                  rm -f $(templatedir)/$$file; \
659                done
660                -rm -f $(templatedir)/ftmpl_inst.cc
661                -rm -f $(includedir)/factoryconf.h
662                -rm -f $(includedir)/factory.h
663                -rm -f $(libdir)/$(libfactory)
664                -rm -f $(libdir)/libsingcf_g.a
665                -rm -f $(libdir)/libsingcf_p.a
666                -rmdir $(templatedir)
667                -rmdir $(includedir)
668                -rmdir $(libdir)
669
670uninstallmem:
671                -rm -f $(libdir)/libcfmem.a
672                -rmdir $(libdir)
673
674uninstallgftables:
675                -rm -f $(gftabledir)/gftable.*.*
676                -rmdir $(gftabledir)
677
678#
679# - building a distribution.
680#
681dist:           $(srcdir)/readcf.cc $(srcdir)/configure \
682                $(srcdir)/winnt/factory.h $(srcdir)/winnt/factoryconf.h
683                rm -f $(distname).tgz
684                rm -rf $(distname)
685                $(MKINSTALLDIRS) $(distname)/bin
686                $(MKINSTALLDIRS) $(distname)/examples
687                $(MKINSTALLDIRS) $(distname)/ftest
688                $(MKINSTALLDIRS) $(distname)/winnt
689                $(MKINSTALLDIRS) $(distname)/templates
690                @echo "Copying files to distribution directory ..."
691                @for file in $(distfiles); do \
692                  ln $(srcdir)/$$file $(distname)/$$file; \
693                done
694                tar cf $(distname).tar $(distname)
695                gzip $(distname).tar
696                mv $(distname).tar.gz $(distname).tgz
697
698#
699# - cleaning up.
700#
701clean:          ftestclean
702                -rm -f $(libfactory) libcfmem.a libsingcf_g.a libsingcf_p.a \
703                  $(ftestexec) gengftables test_install \
704                  factoryconf.h factory.h *.o *.og *.op *.d *.dtmp cf_gmp.h
705
706# remove gftables only if we built them
707mostlyclean:    clean doxyclean
708                -rm -f TAGS
709                -if test ! -f gftables/README; then \
710                  rm -rf gftables; \
711                fi
712
713distclean:      ftestdistclean mostlyclean
714                -rm -f $(distname).tgz GNUmakefile stamp-h \
715                  config.cache config.log config.status config.h
716                -rm -rf $(distname)
717
718maintainer-clean: distclean
719                @echo "This command is intended for maintainers to use;"
720                @echo "it deletes files that require bison to rebuild."
721                -rm -f $(srcdir)/readcf.cc
722
723#
724# - dependencies.
725#
726# Do not generate them automatically if there are not any
727# dependencies at all.  this trick saves some time when you do
728# not want to compile but do some maintenance which do not
729# require the dependencies.  say 'make depend' to create the
730# dependencies explicitly.
731#
732depend:         $(factorydep) $(memmandep) $(hdrtempldep)
733
734ifneq ($(wildcard *.d),)
735  include $(factorydep) $(memmandep) $(hdrtempldep)
736endif
737
738#
739# - configure stuff.
740#
741$(srcdir)/configure: configure.in
742                @echo "WARNING: You need to rerun autoconf. I am proceeding, for now."
743                touch configure
744
745#               -cd $(srcdir) && autoconf
746
747# seems gmake needs at least a trivial command.  otherwise all
748# files which depend on config.h will be remade even if congig.h
749# did not change.
750config.h:       stamp-h
751                @:
752
753stamp-h:        config.h.in config.status
754                CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
755                echo timestamp > stamp-h
756
757GNUmakefile:    GNUmakefile.in config.status
758                CONFIG_FILES=GNUmakefile CONFIG_HEADERS= ./config.status
759
760ftest/GNUmakefile: ftest/GNUmakefile.in config.status
761                CONFIG_FILES=ftest/GNUmakefile CONFIG_HEADERS= ./config.status
762
763config.status:  configure
764                ./config.status --recheck
765
766# create cf_gmp.h
767cf_gmp.h: GNUmakefile gen_cf_gmp.template
768        echo "#!/bin/sh" >gen_cf_gmp.sh
769        echo "GMP_H_T=\"`$(CXX) $(LIBCXXFLAGS) -M gen_cf_gmp.cc|grep gmp.h` \"" >>gen_cf_gmp.sh
770        cat gen_cf_gmp.template >>gen_cf_gmp.sh
771        $(SHELL) gen_cf_gmp.sh
Note: See TracBrowser for help on using the repository browser.