summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/insmod-busybox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/insmod-busybox/Makefile')
-rw-r--r--mdk-stage1/insmod-busybox/Makefile29
1 files changed, 23 insertions, 6 deletions
diff --git a/mdk-stage1/insmod-busybox/Makefile b/mdk-stage1/insmod-busybox/Makefile
index 451e3b262..ca05279e9 100644
--- a/mdk-stage1/insmod-busybox/Makefile
+++ b/mdk-stage1/insmod-busybox/Makefile
@@ -8,30 +8,47 @@
#
#*****************************************************************************
+top_dir = ..
-all: insmod libinsmod.a
+include $(top_dir)/Makefile.common
+
+
+all: insmod libinsmod.a libinsmod-DIET.a
clean:
- rm -f *.o insmod libinsmod.a
+ rm -f *.o insmod libinsmod.a libinsmod-DIET.a
+
FLAGS = -c -Wall -Os -fomit-frame-pointer -D_GNU_SOURCE -DBB_VER='"0.47"' -DBB_BT='"2000.12.06-14:02+0000"'
+
insmod: insmod-frontend.o insmod.o utility-standalone.o
gcc -o $@ $^
+ $(STRIPCMD) $@
libinsmod.a: insmod.o utility.o
ar cru $@ $^
ranlib $@
+libinsmod-DIET.a: insmod-DIET.o utility-DIET.o
+ ar cru $@ $^
+ ranlib $@
+
insmod-frontend.o: insmod-frontend.c busybox.h
- gcc $(FLAGS) insmod-frontend.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) insmod-frontend.c
utility.o: utility.c busybox.h
- gcc $(FLAGS) utility.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) utility.c
+
+utility-DIET.o: utility.c busybox.h
+ gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ utility.c
utility-standalone.o: utility.c busybox.h
- gcc $(FLAGS) -o $@ -D_STANDALONE_ utility.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) -o $@ -D_STANDALONE_ utility.c
insmod.o: insmod.c busybox.h
- gcc $(FLAGS) insmod.c
+ gcc $(FLAGS) $(GLIBC_INCLUDES) insmod.c
+
+insmod-DIET.o: insmod.c busybox.h
+ gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ insmod.c