All of lore.kernel.org
 help / color / mirror / Atom feed
From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/dlm/tests usertest/Makefile Makefile
Date: 24 Aug 2007 14:10:28 -0000	[thread overview]
Message-ID: <20070824141028.5891.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione at sourceware.org	2007-08-24 14:10:28

Modified files:
	dlm/tests/usertest: Makefile 
Added files:
	dlm/tests      : Makefile 

Log message:
	Add dlm/tests/Makefile
	
	clean up dlm/tests/usertest/Makefile

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/Makefile.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11

/cvs/cluster/cluster/dlm/tests/Makefile,v  -->  standard output
revision 1.1
--- cluster/dlm/tests/Makefile
+++ -	2007-08-24 14:10:28.400582000 +0000
@@ -0,0 +1,19 @@
+###############################################################################
+###############################################################################
+##
+##  Copyright (C) 2007 Red Hat, Inc.  All rights reserved.
+##
+##  This copyrighted material is made available to anyone wishing to use,
+##  modify, copy, or redistribute it subject to the terms and conditions
+##  of the GNU General Public License v.2.
+##
+###############################################################################
+###############################################################################
+
+SUBDIRS=usertest
+
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done
--- cluster/dlm/tests/usertest/Makefile	2007/02/01 11:11:51	1.10
+++ cluster/dlm/tests/usertest/Makefile	2007/08/24 14:10:27	1.11
@@ -9,52 +9,28 @@
 ##
 ###############################################################################
 ###############################################################################
-top_srcdir = ../../..
-UNINSTALL=${top_srcdir}/scripts/uninstall.pl
 
-BINARIES=dlmtest asttest lstest pingtest lvb dlmtest2 flood alternate-lvb joinleave threads
+include ../../../make/defines.mk
 
-all: $(BINARIES)
 
-CFLAGS+=-I${top_srcdir}/dlm/lib -L${top_srcdir}/dlm/lib -g -D_REENTRANT
+TARGETS= dlmtest asttest lstest pingtest lvb dlmtest2 flood alternate-lvb joinleave threads
 
-ifneq (${KERNEL_SRC}, )
-CFLAGS += -I${KERNEL_SRC}/include/cluster
-else
-CFLAGS += -I/usr/include/linux/cluster
-endif
-CFLAGS += -I${top_srcdir}/lib/dlm
+all: depends ${TARGETS}
 
+CFLAGS += -D_REENTRANT
+CFLAGS += -Wall -g
+CFLAGS += -I${dlmincdir}
 
-dlmtest: dlmtest.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
+LDFLAGS += -L${dlmlibdir} -ldlm -lpthread
 
-dlmtest2: dlmtest2.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
+depends:
+	$(MAKE) -C ../../lib all
 
-alternate-lvb: alternate-lvb.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $<
 
-joinleave: joinleave.c
-	$(CC) $(CFLAGS) -Wall -o $@ $< -ldlm -lpthread
-
-flood: flood.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
-
-asttest: asttest.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
-
-lstest: lstest.c
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
-
-pingtest: pingtest.c	
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
-
-lvb: lvb.c	
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
-
-threads: threads.c	
-	$(CC) $(CFLAGS) -o $@ $< -ldlm -lpthread
+%: %.o
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 clean:
-	rm -f *.o $(BINARIES) *~ core
+	rm -f *.o ${TARGETS} *~ core



                 reply	other threads:[~2007-08-24 14:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070824141028.5891.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.