Makefile 346 B

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