2 include $(SRCDIR)/config/aros.cfg
5 #MM external-bz2-includes : \
6 #MM kernel-exec-includes includes-copy
8 #MM- external-bz2 : external-bz2-lib external-bz2-bzip2
10 ###################################################################################
12 #MM- external-bz2-lib : linklibs
14 FILES := blocksort huffman crctable randtable \
15 compress decompress bzlib
17 %build_module mmake=external-bz2-lib \
18 modname=bz2 modtype=library files="$(FILES)"
20 ###################################################################################
22 #MM- linklibs: linklibs-bz2-nostdio
24 NOWARN_FLAGS := $(NOWARN_UNUSED_BUT_SET_VARIABLE)
25 USER_CFLAGS := $(NOWARN_FLAGS) -DBZ_NO_STDIO
27 %build_linklib mmake=linklibs-bz2-nostdio libname=bz2_nostdio \
28 files="$(FILES)" objdir=$(OBJDIR)/nostdio
31 INCLUDE_FILES := bzlib.h
34 ###################################################################################
36 FILES := bzip2recover bzip2
37 SH_FILES := bzdiff bzgrep bzmore
38 MAN_FILES := bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
40 USER_CFLAGS := -Winline
41 USER_CFLAGS += $(NOWARN_FLAGS)
43 BIN_DIR := $(AROS_DEVELOPMENT)/bin
44 MAN_DIR := $(AROS_DEVELOPMENT)/man/man1
46 #MM- external-bz2-bzip2 : \
47 #MM external-bz2-bzip2-bin \
48 #MM external-bz2-bzip2-install-sh \
49 #MM external-bz2-bzip2-install-aliases \
50 #MM external-bz2-bzip2-install-man \
51 #MM external-bz2-bzip2-install-man-cpy
53 #MM external-bz2-bzip2-bin : external-bz2-lib
55 #MM external-bz2-bzip2-install-man-cpy : external-bz2-bzip2-install-man
57 %build_progs mmake=external-bz2-bzip2-bin targetdir=$(BIN_DIR) files=$(FILES) uselibs=bz2 nix=yes
59 %copy_files_q mmake=external-bz2-bzip2-install-sh files=$(SH_FILES) dst=$(BIN_DIR)
62 external-bz2-bzip2-install-aliases : \
70 %rule_copy from=$(BIN_DIR)/bzip2 to=$(BIN_DIR)/bzcat
71 %rule_copy from=$(BIN_DIR)/bzip2 to=$(BIN_DIR)/bunzip
72 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzegrep
73 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzfgrep
74 %rule_copy from=$(BIN_DIR)/bzmore to=$(BIN_DIR)/bzless
75 %rule_copy from=$(BIN_DIR)/bzdiff to=$(BIN_DIR)/bzcmp
78 external-bz2-bzip2-install-man :
79 @$(IF) $(TEST) ! -d $(MAN_DIR) ; then $(MKDIR) $(MAN_DIR) ; else $(NOP) ; fi
80 echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzegrep.1
81 echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzfgrep.1
82 echo ".so man1/bzmore.1" > $(MAN_DIR)/bzless.1
83 echo ".so man1/bzdiff.1" > $(MAN_DIR)/bzcmp.1
85 %copy_files_q mmake=external-bz2-bzip2-install-man-cpy files=$(MAN_FILES) dst=$(MAN_DIR)