Removed inclusion of <proto/xxx_au.h>. Auto-opening works without it.
[AROS.git] / workbench / libs / bz2 / mmakefile.src
blob2cf232bf561c995650164800d61107be6256768c
1 #   $Id$
2 include $(TOP)/config/make.cfg
4 #MM workbench-libs-bz2-includes : \
5 #MM     kernel-exec-includes includes-copy
7 #MM- workbench-libs-bz2 : linklibs
9 FILES := blocksort huffman crctable randtable  \
10          compress decompress bzlib
12 %build_module mmake=workbench-libs-bz2 \
13     modname=bz2_au modtype=library \
14     files="init-aros $(FILES)" uselibs="arosc_rel" linklibname="bz2"
16 #MM- linklibs: linklibs-bz2-nostdio
18 USER_CFLAGS := -DBZ_NO_STDIO
19 USER_CFLAGS += $(UNUSED_BUT_SET_VARIABLE_CFLAGS)
21 %build_linklib mmake=linklibs-bz2-nostdio libname=bz2_nostdio \
22                files="$(FILES)" objdir=$(OBJDIR)/nostdio
25 INCLUDE_FILES := bzlib.h
26 %copy_includes
28 ###################################################################################
30 FILES     := bzip2recover bzip2
31 SH_FILES  := bzdiff bzgrep bzmore
32 MAN_FILES := bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
34 USER_CFLAGS  := -Winline
35 USER_CFLAGS += $(UNUSED_BUT_SET_VARIABLE_CFLAGS)
37 BIN_DIR := $(AROS_DEVELOPMENT)/bin
38 MAN_DIR := $(AROS_DEVELOPMENT)/man/man1
40 #MM- workbench-c : workbench-libs-bz2-bzip2
42 #MM- workbench-libs-bz2-bzip2 : \
43 #MM     workbench-libs-bz2-bzip2-bin \
44 #MM     workbench-libs-bz2-bzip2-install-sh \
45 #MM     workbench-libs-bz2-bzip2-install-aliases \
46 #MM     workbench-libs-bz2-bzip2-install-man \
47 #MM     workbench-libs-bz2-bzip2-install-man-cpy
49 #MM  workbench-libs-bz2-bzip2-bin : workbench-libs-bz2
51 #MM  workbench-libs-bz2-bzip2-install-man-cpy : workbench-libs-bz2-bzip2-install-man
53 %build_progs mmake=workbench-libs-bz2-bzip2-bin targetdir=$(BIN_DIR) files=$(FILES) uselibs=bz2 nix=yes
55 %copy_files_q mmake=workbench-libs-bz2-bzip2-install-sh files=$(SH_FILES) dst=$(BIN_DIR)
57 #MM
58 workbench-libs-bz2-bzip2-install-aliases : \
59         $(BIN_DIR)/bzcat \
60         $(BIN_DIR)/bunzip \
61         $(BIN_DIR)/bzegrep \
62         $(BIN_DIR)/bzfgrep \
63         $(BIN_DIR)/bzless \
64         $(BIN_DIR)/bzcmp
66 %rule_copy from=$(BIN_DIR)/bzip2  to=$(BIN_DIR)/bzcat
67 %rule_copy from=$(BIN_DIR)/bzip2  to=$(BIN_DIR)/bunzip
68 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzegrep
69 %rule_copy from=$(BIN_DIR)/bzgrep to=$(BIN_DIR)/bzfgrep
70 %rule_copy from=$(BIN_DIR)/bzmore to=$(BIN_DIR)/bzless
71 %rule_copy from=$(BIN_DIR)/bzdiff to=$(BIN_DIR)/bzcmp
73 #MM
74 workbench-libs-bz2-bzip2-install-man :
75         @$(IF) $(TEST) ! -d $(MAN_DIR) ; then $(MKDIR) $(MAN_DIR) ; else $(NOP) ; fi
76         echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzegrep.1
77         echo ".so man1/bzgrep.1" > $(MAN_DIR)/bzfgrep.1
78         echo ".so man1/bzmore.1" > $(MAN_DIR)/bzless.1
79         echo ".so man1/bzdiff.1" > $(MAN_DIR)/bzcmp.1
81 %copy_files_q mmake=workbench-libs-bz2-bzip2-install-man-cpy files=$(MAN_FILES) dst=$(MAN_DIR)
83 %common