[singular] 06/45: miscellaneous Makefile.in patches

felix salfelder felix-guest at alioth.debian.org
Sat Sep 14 13:57:00 UTC 2013


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master-3-1-5
in repository singular.

commit 94e0ec4226ea3d90888384d62e52bd3cba253894
Author: Felix Salfelder <felix at salfelder.org>
Date:   Thu Feb 16 12:37:00 2012 +0100

    miscellaneous Makefile.in patches
    
         - fix flags (mostly search paths)
         - repair default and install targets
         - remove dependency on mod2.h in kernel. "make depend" works fine
---
 Singular/Makefile.in   |   48 ++++++++++++++++++++++++++++++------------------
 emacs/Makefile.in      |    5 ++++-
 factory/GNUmakefile.in |   18 ++++++++++--------
 kernel/Makefile.in     |   10 +++++-----
 omalloc/Makefile.in    |    6 +++---
 5 files changed, 52 insertions(+), 35 deletions(-)

diff --git a/Singular/Makefile.in b/Singular/Makefile.in
index 3e02df1..3275701 100644
--- a/Singular/Makefile.in
+++ b/Singular/Makefile.in
@@ -85,7 +85,7 @@ endif
 DEFS		= -DNDEBUG -DOM_NDEBUG -D at SING_UNAME@ @DEFS@
 LDFLAGS2	= @LDFLAGS@
 ifneq ($(SINGUNAME),ix86-Win)
-LDFLAGS		= -L at prefix@/kernel -L../kernel -lkernel @LDFLAGS@ 
+LDFLAGS		= -L at prefix@/kernel -L../kernel -L../omalloc -L../libfac -L../factory -lkernel @LDFLAGS@
 LDFLAGSG	= -L at prefix@/kernel -L../kernel -lkernel_g @LD_DYN_FLAGS1@ @LDFLAGS@ 
 LDFLAGSP	= -L at prefix@/kernel -L../kernel -lkernel_p @LD_DYN_FLAGS1@ @LDFLAGS@ 
 else
@@ -358,9 +358,9 @@ GFTABLES = $(wildcard LIB/gftables/[1-9]*)
 	fi
 
 .cc.o:	
