diff options
Diffstat (limited to 'stdtime/Makefile')
-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 |