source: trunk/mindi-busybox/modutils/Makefile.in @ 956

Last change on this file since 956 was 821, checked in by bruno, 13 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 841 bytes
Line 
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7MODUTILS_AR:=modutils.a
8ifndef $(MODUTILS_DIR)
9MODUTILS_DIR:=$(top_builddir)/modutils/
10endif
11srcdir=$(top_srcdir)/modutils
12
13MODUTILS-y:=
14MODUTILS-$(CONFIG_INSMOD)       += insmod.o
15MODUTILS-$(CONFIG_LSMOD)        += lsmod.o
16MODUTILS-$(CONFIG_MODPROBE)     += modprobe.o
17MODUTILS-$(CONFIG_RMMOD)        += rmmod.o
18
19ifneq ($(strip $(MODUTILS-y)),)
20libraries-y+=$(MODUTILS_DIR)$(MODUTILS_AR)
21endif
22
23MODUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(MODUTILS-y))
24MODUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
25APPLET_SRC-y+=$(MODUTILS_SRC-y)
26APPLET_SRC-a+=$(MODUTILS_SRC-a)
27
28$(MODUTILS_DIR)$(MODUTILS_AR): $(patsubst %,$(MODUTILS_DIR)%, $(MODUTILS-y))
29    $(do_ar)
30
31$(MODUTILS_DIR)%.o: $(srcdir)/%.c
32    $(compile.c)
Note: See TracBrowser for help on using the repository browser.