diff options
author | Rob Landley <rob@landley.net> | 2006-05-12 01:42:33 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-12 01:42:33 +0000 |
commit | f7897ec47babe54f0b57ab81873ff82fd3e1ea5b (patch) | |
tree | bf2a00075e0490a2bd6da1e122d4ab6952dc81d6 | |
parent | 525d74badbd1a7da056528d3a3ddb3085bff1a48 (diff) | |
download | busybox-w32-f7897ec47babe54f0b57ab81873ff82fd3e1ea5b.tar.gz busybox-w32-f7897ec47babe54f0b57ab81873ff82fd3e1ea5b.tar.bz2 busybox-w32-f7897ec47babe54f0b57ab81873ff82fd3e1ea5b.zip |
Autodetect parts of a multipart file, from Robert P. Day's suggestion.
-rw-r--r-- | libbb/Makefile.in | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/libbb/Makefile.in b/libbb/Makefile.in index 865b7e726..91ff771cf 100644 --- a/libbb/Makefile.in +++ b/libbb/Makefile.in | |||
@@ -52,62 +52,53 @@ LIBBB-$(CONFIG_LOGIN)+= correct_password.c | |||
52 | 52 | ||
53 | LIBBB-y:=$(patsubst %,$(srcdir)/%,$(LIBBB-y)) | 53 | LIBBB-y:=$(patsubst %,$(srcdir)/%,$(LIBBB-y)) |
54 | 54 | ||
55 | get-file-subparts = $(addsuffix .o,$(shell sed -n -e "s/^\#ifdef L_//p" ${1})) | ||
56 | |||
55 | # 1:N objects | 57 | # 1:N objects |
56 | LIBBB_MSRC0:=$(srcdir)/messages.c | 58 | LIBBB_MSRC0:=$(srcdir)/messages.c |
57 | LIBBB_MOBJ0:=full_version.o \ | 59 | LIBBB_MOBJ0:=$(call get-file-subparts, ${LIBBB_MSRC0}) |
58 | memory_exhausted.o invalid_date.o io_error.o \ | ||
59 | read_error.o write_error.o name_longer_than_foo.o unknown.o \ | ||
60 | can_not_create_raw_socket.o perm_denied_are_you_root.o \ | ||
61 | shadow_file.o passwd_file.o group_file.o gshadow_file.o nologin_file.o \ | ||
62 | securetty_file.o motd_file.o \ | ||
63 | msg_standard_input.o msg_standard_output.o shell_file.o \ | ||
64 | bb_dev_null.o bb_common_bufsiz1.o | ||
65 | LIBBB_MOBJ0:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ0)) | 60 | LIBBB_MOBJ0:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ0)) |
66 | $(LIBBB_MOBJ0):$(LIBBB_MSRC0) | 61 | $(LIBBB_MOBJ0):$(LIBBB_MSRC0) |
67 | $(compile.c) -DL_$(notdir $*) | 62 | $(compile.c) -DL_$(notdir $*) |
68 | 63 | ||
69 | LIBBB_MSRC1:=$(srcdir)/xfuncs.c | 64 | LIBBB_MSRC1:=$(srcdir)/xfuncs.c |
70 | LIBBB_MOBJ1:=xmalloc.o xrealloc.o xcalloc.o xstrdup.o xstrndup.o \ | 65 | LIBBB_MOBJ1:=$(call get-file-subparts, ${LIBBB_MSRC1}) |
71 | xfopen.o xopen.o xopen3.o xread.o xread_all.o xread_char.o \ | ||
72 | xferror.o xferror_stdout.o xfflush_stdout.o | ||
73 | LIBBB_MOBJ1:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ1)) | 66 | LIBBB_MOBJ1:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ1)) |
74 | $(LIBBB_MOBJ1):$(LIBBB_MSRC1) | 67 | $(LIBBB_MOBJ1):$(LIBBB_MSRC1) |
75 | $(compile.c) -DL_$(notdir $*) | 68 | $(compile.c) -DL_$(notdir $*) |
76 | 69 | ||
77 | LIBBB_MSRC2:=$(srcdir)/printf.c | 70 | LIBBB_MSRC2:=$(srcdir)/printf.c |
78 | LIBBB_MOBJ2:=bb_vfprintf.o bb_vprintf.o bb_fprintf.o bb_printf.o | 71 | LIBBB_MOBJ2:=$(call get-file-subparts, ${LIBBB_MSRC2}) |
79 | LIBBB_MOBJ2:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ2)) | 72 | LIBBB_MOBJ2:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ2)) |
80 | $(LIBBB_MOBJ2):$(LIBBB_MSRC2) | 73 | $(LIBBB_MOBJ2):$(LIBBB_MSRC2) |
81 | $(compile.c) -DL_$(notdir $*) | 74 | $(compile.c) -DL_$(notdir $*) |
82 | 75 | ||
83 | LIBBB_MSRC3:=$(srcdir)/xgetularg.c | 76 | LIBBB_MSRC3:=$(srcdir)/xgetularg.c |
84 | LIBBB_MOBJ3:=xgetularg_bnd_sfx.o xgetlarg_bnd_sfx.o getlarg10_sfx.o \ | 77 | LIBBB_MOBJ3:=$(call get-file-subparts, ${LIBBB_MSRC3}) |
85 | xgetularg_bnd.o xgetularg10_bnd.o xgetularg10.o | ||
86 | LIBBB_MOBJ3:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ3)) | 78 | LIBBB_MOBJ3:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ3)) |
87 | $(LIBBB_MOBJ3):$(LIBBB_MSRC3) | 79 | $(LIBBB_MOBJ3):$(LIBBB_MSRC3) |
88 | $(compile.c) -DL_$(notdir $*) | 80 | $(compile.c) -DL_$(notdir $*) |
89 | 81 | ||
90 | LIBBB_MSRC4:=$(srcdir)/safe_strtol.c | 82 | LIBBB_MSRC4:=$(srcdir)/safe_strtol.c |
91 | LIBBB_MOBJ4:=safe_strtoi.o safe_strtod.o safe_strtol.o safe_strtoul.o | 83 | LIBBB_MOBJ4:=$(call get-file-subparts, ${LIBBB_MSRC4}) |
92 | LIBBB_MOBJ4:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ4)) | 84 | LIBBB_MOBJ4:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ4)) |
93 | $(LIBBB_MOBJ4):$(LIBBB_MSRC4) | 85 | $(LIBBB_MOBJ4):$(LIBBB_MSRC4) |
94 | $(compile.c) -DL_$(notdir $*) | 86 | $(compile.c) -DL_$(notdir $*) |
95 | 87 | ||
96 | LIBBB_MSRC5:=$(srcdir)/bb_pwd.c | 88 | LIBBB_MSRC5:=$(srcdir)/bb_pwd.c |
97 | LIBBB_MOBJ5:=bb_xgetpwnam.o bb_xgetgrnam.o bb_getgrgid.o bb_getpwuid.o \ | 89 | LIBBB_MOBJ5:=$(call get-file-subparts, ${LIBBB_MSRC5}) |
98 | bb_getug.o get_ug_id.o | ||
99 | LIBBB_MOBJ5:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ5)) | 90 | LIBBB_MOBJ5:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ5)) |
100 | $(LIBBB_MOBJ5):$(LIBBB_MSRC5) | 91 | $(LIBBB_MOBJ5):$(LIBBB_MSRC5) |
101 | $(compile.c) -DL_$(notdir $*) | 92 | $(compile.c) -DL_$(notdir $*) |
102 | 93 | ||
103 | LIBBB_MSRC6:=$(srcdir)/llist.c | 94 | LIBBB_MSRC6:=$(srcdir)/llist.c |
104 | LIBBB_MOBJ6:=llist_add_to.o llist_add_to_end.o llist_pop.o llist_free.o | 95 | LIBBB_MOBJ6:=$(call get-file-subparts, ${LIBBB_MSRC6}) |
105 | LIBBB_MOBJ6:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ6)) | 96 | LIBBB_MOBJ6:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ6)) |
106 | $(LIBBB_MOBJ6):$(LIBBB_MSRC6) | 97 | $(LIBBB_MOBJ6):$(LIBBB_MSRC6) |
107 | $(compile.c) -DL_$(notdir $*) | 98 | $(compile.c) -DL_$(notdir $*) |
108 | 99 | ||
109 | LIBBB_MSRC7:=$(srcdir)/opendir.c | 100 | LIBBB_MSRC7:=$(srcdir)/opendir.c |
110 | LIBBB_MOBJ7:=bb_opendir.o bb_xopendir.o | 101 | LIBBB_MOBJ7:=$(call get-file-subparts, ${LIBBB_MSRC7}) |
111 | LIBBB_MOBJ7:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ7)) | 102 | LIBBB_MOBJ7:=$(patsubst %,$(LIBBB_DIR)/%, $(LIBBB_MOBJ7)) |
112 | $(LIBBB_MOBJ7):$(LIBBB_MSRC7) | 103 | $(LIBBB_MOBJ7):$(LIBBB_MSRC7) |
113 | $(compile.c) -DL_$(notdir $*) | 104 | $(compile.c) -DL_$(notdir $*) |