From 346ed7a09da10ef475d93d0270d1a3aa1db34774 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Sat, 17 Mar 2001 16:13:40 +0000 Subject: also build standalone insmod-DIET for testing purposes.. --- mdk-stage1/insmod-busybox/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/insmod-busybox') diff --git a/mdk-stage1/insmod-busybox/Makefile b/mdk-stage1/insmod-busybox/Makefile index ca05279e9..9c0a60b79 100644 --- a/mdk-stage1/insmod-busybox/Makefile +++ b/mdk-stage1/insmod-busybox/Makefile @@ -13,7 +13,7 @@ top_dir = .. include $(top_dir)/Makefile.common -all: insmod libinsmod.a libinsmod-DIET.a +all: insmod insmod-DIET libinsmod.a libinsmod-DIET.a clean: rm -f *.o insmod libinsmod.a libinsmod-DIET.a @@ -26,6 +26,11 @@ insmod: insmod-frontend.o insmod.o utility-standalone.o gcc -o $@ $^ $(STRIPCMD) $@ +insmod-DIET: insmod-frontend-DIET.o insmod-DIET.o utility-standalone-DIET.o + gcc $(DIETLIBC_LDFLAGS_STAGE1) -o $@ $^ $(DIETLIBC_LIBC) + $(STRIPCMD) $@ + + libinsmod.a: insmod.o utility.o ar cru $@ $^ ranlib $@ @@ -37,6 +42,9 @@ libinsmod-DIET.a: insmod-DIET.o utility-DIET.o insmod-frontend.o: insmod-frontend.c busybox.h gcc $(FLAGS) $(GLIBC_INCLUDES) insmod-frontend.c +insmod-frontend-DIET.o: insmod-frontend.c busybox.h + gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ insmod-frontend.c + utility.o: utility.c busybox.h gcc $(FLAGS) $(GLIBC_INCLUDES) utility.c @@ -46,6 +54,9 @@ utility-DIET.o: utility.c busybox.h utility-standalone.o: utility.c busybox.h gcc $(FLAGS) $(GLIBC_INCLUDES) -o $@ -D_STANDALONE_ utility.c +utility-standalone-DIET.o: utility.c busybox.h + gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ -D_STANDALONE_ utility.c + insmod.o: insmod.c busybox.h gcc $(FLAGS) $(GLIBC_INCLUDES) insmod.c -- cgit v1.2.1