[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga ./Makefile luci/Makefile ricci/Makefile ...



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe sourceware org	2007-09-09 14:18:38

Modified files:
	.              : Makefile 
	luci           : Makefile 
	ricci          : Makefile 
	ricci/make     : defines.mk.in 
	ricci/modules  : Makefile 
	ricci/modules/cluster: Makefile 
	ricci/modules/cluster/clumon/src/snmp-agent: Makefile 
	ricci/modules/storage: FSController.cpp 

Log message:
	Fix the Makefiles to allow 'make -jX' to work

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/Makefile.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/Makefile.diff?cvsroot=cluster&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/make/defines.mk.in.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Makefile.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/FSController.cpp.diff?cvsroot=cluster&r1=1.8&r2=1.9

--- conga/Makefile	2006/11/17 20:24:46	1.12
+++ conga/Makefile	2007/09/09 14:18:36	1.13
@@ -25,13 +25,13 @@
 	echo "Run 'make install_conga' to install conga"
 
 ricci:
-	make -C ricci ricci
+	${MAKE} -C ricci ricci
 
 luci:
-	make -C luci
+	${MAKE} -C luci
 
 clustermon:
-	make -C ricci clustermon
+	${MAKE} -C ricci clustermon
 	echo "Run 'make install_clustermon' to install modcluster, cluster-cim and cluster-snmp"
 
 
@@ -40,30 +40,30 @@
 install_conga: install_ricci install_luci 
 
 install_ricci:
-	make -C ricci install_ricci
+	${MAKE} -C ricci install_ricci
 
 install_luci:
-	make -C luci install
+	${MAKE} -C luci install
 
 install_clustermon: 
-	make -C ricci install_clustermon
+	${MAKE} -C ricci install_clustermon
 
 
 clean: clean_ricci clean_luci clean_clustermon
 
 clean_ricci:
-	make -C ricci clean
+	${MAKE} -C ricci clean
 
 clean_luci:
-	make -C luci clean
+	${MAKE} -C luci clean
 
 clean_clustermon:
-	make -C ricci clean_clustermon
+	${MAKE} -C ricci clean_clustermon
 
 
 distclean: 
-	make -C ricci distclean
-	make -C luci distclean
+	${MAKE} -C ricci distclean
+	${MAKE} -C luci distclean
 	rm -f conga.spec conga.spec.in
 	rm -f conga*.tar.gz conga*.src.rpm 
 	rm -f clustermon.spec clustermon.spec.in
--- conga/luci/Makefile	2007/04/26 15:59:37	1.23
+++ conga/luci/Makefile	2007/09/09 14:18:37	1.24
@@ -17,12 +17,12 @@
 all: luci
 
 luci:
-	make -C site
-	make -C conga_ssl
-	make -C utils
-	make -C init.d
-	make -C sysconfig
-	make -C docs
+	${MAKE} -C site
+	${MAKE} -C conga_ssl
+	${MAKE} -C utils
+	${MAKE} -C init.d
+	${MAKE} -C sysconfig
+	${MAKE} -C docs
 
 
 rebuild: clean all
@@ -33,8 +33,8 @@
 		install -d ${libdir}/luci ; \
 		cd zope ; \
 		./configure --prefix=${libdir}/luci/zope --with-python=/usr/bin/python ; \
-		make ; \
-		make install ; \
+		${MAKE} ; \
+		${MAKE} install ; \
 		cd .. ; \
 		chmod 700 ${libdir}/luci/zope ; \
 		utils/remove_files ${libdir}/luci/zope ${ZOPE_REMOVES} ; \
@@ -46,31 +46,31 @@
 	fi
 
 	install -d -m 700 ${DESTDIR}/var/lib/luci
-	make -C site install
-	make -C conga_ssl install
-	make -C utils install
-	make -C init.d install
-	make -C sysconfig install
-	make -C docs install
+	${MAKE} -C site install
+	${MAKE} -C conga_ssl install
+	${MAKE} -C utils install
+	${MAKE} -C init.d install
+	${MAKE} -C sysconfig install
+	${MAKE} -C docs install
 	install -d ${DESTDIR}/usr/share/doc/luci-${VERSION}/
 	install -m 644 COPYING ${DESTDIR}/usr/share/doc/luci-${VERSION}/
 
 
 clean:
-	make -C site clean
-	make -C utils clean
-	make -C init.d clean
-	make -C sysconfig clean
-	make -C docs clean
-	make -C conga_ssl clean
+	${MAKE} -C site clean
+	${MAKE} -C utils clean
+	${MAKE} -C init.d clean
+	${MAKE} -C sysconfig clean
+	${MAKE} -C docs clean
+	${MAKE} -C conga_ssl clean
 
 distclean:
-	make -C site distclean
-	make -C utils distclean
-	make -C init.d distclean
-	make -C sysconfig distclean
-	make -C docs distclean
-	make -C conga_ssl distclean
+	${MAKE} -C site distclean
+	${MAKE} -C utils distclean
+	${MAKE} -C init.d distclean
+	${MAKE} -C sysconfig distclean
+	${MAKE} -C docs distclean
+	${MAKE} -C conga_ssl distclean
 	rm -f make/defines.mk
 
 all_old: tar
@@ -78,22 +78,22 @@
 tar:
 
 import_storage:
-	make -C storage import
+	${MAKE} -C storage import
 
 export_storage:
-	make -e -C storage export
+	${MAKE} -e -C storage export
 
 import_cluster:
-	make -e -C cluster import
+	${MAKE} -e -C cluster import
 
 export_cluster:
-	make -e -C cluster export
+	${MAKE} -e -C cluster export
 
 import_homebase:
-	make -e -C homebase import
+	${MAKE} -e -C homebase import
 
 export_homebase:
-	make -e -C homebase export
+	${MAKE} -e -C homebase export
 
 import_pts: import_storage import_cluster import_homebase
 export_pts: export_storage export_cluster export_homebase
--- conga/ricci/Makefile	2006/08/09 20:53:21	1.11
+++ conga/ricci/Makefile	2007/09/09 14:18:37	1.12
@@ -17,29 +17,29 @@
 all: ricci clustermon
 
 ricci:
-	make -C common
-	make -C ricci
-	make -C modules
-	make -C init.d
-	make -C pam.d
+	${MAKE} -C common
+	${MAKE} -C ricci
+	${MAKE} -C modules
+	${MAKE} -C init.d
+	${MAKE} -C pam.d
 
 clustermon:
-	make -C common
-	make -C modules clustermon
+	${MAKE} -C common
+	${MAKE} -C modules clustermon
 
 install: install_ricci install_clustermon
 
 install_ricci: 
 	$(INSTALL_DIR) -m 700 ${localstatedir}/lib/ricci
-	make -C ricci install
-	make -C modules install
-	make -C init.d install
-	make -C pam.d install
+	${MAKE} -C ricci install
+	${MAKE} -C modules install
+	${MAKE} -C init.d install
+	${MAKE} -C pam.d install
 	$(INSTALL_DIR)  ${docdir}/ricci-${VERSION}/
 	$(INSTALL_FILE) COPYING ${docdir}/ricci-${VERSION}/
 
 install_clustermon:
-	make -C modules install_clustermon
+	${MAKE} -C modules install_clustermon
 	$(INSTALL_DIR)  ${docdir}/modcluster-${VERSION}/
 	$(INSTALL_FILE) COPYING ${docdir}/modcluster-${VERSION}/
 
@@ -47,14 +47,14 @@
 uninstall: 
 
 clean:
-	make -C common clean
-	make -C ricci clean
-	make -C modules clean
-	make -C init.d clean
-	make -C pam.d clean
+	${MAKE} -C common clean
+	${MAKE} -C ricci clean
+	${MAKE} -C modules clean
+	${MAKE} -C init.d clean
+	${MAKE} -C pam.d clean
 
 clean_clustermon: 
-	make -C modules clean
+	${MAKE} -C modules clean
 
 distclean: clean
 	rm -f make/defines.mk
--- conga/ricci/make/defines.mk.in	2007/09/07 19:49:29	1.7
+++ conga/ricci/make/defines.mk.in	2007/09/09 14:18:37	1.8
@@ -38,8 +38,8 @@
 INCLUDE         += -I $(top_srcdir)/include \
 			`pkg-config --cflags libxml-2.0` \
 			`pkg-config --cflags openssl`
-CFLAGS          += -Wall -Wno-unused -fPIC -g ${INCLUDE}
-CXXFLAGS        += -Wall -Wno-unused -fPIC -g ${INCLUDE}
+CFLAGS          += -Wall -Wno-unused -fPIC -O2 -g ${INCLUDE}
+CXXFLAGS        += -Wall -Wno-unused -fPIC -O2 -g ${INCLUDE}
 LDFLAGS         += -fPIC -lpthread \
 			`pkg-config --libs libxml-2.0` \
 			`pkg-config --libs openssl`
--- conga/ricci/modules/Makefile	2006/08/09 20:53:22	1.5
+++ conga/ricci/modules/Makefile	2007/09/09 14:18:37	1.6
@@ -12,33 +12,33 @@
 .PHONY: clustermon
 
 all: 
-	make -C storage
-	make -C rpm
-	make -C log
-	make -C service
+	${MAKE} -C storage
+	${MAKE} -C rpm
+	${MAKE} -C log
+	${MAKE} -C service
 
 
 clustermon:
-	make -C cluster
+	${MAKE} -C cluster
 
 
 install: 
-	make -C storage install
-	make -C rpm install
-	make -C log install
-	make -C service install
+	${MAKE} -C storage install
+	${MAKE} -C rpm install
+	${MAKE} -C log install
+	${MAKE} -C service install
 
 install_clustermon:
-	make -C cluster install
+	${MAKE} -C cluster install
 
 uninstall: 
 
 clean:
-	make -C storage clean
-	make -C cluster clean
-	make -C rpm clean
-	make -C log clean
-	make -C service clean
+	${MAKE} -C storage clean
+	${MAKE} -C cluster clean
+	${MAKE} -C rpm clean
+	${MAKE} -C log clean
+	${MAKE} -C service clean
 
 
 check: 
--- conga/ricci/modules/cluster/Makefile	2007/09/07 19:07:22	1.17
+++ conga/ricci/modules/cluster/Makefile	2007/09/09 14:18:37	1.18
@@ -35,7 +35,7 @@
 endif
 
 all: ${TARGET}
-	make -C clumon all
+	${MAKE} -C clumon all
 
 *.o: *.h
 
--- conga/ricci/modules/cluster/clumon/src/snmp-agent/Makefile	2007/09/07 19:07:22	1.4
+++ conga/ricci/modules/cluster/clumon/src/snmp-agent/Makefile	2007/09/09 14:18:37	1.5
@@ -14,7 +14,7 @@
 include ${top_srcdir}/make/defines.mk
 
 
-SNMP_CFLAGS = `net-snmp-config --cflags`
+SNMP_CFLAGS = `net-snmp-config --cflags | sed -r 's/(-lcrypto|-Wdeclaration-after-statement)//g'`
 SNMP_LDLAGS = `net-snmp-config --libs`
 
 INCLUDE     += -I ../include
--- conga/ricci/modules/storage/FSController.cpp	2007/06/27 08:14:23	1.8
+++ conga/ricci/modules/storage/FSController.cpp	2007/09/09 14:18:38	1.9
@@ -28,14 +28,20 @@
 #include "UnsupportedFS.h"
 #include "utils.h"
 #include <errno.h>
+
+#ifdef MY_BUILD_SYSTEM_IS_NOT_BROKEN
+
 #include <libgroup.h>
 
+#endif
+
 using namespace std;
 
 std::list<String>
 FSController::get_fs_group_ids(const String& name)
 {
 	list<String> members;
+#ifdef MY_BUILD_SYSTEM_IS_NOT_BROKEN
 	group_data_t fsgroup;
 
 	if (group_get_group(2, name.c_str(), &fsgroup) != 0)
@@ -51,6 +57,7 @@
 			throw String("invalid node id");
     	members.push_back(String(buf));
 	}
+#endif
 	return members;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]