diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-22 17:21:43 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-22 17:21:43 +0000 |
commit | 31d44a623579fbca300f20bc751c7278c4375980 (patch) | |
tree | e54cb0772ebc6ffce9fc7ccdcc61d094751d3b54 /mdk-stage1/insmod-modutils/Makefile | |
parent | 446293819c1c265f0799036bde77f98145187ecf (diff) | |
download | drakx-31d44a623579fbca300f20bc751c7278c4375980.tar drakx-31d44a623579fbca300f20bc751c7278c4375980.tar.gz drakx-31d44a623579fbca300f20bc751c7278c4375980.tar.bz2 drakx-31d44a623579fbca300f20bc751c7278c4375980.tar.xz drakx-31d44a623579fbca300f20bc751c7278c4375980.zip |
use modutils for non Intel arch's
Diffstat (limited to 'mdk-stage1/insmod-modutils/Makefile')
-rw-r--r-- | mdk-stage1/insmod-modutils/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/mdk-stage1/insmod-modutils/Makefile b/mdk-stage1/insmod-modutils/Makefile new file mode 100644 index 000000000..74ebdeafb --- /dev/null +++ b/mdk-stage1/insmod-modutils/Makefile @@ -0,0 +1,61 @@ + #****************************************************************************** + # + # insmod from modutils (generic) + # + # $Id$ + # + # Copyright 1996, 1997 Linux International. + # + #***************************************************************************** + +top_dir = .. + +include $(top_dir)/Makefile.common + + +FLAGS = -c -Wall -Os -fomit-frame-pointer -I./include -D_GNU_SOURCE -DELF_MACHINE_H='"elf_$(ARCH).h"' -DARCH_$(ARCH) + + +DIRS = util obj + +all: dirs insmod libinsmod.a #libinsmod-DIET.a + +dirs: + @for n in . $(DIRS); do \ + [ "$$n" = "." ] || make -C $$n ;\ + done + +clean: + @for n in $(DIRS); do \ + (cd $$n; make clean) \ + done + rm -rf t *.o insmod libinsmod.a libinsmod-DIET.a + + +insmod: insmod-frontend.o insmod.o ./util/libutil-STANDALONE.a ./obj/libobj.a + gcc -o $@ $^ + $(STRIPCMD) $@ + +t/.create_stuff: util/libutil.a obj/libobj.a + rm -rf t + mkdir t + cd t && for e in $^; do ar -x ../$$e; done + touch t/.create_stuff + +libinsmod.a: insmod.o t/.create_stuff + ar cru $@ insmod.o t/* + ranlib $@ + +libinsmod-DIET.a: insmod-DIET.o ./util/libutil-DIET.a ./obj/libobj-DIET.a + ar cru $@ $^ + ranlib $@ + +insmod-frontend.o: insmod-frontend.c insmod.c + gcc $(FLAGS) $(GLIBC_INCLUDES) insmod-frontend.c + +insmod.o: insmod.c + gcc $(FLAGS) $(GLIBC_INCLUDES) insmod.c + +insmod-DIET.o: insmod.c + gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ insmod.c + |