summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/bzlib/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-26 17:52:48 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-26 17:52:48 +0000
commita4881f694ad7396181d836767edc0f4761667237 (patch)
treead2c16aca6858dbcb34ea6e898955d3da35f4c7b /mdk-stage1/bzlib/Makefile
parente40f378821be25ae4667d311cf3bf3374fe63e0d (diff)
downloaddrakx-backup-do-not-use-a4881f694ad7396181d836767edc0f4761667237.tar
drakx-backup-do-not-use-a4881f694ad7396181d836767edc0f4761667237.tar.gz
drakx-backup-do-not-use-a4881f694ad7396181d836767edc0f4761667237.tar.bz2
drakx-backup-do-not-use-a4881f694ad7396181d836767edc0f4761667237.tar.xz
drakx-backup-do-not-use-a4881f694ad7396181d836767edc0f4761667237.zip
- use bzlib instead of zlib to reduce overall size
- take home my own bzlib code to (1) reduce code size with good compile options (2) make it compile and link against dietlibc
Diffstat (limited to 'mdk-stage1/bzlib/Makefile')
-rw-r--r--mdk-stage1/bzlib/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/mdk-stage1/bzlib/Makefile b/mdk-stage1/bzlib/Makefile
new file mode 100644
index 000000000..3015ccc2d
--- /dev/null
+++ b/mdk-stage1/bzlib/Makefile
@@ -0,0 +1,47 @@
+ #******************************************************************************
+ #
+ # Guillaume Cottenceau (gc@mandrakesoft.com)
+ #
+ # Copyright 2000 MandrakeSoft
+ #
+ # This software may be freely redistributed under the terms of the GNU
+ # public license.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ #
+ #*****************************************************************************
+
+top_dir = ..
+
+include $(top_dir)/Makefile.common
+
+
+all: libbzlib.a libbzlib-DIET.a
+
+clean:
+ rm -f *.o *.a
+
+FLAGS = -Wall -Werror -Os -fomit-frame-pointer -c
+
+
+OBJS = blocksort.o bzlib.o compress.o crctable.o decompress.o huffman.o randtable.o
+OBJS-DIET = $(subst .o,-DIET.o,$(OBJS))
+
+
+libbzlib.a: $(OBJS)
+ ar -cru $@ $^
+ ranlib $@
+
+libbzlib-DIET.a: $(OBJS-DIET)
+ ar -cru $@ $^
+ ranlib $@
+
+
+$(OBJS): %.o: %.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) -c $< -o $@
+
+$(OBJS-DIET): %-DIET.o: %.c
+ gcc $(FLAGS) $(DIETLIBC_INCLUDES) -c $< -o $@
+