Library stub code can be generated in C files with a simple macro during compile...
[AROS.git] / compiler / zlib / mmakefile.src
blob7b1d6f1523fce2d8c742b64140f1ad8f808a1156
1 #   $Id$
3 include $(TOP)/config/make.cfg
5 INCLUDE_FILES   := zconf.h zlib.h zutil.h
7 FILES := \
8     adler32 \
9     compress \
10     crc32 \
11     deflate \
12     gzclose \
13     gzlib \
14     gzread \
15     gzwrite \
16     infback \
17     inffast \
18     inflate \
19     inftrees \
20     trees \
21     uncompr \
22     zutil
25 #MM- linklibs-core : linklibs-zlib
26 #MM- linklibs : linklibs-zlib
27 #MM- linklibs-zlib : linklibs-arosz arosz-setup-link
28 #MM linklibs-arosz : includes
29 #MM includes-copy
31 %copy_includes
33 USER_CFLAGS := -DHAVE_UNISTD_H
35 %build_linklib mmake=linklibs-arosz libname=arosz files=$(FILES)
37 $(AROS_LIB)/libz.a : arosz-setup-link
39 #MM
40 arosz-setup-link :
41         @$(RM) $(AROS_LIB)/libz.a
42         @cd $(AROS_LIB); ln -s $(if $(filter aros, $(AROS_HOST_ARCH)),$(AROS_LIB)/libarosz.a,libarosz.a) libz.a
43     
44 %common