From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/agents/xvm Makefile
Date: 5 Jul 2007 14:27:28 -0000 [thread overview]
Message-ID: <20070705142728.30499.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-07-05 14:27:27
Modified files:
fence/agents/xvm: Makefile
Log message:
Overload Makefile to give Lon a build target and keep the style consistent
across.
Most important change (really) is to keep incdir as last or custom incdir
build will break.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
--- cluster/fence/agents/xvm/Makefile 2007/06/27 13:32:56 1.11
+++ cluster/fence/agents/xvm/Makefile 2007/07/05 14:27:27 1.12
@@ -14,7 +14,7 @@
TARGET1= fence_xvm
TARGET2= fence_xvmd
-
+TARGET3= testprog
OBJS1= fence_xvm.o \
ip_lookup.o
@@ -25,6 +25,8 @@
vm_states.o \
xml.o
+OBJS3= xml-standalone.o
+
SHAREDOBJS= mcast.o \
simple_auth.o \
tcp.o \
@@ -35,15 +37,17 @@
CFLAGS += -Wall -Werror -Wstrict-prototypes -Wshadow -ggdb
CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${openaisincdir}
CFLAGS += -I${virtincdir} -I${nssincdir} -I${nsprincdir}
-CFLAGS += -I${incdir}
CFLAGS += `xml2-config --cflags`
+CFLAGS += -I${incdir}
+
+EXTRA_CFLAGS += -DSTANDALONE
LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -L${dlmlibdir}
LDFLAGS += -L${nsslibdir} -L${nsprlibdir} -L${libdir}
-LDFLAGS += -lccs -lcman -ldlm -lnss3 -lnspr4
+LDFLAGS += -lccs -lcman -ldlm -lnss3 -lnspr4
EXTRA_LDFLAGS += -L${virtlibdir} -lvirt -L${openaislibdir} -lSaCkpt
-EXTRA_LDFLAGS += `xml2-config --libs`
+XML_LDFLAGS += `xml2-config --libs`
all: ${TARGET1} ${TARGET2}
@@ -51,13 +55,19 @@
$(CC) -o $@ $^ $(LDFLAGS)
${TARGET2}: ${SHAREDOBJS} ${OBJS2}
- $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS)
+ $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(XML_LDFLAGS)
+
+${TARGET3}: ${OBJS3}
+ $(CC) -o $@ $^ $(XML_LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
+%-standalone.o: %.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
+
clean:
- rm -f ${TARGET1} ${TARGET2} *~ *.o
+ rm -f ${TARGET1} ${TARGET2} ${TARGET3} *~ *.o
install: all
if [ ! -d ${sbindir} ]; then \
next reply other threads:[~2007-07-05 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 14:27 fabbione [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-06-27 13:32 [Cluster-devel] cluster/fence/agents/xvm Makefile lhh
2007-06-26 17:32 lhh
2006-12-08 19:36 lhh
2006-11-13 20:51 cfeist
2006-11-13 20:50 cfeist
2006-11-13 20:48 cfeist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070705142728.30499.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.