2 include $(TOP)/config/make.cfg
4 #MM external-bz2-includes : \
5 #MM kernel-exec-includes includes-copy
7 #MM- external-bz2 : external-bz2-lib external-bz2-bzip2
9 ###################################################################################
11 #MM- external-bz2-lib : linklibs
13 FILES := blocksort huffman crctable randtable \
14 compress decompress bzlib
16 %build_module mmake=external-bz2-lib \
17 modname=bz2 modtype=library files="$(FILES)"
19 ###################################################################################
21 #MM- linklibs: linklibs-bz2-nostdio
23 USER_CFLAGS := -DBZ_NO_STDIO
24 USER_CFLAGS += $(UNUSED_BUT_SET_VARIABLE_CFLAGS)
26 %build_linklib mmake=linklibs-bz2-nostdio libname=bz2_nostdio \
27 files="$(FILES)" objdir=$(OBJDIR)/nostdio
30 INCLUDE_FILES := bzlib.h
33 ###################################################################################
35 FILES := bzip2recover bzip2
36 SH_FILES := bzdiff bzgrep bzmore
37 MAN_FILES := bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
39 USER_CFLAGS := -Winline
40 USER_CFLAGS += $(UNUSED_BUT_SET_VARIABLE_CFLAGS)
42 BIN_DIR := $(AROS_DEVELOPMENT)/bin
43 MAN_DIR := $(AROS_DEVELOPMENT)/man/man1
45 #MM- external-bz2-bzip2 : \
46 #MM external-bz2-bzip2-bin \
47 #MM external-bz2-bzip2-install-sh \
48 #MM external-bz2-bzip2-install-aliases \
49 #MM external-bz2-bzip2-install-man \
50 #MM external-bz2-bzip2-install-man-cpy
52 #MM external-bz2-bzip2-bin : external-bz2-lib
54 #MM external-bz2-bzip2-install-man-cpy : external-bz2-bzip2-install-man
56 %build_progs mmake=external-bz2-bzip2-bin targetdir=$(BIN_DIR) files=$(FILES) uselibs=bz2 nix=yes
58 %copy_files_q mmake=external-bz2-bzip2-install-sh files=$(SH_FILES) dst=$(BIN_DIR)
61 external-bz2-bzip2-install-aliases : \
69 %rule_copy from=$(BIN_DIR)/bzip2 to=$(BIN_DIR)/bzcat
70 %rule_copy from=$(BIN_DIR)/bzip2 to=$(BIN_DIR)/bunzip
71 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzegrep
72 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzfgrep
73 %rule_copy from=$(BIN_DIR)/bzmore to=$(BIN_DIR)/bzless
74 %rule_copy from=$(BIN_DIR)/bzdiff to=$(BIN_DIR)/bzcmp
77 external-bz2-bzip2-install-man :
78 @$(IF) $(TEST) ! -d $(MAN_DIR) ; then $(MKDIR) $(MAN_DIR) ; else $(NOP) ; fi
79 echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzegrep.1
80 echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzfgrep.1
81 echo ".so man1/bzmore.1" > $(MAN_DIR)/bzless.1
82 echo ".so man1/bzdiff.1" > $(MAN_DIR)/bzcmp.1
84 %copy_files_q mmake=external-bz2-bzip2-install-man-cpy files=$(MAN_FILES) dst=$(MAN_DIR)