bernard.xiong f908d62a40 move to components directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@638 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-18 15:05:20 +00:00

30 lines
511 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 $^ > $@