make subdirs always build as appropriate
[asterisk/asterisk.git] / stdtime / Makefile
1 CC=gcc
2 #CFLAGS=-Wall
3 INCLUDE=-I../include
4
5 OBJS=localtime.o
6
7 all: libtime.a
8
9 libtime.a: $(OBJS)
10         ar rv $@ $(OBJS)
11         ranlib $@
12
13 clean:
14         rm -f libtime.a *.o test
15
16 depend: .depend
17
18 .depend:
19         ../mkdep $(CFLAGS) *.c
20
21 test: test.c
22         ${CC} ${CFLAGS} -o test test.c
23
24 ifneq ($(wildcard .depend),)
25 include .depend
26 endif