Makefile 482 B

1234567891011121314151617181920212223242526272829
  1. RTGUI_ROOT=../..
  2. include $(RTGUI_ROOT)/config.mk
  3. SRC = png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c pngread.c \
  4. pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \
  5. pngwrite.c pngwtran.c pngwutil.c
  6. CFLAGS += -I../libz
  7. OBJ = $(SRC:.c=.o)
  8. LIB = libpng.a
  9. all: $(LIB)
  10. $(LIB): $(OBJ)
  11. $(AR) r $@ $?
  12. $(RANLIB) $@
  13. clean :
  14. $(RM) *.o *~ *.bak
  15. $(RM) $(LIB)
  16. $(RM) .depend
  17. dep : .depend
  18. include .depend
  19. .depend: $(SRC)
  20. $(CC) $(CFLAGS) -M $^ > $@