summaryrefslogtreecommitdiff
path: root/components/external/libz/Makefile
blob: 7022fd9306dbcfd5d8278a907e9e6b32f9985277 (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
RTGUI_ROOT=../..

include $(RTGUI_ROOT)/config.mk

SRC	= adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \
	inflate.c inftrees.c trees.c uncompr.c zutil.c

OBJ	= $(SRC:.c=.o) 
LIB	= libz.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 $^ > $@