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

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



Align the Makefile with the rest of the project.

Please apply or ACK and I will apply.

Thanks
Fabio

-- 
I'm going to make him an offer he can't refuse.
Index: Makefile
===================================================================
RCS file: /cvs/cluster/cluster/cman/tests/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	1 Jun 2007 09:45:31 -0000	1.7
+++ Makefile	26 Aug 2007 07:06:35 -0000
@@ -1,19 +1,37 @@
+###############################################################################
+###############################################################################
+##
+##  Copyright (C) 2004 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.
+##
+###############################################################################
+###############################################################################
+
 include ../../make/defines.mk
 
-CFLAGS += -g -I${cmanincdir}
+TARGETS= client libtest sysman sysmand
+
+CFLAGS += -I${cmanincdir}
 CFLAGS += -I${incdir}
 
 LDFLAGS += -L${cmanlibdir} -lcman
 
-TARGET=client libtest sysman sysmand
+all: depends ${TARGETS}
+
+depends:
+	$(MAKE) -C ../lib all
 
-all: ${TARGET}
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $<
 
-.c:
-	$(CC) $(CFLAGS) $(OUTPUT_OPTION) $< $(LDFLAGS)
+%: %.o
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 install: all
 
 clean:
-	rm -f *.o ${TARGET}
+	rm -f *.o ${TARGETS}
 

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