Skip to contentSkip to conversation

conga ./Makefile luci/Makefile ricci/Makefile ...

Cluster-devel [email protected] 1 participant 1 message Sep 9, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL4
Changes by: rmccabe at sourceware.org 2007-09-09 14:19:37

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

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

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.12.2.1&r2=1.12.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.22.2.1&r2=1.22.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.11&r2=1.11.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/make/defines.mk.in.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.6&r2=1.6.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5&r2=1.5.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.15.2.1&r2=1.15.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3&r2=1.3.4.1

Makefile +11 -11
@@ -27,13 +27,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"
 
 
@@ -42,30 +42,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
luci/Makefile +32 -32

105 lines not on this page · raw message

ricci/Makefile +18 -18
@@ -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
ricci/make/defines.mk.in +2 -2
@@ -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 ${top_srcdir}/common/*.o \
 			`pkg-config --libs libxml-2.0` \
 			`pkg-config --libs openssl`
ricci/modules/Makefile +15 -15
@@ -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: 
ricci/modules/cluster/Makefile +1 -1
@@ -31,7 +31,7 @@
 
 
 all: ${TARGET}
-	make -C clumon all
+	${MAKE} -C clumon all
 
 *.o: *.h
 
ricci/modules/cluster/clumon/src/snmp-agent/Makefile +1 -1
@@ -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