summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-11 17:10:17 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-11 17:10:17 +0000
commit7e1dcea7f367619fe2fca98d79087a0beed267b4 (patch)
treea0d1adc99d8253a9c2866272709dc1870935e6bd /mdk-stage1/Makefile
parent75dbadee24b0bd6b738093b66f8415a630692671 (diff)
downloaddrakx-7e1dcea7f367619fe2fca98d79087a0beed267b4.tar
drakx-7e1dcea7f367619fe2fca98d79087a0beed267b4.tar.gz
drakx-7e1dcea7f367619fe2fca98d79087a0beed267b4.tar.bz2
drakx-7e1dcea7f367619fe2fca98d79087a0beed267b4.tar.xz
drakx-7e1dcea7f367619fe2fca98d79087a0beed267b4.zip
add stdio frontend (get rid of newt+slang -eq reducing binary by 80 kbytes) (40 kbytes for compressed binary)
Diffstat (limited to 'mdk-stage1/Makefile')
-rw-r--r--mdk-stage1/Makefile21
1 files changed, 17 insertions, 4 deletions
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