From 7e1dcea7f367619fe2fca98d79087a0beed267b4 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 11 Dec 2000 17:10:17 +0000 Subject: add stdio frontend (get rid of newt+slang -eq reducing binary by 80 kbytes) (40 kbytes for compressed binary) --- mdk-stage1/Makefile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'mdk-stage1/Makefile') diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile index 793c707c7..1ce2e3eba 100644 --- a/mdk-stage1/Makefile +++ b/mdk-stage1/Makefile @@ -27,7 +27,7 @@ ARCH := $(patsubst sparc%,sparc,$(ARCH)) #- We can leave "-g" forever since stripping will remove everything -CFLAGS = -Os -g -Wall -Werror # -fomit-frame-pointer +CFLAGS = -Os -Wall -Werror -fomit-frame-pointer INCLUDES = -I. DEFS = -D_GNU_SOURCE=1 -DVERSION=\"$(VERSION)\" @@ -40,10 +40,23 @@ INITSRC = minilibc.c init.c INITOBJS = $(subst .c,.o,$(INITSRC)) + #- frontend +NEWT_FRONTEND_SRC = newt-frontend.c +NEWT_FRONTEND_LIBS = /usr/lib/libnewt.a /usr/lib/libslang.a + +STDIO_FRONTEND_SRC = stdio-frontend.c +STDIO_FRONTEND_LIBS = + +FRONTEND_OBJS = $(subst .c,.o,$(STDIO_FRONTEND_SRC)) +FRONTEND_LIBS = $(STDIO_FRONTEND_LIBS) + + #- stage1 itself (minus stage1.c) -STAGE1SRC = log.c tools.c modules.c probing.c newt-frontend.c cdrom.c disk.c network.c mount.c +STAGE1SRC = log.c tools.c modules.c probing.c cdrom.c disk.c network.c mount.c + +STAGE1OBJS = $(subst .c,.o,$(STAGE1SRC)) $(FRONTEND_OBJS) insmod-busybox/libinsmod.a mar/libmar.a $(FRONTEND_LIBS) /usr/lib/libz.a + -STAGE1OBJS = $(subst .c,.o,$(STAGE1SRC)) insmod-busybox/libinsmod.a mar/libmar.a /usr/lib/libnewt.a /usr/lib/libslang.a /usr/lib/libz.a ALLSRC = $(INITSRC) $(STAGE1SRC) stage1.c @@ -118,7 +131,7 @@ clean: @for n in $(DIRS); do \ (cd $$n; make clean) \ done - rm -f *.o .depend *.rdz *.img $(BINS) + rm -f *.o .depend *.rdz *.img $(BINS) st1 deps: $(CPP) $(CFLAGS) -DHAVE_CONFIG_H -M $(ALLSRC) > .depend -- cgit v1.2.1