Makefile 400 B

123456789101112131415161718192021222324252627
  1. RTGUI_ROOT=../..
  2. include $(RTGUI_ROOT)/config.mk
  3. SRC = adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
  4. inflate.c inftrees.c trees.c uncompr.c zutil.c
  5. OBJ = $(SRC:.c=.o)
  6. LIB = libz.a
  7. all: $(LIB)
  8. $(LIB): $(OBJ)
  9. $(AR) r $@ $?
  10. $(RANLIB) $@
  11. clean :
  12. $(RM) *.o *~ *.bak
  13. $(RM) $(LIB)
  14. $(RM) .depend
  15. dep : .depend
  16. include .depend
  17. .depend: $(SRC)
  18. $(CC) $(CFLAGS) -M $^ > $@