diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-27 02:32:30 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-27 02:32:30 +0000 |
commit | 0dcff0d3d27c3c3c5f7904bb47b27fcd3e9ce039 (patch) | |
tree | f17337427d9367c6ad55389ba0cd1b7176d9ba85 /stdtime | |
parent | 69275635f1d8d1da49a418b5ee61aad4e6a43230 (diff) |
make subdirs always build as appropriate
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1568 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'stdtime')
-rwxr-xr-x | stdtime/Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/stdtime/Makefile b/stdtime/Makefile index fede0651e..927f07ded 100755 --- a/stdtime/Makefile +++ b/stdtime/Makefile @@ -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 |