aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/Makefile12
-rw-r--r--applets/Makefile.in11
2 files changed, 13 insertions, 10 deletions
diff --git a/applets/Makefile b/applets/Makefile
index 5f9167442..b566e4d12 100644
--- a/applets/Makefile
+++ b/applets/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../ 20top_srcdir=..
21top_builddir=..
22srcdir=$(top_srcdir)/applets
21APPLETS_DIR:=./ 23APPLETS_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include $(srcdir)/Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir).depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
diff --git a/applets/Makefile.in b/applets/Makefile.in
index afd5cbeb9..e31bb6fd9 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -19,18 +19,19 @@
19 19
20APPLETS_AR:=applets.a 20APPLETS_AR:=applets.a
21ifndef $(APPLETS_DIR) 21ifndef $(APPLETS_DIR)
22APPLETS_DIR:=$(TOPDIR)applets/ 22APPLETS_DIR:=$(top_builddir)/applets/
23endif 23endif
24srcdir=$(top_srcdir)/applets
24 25
25APPLET_SRC:=applets.c busybox.c 26APPLET_SRC:=applets.c busybox.c
26APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) 27APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
27 28
28
29
30libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) 29libraries-y+=$(APPLETS_DIR)$(APPLETS_AR)
31 30
32$(APPLET_OBJ): $(TOPDIR).config
33
34$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ) 31$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ)
35 $(AR) -ro $@ $(APPLET_OBJ) 32 $(AR) -ro $@ $(APPLET_OBJ)
36 33
34$(APPLET_OBJ): $(top_builddir)/.config
35$(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c
36 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
37