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

[Cluster-devel] cluster/group/test Makefile



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione sourceware org	2007-08-29 02:52:45

Modified files:
	group/test     : Makefile 

Log message:
	Cleanup group/test/Makefile

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/test/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3

--- cluster/group/test/Makefile	2007/05/03 16:55:58	1.2
+++ cluster/group/test/Makefile	2007/08/29 02:52:45	1.3
@@ -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]