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

[Cluster-devel] [PATCH] Cleanup group/tests/Makefile



Bring the Makefiles in group/tests to the same standard as the others in the
project.

Usual disclaimer applies... ACK or apply ;)

Thanks
Fabio

-- 
I'm going to make him an offer he can't refuse.
Index: Makefile
===================================================================
RCS file: /cvs/cluster/cluster/group/test/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	3 May 2007 16:55:58 -0000	1.2
+++ Makefile	26 Aug 2007 07:22:20 -0000
@@ -10,22 +10,18 @@
 ###############################################################################
 ###############################################################################
 
-CFLAGS+= -g -I. 
+include ../../make/defines.mk
 
-all: client clientd
+TARGETS= client clientd
 
-client: client.o
-	$(CC) $(LDFLAGS) -o $@ $<
+all: $(TARGETS)
 
-clientd: clientd.o
-	$(CC) $(LDFLAGS) -o $@ $<
-
-client.o: client.c
+%.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 
-clientd.o: clientd.c
-	$(CC) $(CFLAGS) -c -o $@ $<
+%: %.o
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 clean:
-	rm -f *.o client clientd
+	rm -f *.o $(TARGETS)
 

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