summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/insmod-busybox
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/insmod-busybox')
-rw-r--r--mdk-stage1/insmod-busybox/Makefile13
1 files changed, 12 insertions, 1 deletions
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