-	${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
+	${CXX} -fPIC ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
 .c.o:
-	${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
+	${CC} -fPIC ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
 
 %.dl_o : %.cc
 	${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -c $< -o $@
@@ -382,11 +382,13 @@ Singular${S_EXT}: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc  ${OBJS} \
 	  tesths.cc iparith.o mpsr_Tok.o claptmpl.o\
 	  ${OBJS} ${LDFLAGS} ${LIBS} ../kernel/mmalloc.o 
 
-libsingular: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc  ${OBJS} \
-         iparith.o libparse.cc claptmpl.o mpsr_Tok.o $(DL_LIBS) 
+libsingular: libsingular.${SO_SUFFIX}
+
+libsingular.${SO_SUFFIX}: version.h $(WIN_LIBS) scanner.cc  ${OBJS} \
+         iparith.o libparse.cc claptmpl.o mpsr_Tok.o $(DL_LIBS) tesths.o
 	$(LIBSINGULAR_LD) ${SLDFLAGS} ${LIBSINGULAR_FLAGS} -o libsingular.${SO_SUFFIX} \
-	iparith.o mpsr_Tok.o claptmpl.o \
-	${OBJS} -lkernel -L../kernel -L../factory -L../libfac -L${libdir} ${LIBSINGULAR_LIBS}
+ 	tesths.o iparith.o mpsr_Tok.o claptmpl.o \
+ 	${OBJS} -lkernel -L../kernel -L../factory -L../libfac -L../omalloc -L${libdir} ${LIBSINGULAR_LIBS}
 
 libsingular.a: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc  ${OBJS} \
          iparith.o libparse.cc claptmpl.o mpsr_Tok.o
@@ -422,13 +424,16 @@ iparith.inc: gentable.cc grammar.h tok.h table.h mod2.h
 	 ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable.cc \
 	     -o gentable1
 	./gentable1
-	/bin/rm -f gentable1 gentable1.exe
+	# /bin/rm -f gentable1 gentable1.exe
 
 mpsr_Tok.inc: gentable2.cc grammar.h tok.h table.h mod2.h
 	${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable2.cc \
 	     -o gentable2
 	./gentable2
-	/bin/rm -f gentable2 gentable2.exe
+	# /bin/rm -f gentable2 gentable2.exe
+	#
+	# FIXME: the above doesnt work.
+	touch $@
 
 
 version.h: ${SOURCES} ${HEADERS} Makefile.in mod2.h.in \
@@ -468,17 +473,17 @@ TSingular: mod2.h feOpt.cc version.h emacs.cc \
 feOpt.o: feOpt.inc feOptES.inc feOptTS.inc
 extra.o: feOpt.inc
 
-feOpt.inc: feOpt.cc mod2.h
+feOpt.inc: feOpt.cc |mod2.h
 	$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} feOpt.cc -o feOpt
 	./feOpt
 	/bin/rm -f feOpt feOpt.exe
 
-feOptES.inc: feOpt.cc mod2.h
+feOptES.inc: feOpt.cc |mod2.h
 	$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX  -DESINGULAR -I../kernel feOpt.cc -o feOptES
 	./feOptES
 	rm -f feOptES feOptES.exe
 
-feOptTS.inc: feOpt.cc mod2.h
+feOptTS.inc: feOpt.cc |mod2.h
 	$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX  -DTSINGULAR -I../kernel feOpt.cc -o feOptTS
 	./feOptTS
 	rm -f feOptTS feOptTS.exe
@@ -549,11 +554,11 @@ endif
 ##
 ## install targets
 ##
-install: all installbin installslib
+install: all installbin installslib install-libsingular
 
 install_all: install
 
-install-nolns: all installbin-nolns installslib-nolns
+install-ln: all installbin installslib-ln
 
 installbin: ${SING_EXEC} libparse ESingular TSingular ${RUN_SINGULARS}
 	${MKINSTALLDIRS} $(DESTDIR)${bindir}
@@ -561,6 +566,12 @@ installbin: ${SING_EXEC} libparse ESingular TSingular ${RUN_SINGULARS}
 	-for file in *.so; do \
 	  ${INSTALL_PROGRAM} $$file $(DESTDIR)${bindir}; \
 	done
+	${MKINSTALLDIRS} $(DESTDIR)${install_bindir}
+	${MKINSTALLDIRS} $(DESTDIR)${libdir}
+	${INSTALL_PROGRAM} ${SING_EXEC} $(DESTDIR)${SINGULAR}
+	for file in *.so; do \
+	  ${INSTALL_PROGRAM} $$file $(DESTDIR)${libdir}; \
+	done
 	${INSTALL_PROGRAM} libparse ${RUN_SINGULARS} $(DESTDIR)${bindir}
 	${INSTALL_PROGRAM} ESingular TSingular $(DESTDIR)${bindir}
 	${INSTALL_PROGRAM} surfex $(DESTDIR)${bindir}
@@ -571,10 +582,10 @@ installbin: ${SING_EXEC} libparse ESingular TSingular ${RUN_SINGULARS}
 installbin-nolns: installbin
 	${INSTALL_PROGRAM} ${SING_EXEC} $(DESTDIR)${install_bindir}/Singular${EXEC_EXT};
 
-installslib: LIB
+installslib-ln: LIB
 	test -r ${slibdir} || ${LN_S} `pwd`/LIB ${slibdir}
 
-installslib-nolns: LIB
+installslib: LIB
 	${MKINSTALLDIRS} $(DESTDIR)${slibdir}
 	for file in `pwd`/LIB/*.lib; do \
 	  ${INSTALL_DATA}  $$file $(DESTDIR)${slibdir}; \
@@ -584,7 +595,7 @@ installslib-nolns: LIB
 	  ${INSTALL_DATA}  $$file $(DESTDIR)${slibdir}; \
 	done
 
-install-libsingular: libsingular installslib-nolns
+install-libsingular: libsingular installslib
 	${MKINSTALLDIRS} $(DESTDIR)${includedir}/singular
 	for file in *.$(SO_SUFFIX); do \
 	  ${INSTALL_PROGRAM}  $$file $(DESTDIR)${libdir}; \
@@ -607,11 +618,12 @@ uninstallbin:
 mostlyclean: 
 	-rm -f Singular Singular-static Singularg Singularp libparse feOpt*.inc
 	-rm -f *.o *.og core *.op *.so* *.dl_o*
-	-rm -f ESingular* TSingular*
+	-rm -f ESingular* TSingular* libsingular
 
 clean: mostlyclean
 	-rm -f *.bak *.d *.dd depend 
 	-rm -f ${slibdir}
+	-rm -f gentable1 gentable2
 
 distclean: clean
 	-rm -f iparith.inc mpsr_Tok.inc stamp.h 
diff --git a/emacs/Makefile.in b/emacs/Makefile.in
index 86ba445..47c57e1 100644
--- a/emacs/Makefile.in
+++ b/emacs/Makefile.in
@@ -42,9 +42,12 @@ lib-cmpl.el: ${prefix}/Singular/Makefile lib.pl
 	(cd ${prefix}/Singular;${MAKE} --no-print-directory -s -f Makefile echoLIBS) > lib-temp
 	${PERL} lib.pl -s ${singulardir} `cat lib-temp` > lib-cmpl.el
 
-clean mostlyclean distclean:
+clean mostlyclean:
 	rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el
 
+distclean: mostlyclean
+	rm -f Makefile
+
 install-sharedist: all
 	${MKINSTALLDIRS} ${emacsdir}
 	${INSTALL_DATA} cmd-cmpl.el ${emacsdir}
diff --git a/factory/GNUmakefile.in b/factory/GNUmakefile.in
index 85d866b..ad740c9 100644
--- a/factory/GNUmakefile.in
+++ b/factory/GNUmakefile.in
@@ -384,24 +384,24 @@ distfiles :=	\
 #
 
 # how to create library objects
-%.o: %.cc config.h factoryconf.h
+%.o: %.cc config.h |factoryconf.h
 	$(CXX) -c $< $(LIBCXXFLAGS) -o $@
 %.o: %.c config.h
 	$(CC) -c $< $(LIBCFLAGS) -o $@
 # the debug version:
-%.og: %.cc config.h factoryconf.h
+%.og: %.cc config.h |factoryconf.h
 	$(CXX) -g -c $< $(LIBCGGFLAGS) -o $@
 # the profiling version:
-%.op: %.cc config.h factoryconf.h
+%.op: %.cc config.h |factoryconf.h
 	$(CXX) -O -pg -c $< $(LIBCGGFLAGS) -o $@
 
 # how to create dependency files.  To avoid broken dependency files
 # (which in turn break this GNUmakefile) we first generate them in
 # a temporary file which we then move to the destination file.
-%.dtmp: %.cc factoryconf.h config.h
+%.dtmp: %.cc |factoryconf.h config.h
 	echo $*.d "\\" > $@
 	$(CXX) -MM $< $(DEPCXXFLAGS) >> $@
-%.dtmp: %.c factoryconf.h config.h
+%.dtmp: %.c |factoryconf.h config.h
 	echo $*.d "\\" > $@
 	$(CXX) -MM $< $(DEPCXXFLAGS) >> $@
 %.dtmp: %.template
@@ -681,8 +681,10 @@ $(srcdir)/configure: configure.in
 # seems gmake needs at least a trivial command.  otherwise all
 # files which depend on config.h will be remade even if congig.h
 # did not change.
-config.h:	stamp-h
-		@:
+#
+# WTF?
+#config.h:	stamp-h
+#		@:
 
 stamp-h:	config.h.in config.status
 		CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
@@ -695,7 +697,7 @@ config.status:	configure
 		./config.status --recheck
 
 # create cf_gmp.h
-cf_gmp.h: GNUmakefile gen_cf_gmp.template
+cf_gmp.h: gen_cf_gmp.template
 	echo "#!/bin/sh" >gen_cf_gmp.sh 
 	echo "GMP_H_T=\"`$(CXX) $(LIBCXXFLAGS) -M gen_cf_gmp.cc|grep gmp.h` \"" >>gen_cf_gmp.sh 
 	cat gen_cf_gmp.template >>gen_cf_gmp.sh
diff --git a/kernel/Makefile.in b/kernel/Makefile.in
index 6f58083..78d2b07 100644
--- a/kernel/Makefile.in
+++ b/kernel/Makefile.in
@@ -253,12 +253,12 @@ p_Procs_Dynamic.o p_Procs_Lib.o p_Procs_Dynamic.og p_Procs_Lib.og\
 p_Procs_Dynamic.inc p_Procs_Lib.inc: p_Procs_Dynamic.h
 
 # here is how p_Procs_[Static|Dynamic].inc is generated
-p_Procs_Static.inc: p_Procs_Generate.cc p_Procs_Impl.h |mod2.h
+p_Procs_Static.inc: p_Procs_Generate.cc p_Procs_Impl.h
 	$(CXX) $(CPPFLAGS) -g -Dp_Procs_Static p_Procs_Generate.cc -o p_Procs_Static
 	./p_Procs_Static > p_Procs_Static.xx && mv p_Procs_Static.xx p_Procs_Static.inc
 	-rm -f p_Procs_Static p_Procs_Static.exe
 
-p_Procs_Dynamic.inc: p_Procs_Generate.cc p_Procs_Impl.h |mod2.h
+p_Procs_Dynamic.inc: p_Procs_Generate.cc p_Procs_Impl.h
 	$(CXX) $(CPPFLAGS) -g -Dp_Procs_Dynamic p_Procs_Generate.cc -o p_Procs_Dynamic
 	./p_Procs_Dynamic > p_Procs_Dynamic.xx && mv p_Procs_Dynamic.xx p_Procs_Dynamic.inc
 	-rm -f p_Procs_Dynamic p_Procs_Dynamic.exe
@@ -439,15 +439,15 @@ libkernel_p.a: ${OBJP} ${DL_LIBSP} ${OBJSP2}
 ## dependencies
 ##
 
-%.dd: %.cc mod2.h 
+%.dd: %.cc
 	echo $(@:.dd=.og) $(@:.dd=.op) $(@:.dd=.dl_o) $(@:.dd=.dl_og) $(@:.dd=.dl_op)" " \\ > $@
 	$(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@
 
-%.d: %.c mod2.h 
+%.d: %.c
 	echo $(@:.d=.og) $(@:.d=.op) " " \\ > $@
 	$(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@
 
-depend:   $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h
+depend:   $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d)
 	cat *.d *.dd >depend
 
 ifeq (depend,$(wildcard depend))
diff --git a/omalloc/Makefile.in b/omalloc/Makefile.in
index 8661ca2..1dd2e36 100644
--- a/omalloc/Makefile.in
+++ b/omalloc/Makefile.in
@@ -180,9 +180,9 @@ configure: configure.in
 ##
 install-nolns: install
 
-install-libsingular:
-	$(MKINSTALLDIRS) $(includedir)/singular
-	$(INSTALL) omalloc.h $(includedir)/singular
+#install-libsingular:
+#	$(MKINSTALLDIRS) $(includedir)/singular
+#	$(INSTALL) omalloc.h $(includedir)/singular
 
 install install-libsingular: all
 	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/singular.git



More information about the debian-science-commits mailing list