2002-04-12 12:05:57 +00:00
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-04-12 12:05:57 +00:00
|
|
|
#
|
2005-09-24 06:01:57 +00:00
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-04-12 12:05:57 +00:00
|
|
|
|
|
|
|
MODUTILS_AR:=modutils.a
|
|
|
|
ifndef $(MODUTILS_DIR)
|
2004-10-08 07:46:08 +00:00
|
|
|
MODUTILS_DIR:=$(top_builddir)/modutils/
|
2002-04-12 12:05:57 +00:00
|
|
|
endif
|
2004-10-08 07:46:08 +00:00
|
|
|
srcdir=$(top_srcdir)/modutils
|
2002-04-12 12:05:57 +00:00
|
|
|
|
|
|
|
MODUTILS-y:=
|
|
|
|
MODUTILS-$(CONFIG_INSMOD) += insmod.o
|
|
|
|
MODUTILS-$(CONFIG_LSMOD) += lsmod.o
|
|
|
|
MODUTILS-$(CONFIG_MODPROBE) += modprobe.o
|
|
|
|
MODUTILS-$(CONFIG_RMMOD) += rmmod.o
|
|
|
|
|
|
|
|
libraries-y+=$(MODUTILS_DIR)$(MODUTILS_AR)
|
|
|
|
|
|
|
|
$(MODUTILS_DIR)$(MODUTILS_AR): $(patsubst %,$(MODUTILS_DIR)%, $(MODUTILS-y))
|
2005-07-27 01:09:24 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(patsubst %,$(MODUTILS_DIR)%, $(MODUTILS-y))
|
2002-04-12 12:05:57 +00:00
|
|
|
|
2004-10-08 07:46:08 +00:00
|
|
|
$(MODUTILS_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
|
|
|
|
|