diff options
Diffstat (limited to 'mdk-stage1/insmod-modutils/obj/Makefile')
-rw-r--r-- | mdk-stage1/insmod-modutils/obj/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mdk-stage1/insmod-modutils/obj/Makefile b/mdk-stage1/insmod-modutils/obj/Makefile new file mode 100644 index 000000000..9bcf8bac8 --- /dev/null +++ b/mdk-stage1/insmod-modutils/obj/Makefile @@ -0,0 +1,31 @@ + #****************************************************************************** + # + # insmod from modutils (generic) + # + # $Id$ + # + # Copyright 1996, 1997 Linux International. + # + #***************************************************************************** + +top_dir = ../.. + +include $(top_dir)/Makefile.common + + +all: libobj.a + +clean: + rm -f *.o *.a + + +FLAGS = -c -Wall -Os -fomit-frame-pointer -I./../include -D_GNU_SOURCE -DELF_MACHINE_H='"elf_$(ARCH).h"' -DARCH_$(ARCH) -DCONFIG_ROOT_CHECK_OFF=0 + +OBJS = obj_kallsyms.o obj_common.o obj_load.o obj_reloc.o obj_$(ARCH).o + +libobj.a: $(OBJS) + ar cru $@ $^ + ranlib $@ + +.c.o: + gcc $(FLAGS) $(GLIBC_INCLUDES) -c $< |