summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/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/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/Makefile')
-rw-r--r--mdk-stage1/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index efb7440a9..f6c095c65 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -68,13 +68,11 @@ endif
endif
-GLIBC_STAGE1_OWN_LIBS = insmod-busybox/libinsmod.a mar/libmar.a
-DIETLIBC_STAGE1_OWN_LIBS = insmod-busybox/libinsmod-DIET.a mar/libmar-DIET.a
+GLIBC_STAGE1_OWN_LIBS = insmod-busybox/libinsmod.a mar/libmar.a bzlib/libbzlib.a
+DIETLIBC_STAGE1_OWN_LIBS = insmod-busybox/libinsmod-DIET.a mar/libmar-DIET.a bzlib/libbzlib-DIET.a
STAGE1_OWN_LIBS = $($(L)_STAGE1_OWN_LIBS)
-STAGE1_OTHER_LIBS = /usr/lib/libz.a
-
STAGE1_NETWORK_LIBS = /usr/lib/libresolv.a
#- stage1 itself
@@ -118,7 +116,7 @@ endif
BINS = init stage1-cdrom stage1-disk stage1-network stage1-full
-DIRS = dietlibc mar insmod-busybox pci-resource
+DIRS = dietlibc mar insmod-busybox pci-resource bzlib
ifeq (i386,$(ARCH))
DIRS += pcmcia
endif
@@ -141,19 +139,19 @@ init: $(INITOBJS)
$(CC) $(LDFLAGS_INIT) -o $@ $(INITOBJS)
$(STRIPCMD) $@
-stage1-cdrom: $(STAGE1OBJS-CDROM) $(STAGE1_OWN_LIBS) $(STAGE1_OWN_LIBS) $(STAGE1_OTHER_LIBS) $(MEDIAS_FRONTEND_LINK) $(STAGE1_LIBC)
+stage1-cdrom: $(STAGE1OBJS-CDROM) $(STAGE1_OWN_LIBS) $(STAGE1_OWN_LIBS) $(MEDIAS_FRONTEND_LINK) $(STAGE1_LIBC)
$(CC) $(LDFLAGS_STAGE1) -o $@ $^
$(STRIPCMD) $@
-stage1-disk: $(STAGE1OBJS-DISK) $(STAGE1_OWN_LIBS) $(STAGE1_OTHER_LIBS) $(MEDIAS_FRONTEND_LINK) $(STAGE1_LIBC)
+stage1-disk: $(STAGE1OBJS-DISK) $(STAGE1_OWN_LIBS) $(MEDIAS_FRONTEND_LINK) $(STAGE1_LIBC)
$(CC) $(LDFLAGS_STAGE1) -o $@ $^
$(STRIPCMD) $@
-stage1-network: $(STAGE1OBJS-NETWORK) $(GLIBC_STAGE1_OWN_LIBS) $(STAGE1_OTHER_LIBS) $(STAGE1_NETWORK_LIBS) $(FRONTEND_LINK)
+stage1-network: $(STAGE1OBJS-NETWORK) $(GLIBC_STAGE1_OWN_LIBS) $(STAGE1_NETWORK_LIBS) $(FRONTEND_LINK)
$(CC) $(GLIBC_LDFLAGS_STAGE1) -o $@ $^
$(STRIPCMD) $@
-stage1-full: $(STAGE1OBJS) $(GLIBC_STAGE1_OWN_LIBS) $(STAGE1_OTHER_LIBS) $(STAGE1_NETWORK_LIBS) $(FRONTEND_LINK) $(PCMCIA_LIB)
+stage1-full: $(STAGE1OBJS) $(GLIBC_STAGE1_OWN_LIBS) $(STAGE1_NETWORK_LIBS) $(FRONTEND_LINK) $(PCMCIA_LIB)
$(CC) $(GLIBC_LDFLAGS_STAGE1) -o $@ $^
$(STRIPCMD) $@