[Asterisk-cvs] asterisk/stdtime Makefile,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Fri Sep 26 21:31:19 CDT 2003


Update of /usr/cvsroot/asterisk/stdtime
In directory mongoose.digium.com:/tmp/cvs-serv19355/stdtime

Modified Files:
	Makefile 
Log Message:
make subdirs always build as appropriate


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/stdtime/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile	13 Sep 2003 20:51:48 -0000	1.1
+++ Makefile	27 Sep 2003 02:32:30 -0000	1.2
@@ -1,19 +1,26 @@
-
 CC=gcc
 #CFLAGS=-Wall
 INCLUDE=-I../include
 
-all: localtime.o
+OBJS=localtime.o
 
-clean::
-	rm -f localtime.o test
+all: libtime.a
 
-depend::
-	@echo "Nothing to do for depend"
+libtime.a: $(OBJS)
+	ar rv $@ $(OBJS)
+	ranlib $@
 
-test: test.c
-	${CC} ${CFLAGS} -o test test.c
+clean:
+	rm -f libtime.a *.o test
 
-localtime.o: localtime.c
+depend: .depend
+
+.depend:
+	../mkdep $(CFLAGS) *.c
 
+test: test.c
+	${CC} ${CFLAGS} -o test test.c
 
+ifneq ($(wildcard .depend),)
+include .depend
+endif




More information about the svn-commits mailing list