Makefile 346 B

123456789101112131415161718192021222324252627282930
  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