Skip to contentSkip to conversation

cluster/group/test Makefile

Cluster-devel [email protected] 1 participant 1 message Aug 29, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at 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

group/test/Makefile +7 -11
@@ -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)