diff options
| author | bernard.xiong <[email protected]> | 2011-03-04 05:55:42 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-03-04 05:55:42 +0000 |
| commit | 40035dab6513bbfb013f27d76f9f7b336ea4c62f (patch) | |
| tree | 2f9f68afc3f71940081a2f05aeadd63687b9cf82 /components/external/libz/Makefile | |
| parent | 27129b50feaeefa76e12a5dee97e33e79007b576 (diff) | |
move to external.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1304 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/external/libz/Makefile')
| -rw-r--r-- | components/external/libz/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/components/external/libz/Makefile b/components/external/libz/Makefile new file mode 100644 index 0000000000..9b5fd0e29e --- /dev/null +++ b/components/external/libz/Makefile @@ -0,0 +1,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 $^ > $@
|
