diff options
author | Mark Spencer <markster@digium.com> | 2003-09-27 02:32:30 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-09-27 02:32:30 +0000 |
commit | d3369ceb9bbce2c72f4795f0ac567d42cb1b3203 (patch) | |
tree | f17337427d9367c6ad55389ba0cd1b7176d9ba85 /stdtime | |
parent | 7d1dd0079410931131f3853f54dae710dd2f1661 (diff) |
make subdirs always build as appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 |