Makefile 283 B

12345678910111213141516171819202122232425
  1. OBJS=localtime.o
  2. all: libtime.a
  3. libtime.a: $(OBJS)
  4. ar rv $@ $(OBJS)
  5. ranlib $@
  6. install:
  7. clean:
  8. rm -f libtime.a *.o test .depend
  9. depend: .depend
  10. .depend:
  11. ../mkdep $(CFLAGS) *.c
  12. test: test.c
  13. ${CC} ${CFLAGS} -o test test.c
  14. ifneq ($(wildcard .depend),)
  15. include .depend
  16. endif