1 | # $Id: Makefile.kmk 3317 2007-05-06 02:12:01Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # kNIX Makefile for zlib
|
---|
5 | #
|
---|
6 | # Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This file is part of kLIBC.
|
---|
10 | #
|
---|
11 | # kLIBC is free software; you can redistribute it and/or modify
|
---|
12 | # it under the terms of the GNU General Public License as published by
|
---|
13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
14 | # (at your option) any later version.
|
---|
15 | #
|
---|
16 | # kLIBC is distributed in the hope that it will be useful,
|
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | # GNU General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU General Public License
|
---|
22 | # along with kLIBC; if not, write to the Free Software
|
---|
23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
24 | #
|
---|
25 | #
|
---|
26 |
|
---|
27 | DEPTH = ../../..
|
---|
28 | include $(PATH_KBUILD)/header.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # libz_s - static.
|
---|
32 | #
|
---|
33 | LIBRARIES += libz_s
|
---|
34 | libz_s_TEMPLATE = usr.lib
|
---|
35 | libz_s_SOURCES = \
|
---|
36 | adler32.c \
|
---|
37 | compress.c\
|
---|
38 | crc32.c \
|
---|
39 | gzio.c \
|
---|
40 | uncompr.c \
|
---|
41 | deflate.c \
|
---|
42 | trees.c \
|
---|
43 | zutil.c \
|
---|
44 | inflate.c \
|
---|
45 | infback.c \
|
---|
46 | inftrees.c \
|
---|
47 | inffast.c
|
---|
48 |
|
---|
49 | #
|
---|
50 | # libz_dll - dynamic import library.
|
---|
51 | #
|
---|
52 | LIBRARIES += libz_dll
|
---|
53 | libz_dll_TEMPLATE = usr.lib
|
---|
54 | libz_dll_SOURCES = \
|
---|
55 | $(PATH_TARGET)/libz.def
|
---|
56 | libz_dll_CLEAN = \
|
---|
57 | $(PATH_TARGET)/libz.def
|
---|
58 |
|
---|
59 | #
|
---|
60 | # libz_dll - dynamic.
|
---|
61 | #
|
---|
62 | DLLS += kz123
|
---|
63 | kz123_TEMPLATE = usr.lib
|
---|
64 | kz123_DEFS = ZLIB_DLL
|
---|
65 | kz123_SOURCES = \
|
---|
66 | adler32.c \
|
---|
67 | compress.c\
|
---|
68 | crc32.c \
|
---|
69 | gzio.c \
|
---|
70 | uncompr.c \
|
---|
71 | deflate.c \
|
---|
72 | trees.c \
|
---|
73 | zutil.c \
|
---|
74 | inflate.c \
|
---|
75 | infback.c \
|
---|
76 | inftrees.c \
|
---|
77 | inffast.c \
|
---|
78 | $(PATH_TARGET)/libz.def
|
---|
79 |
|
---|
80 | $(PATH_TARGET)/libz.def: Makefile.kmk
|
---|
81 | $(RM) -f $@
|
---|
82 | $(APPEND) $@ "LIBRARY kz123 INITINSTANCE TERMINSTANCE"
|
---|
83 | $(APPEND) $@ "DATA MULTIPLE NONSHARED"
|
---|
84 | $(APPEND) $@ "EXPORTS"
|
---|
85 | $(APPEND) $@ " _adler32 @1"
|
---|
86 | $(APPEND) $@ " _compress @2"
|
---|
87 | $(APPEND) $@ " _crc32 @3"
|
---|
88 | $(APPEND) $@ " _deflate @4"
|
---|
89 | $(APPEND) $@ " _deflateCopy @5"
|
---|
90 | $(APPEND) $@ " _deflateEnd @6"
|
---|
91 | $(APPEND) $@ " _deflateInit2_ @7"
|
---|
92 | $(APPEND) $@ " _deflateInit_ @8"
|
---|
93 | $(APPEND) $@ " _deflateParams @9"
|
---|
94 | $(APPEND) $@ " _deflateReset @10"
|
---|
95 | $(APPEND) $@ " _deflateSetDictionary @11"
|
---|
96 | $(APPEND) $@ " _gzclose @12"
|
---|
97 | $(APPEND) $@ " _gzdopen @13"
|
---|
98 | $(APPEND) $@ " _gzerror @14"
|
---|
99 | $(APPEND) $@ " _gzflush @15"
|
---|
100 | $(APPEND) $@ " _gzopen @16"
|
---|
101 | $(APPEND) $@ " _gzread @17"
|
---|
102 | $(APPEND) $@ " _gzwrite @18"
|
---|
103 | $(APPEND) $@ " _inflate @19"
|
---|
104 | $(APPEND) $@ " _inflateEnd @20"
|
---|
105 | $(APPEND) $@ " _inflateInit2_ @21"
|
---|
106 | $(APPEND) $@ " _inflateInit_ @22"
|
---|
107 | $(APPEND) $@ " _inflateReset @23"
|
---|
108 | $(APPEND) $@ " _inflateSetDictionary @24"
|
---|
109 | $(APPEND) $@ " _inflateSync @25"
|
---|
110 | $(APPEND) $@ " _uncompress @26"
|
---|
111 | $(APPEND) $@ " _zlibVersion @27"
|
---|
112 | $(APPEND) $@ " _gzprintf @28"
|
---|
113 | $(APPEND) $@ " _gzputc @29"
|
---|
114 | $(APPEND) $@ " _gzgetc @30"
|
---|
115 | $(APPEND) $@ " _gzseek @31"
|
---|
116 | $(APPEND) $@ " _gzrewind @32"
|
---|
117 | $(APPEND) $@ " _gztell @33"
|
---|
118 | $(APPEND) $@ " _gzeof @34"
|
---|
119 | $(APPEND) $@ " _gzsetparams @35"
|
---|
120 | $(APPEND) $@ " _zError @36"
|
---|
121 | $(APPEND) $@ " _inflateSyncPoint @37"
|
---|
122 | $(APPEND) $@ " _get_crc_table @38"
|
---|
123 | $(APPEND) $@ " _compress2 @39"
|
---|
124 | $(APPEND) $@ " _gzputs @40"
|
---|
125 | $(APPEND) $@ " _gzgets @41"
|
---|
126 |
|
---|
127 | #
|
---|
128 | # Install headers.
|
---|
129 | #
|
---|
130 | INSTALLS += libz-headers
|
---|
131 | libz-headers_TEMPLATE = usr.include
|
---|
132 | libz-headers_SOURCES = \
|
---|
133 | zlib.h \
|
---|
134 | zconf.h
|
---|
135 |
|
---|
136 | #
|
---|
137 | # The man page.
|
---|
138 | #
|
---|
139 | INSTALLS += libz-manpages
|
---|
140 | libz-manpages_TEMPLATE = usr.bin.man
|
---|
141 | libz-manpages_SOURCES = \
|
---|
142 | zlib.3
|
---|
143 |
|
---|
144 | #
|
---|
145 | # Documentation.
|
---|
146 | #
|
---|
147 | INSTALLS += libz-docs
|
---|
148 | libz-docs_TEMPLATE = usr.bin.doc
|
---|
149 | libz-docs_SOURCES = \
|
---|
150 | FAQ \
|
---|
151 | README \
|
---|
152 | ChangeLog \
|
---|
153 | algorithm.txt
|
---|
154 |
|
---|
155 | include $(PATH_KBUILD)/footer.kmk
|
---|
156 |
|
---|