summaryrefslogtreecommitdiff
path: root/components/external/libpng/Makefile
blob: 7f5deb686703e07e482928a05b2872642a2032bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 $^ > $@