4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-14 17:49:27 +08:00
2013-01-08 22:52:41 +08:00

30 lines
482 B
Makefile

RTGUI_ROOT=../..
include $(RTGUI_ROOT)/config.mk
SRC = png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c pngread.c \
pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \
pngwrite.c pngwtran.c pngwutil.c
CFLAGS += -I../libz
OBJ = $(SRC:.c=.o)
LIB = libpng.a
all: $(LIB)
$(LIB): $(OBJ)
$(AR) r $@ $?
$(RANLIB) $@
clean :
$(RM) *.o *~ *.bak
$(RM) $(LIB)
$(RM) .depend
dep : .depend
include .depend
.depend: $(SRC)
$(CC) $(CFLAGS) -M $^ > $@