diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/Makefile | 10 | ||||
-rw-r--r-- | sysklogd/Makefile.in | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/sysklogd/Makefile b/sysklogd/Makefile index f6ce14530..78b0c0090 100644 --- a/sysklogd/Makefile +++ b/sysklogd/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 | ||
20 | TOPDIR:= ../ | 20 | top_srcdir=.. |
21 | top_buildddir=.. | ||
22 | srcdir=$(top_srcdir)/sysklogd | ||
21 | SYSKLOGD_DIR:=./ | 23 | SYSKLOGD_DIR:=./ |
22 | include $(TOPDIR).config | 24 | include $(top_builddir)/Rules.mak |
23 | include $(TOPDIR)Rules.mak | 25 | include $(top_builddir)/.config |
24 | include Makefile.in | 26 | include Makefile.in |
25 | all: $(libraries-y) | 27 | all: $(libraries-y) |
26 | -include $(TOPDIR).depend | 28 | -include $(top_builddir)/.depend |
27 | 29 | ||
28 | clean: | 30 | clean: |
29 | rm -f *.o *.a $(AR_TARGET) | 31 | rm -f *.o *.a $(AR_TARGET) |
diff --git a/sysklogd/Makefile.in b/sysklogd/Makefile.in index 1c6e90774..99a5f823c 100644 --- a/sysklogd/Makefile.in +++ b/sysklogd/Makefile.in | |||
@@ -19,8 +19,9 @@ | |||
19 | 19 | ||
20 | SYSKLOGD_AR:=sysklogd.a | 20 | SYSKLOGD_AR:=sysklogd.a |
21 | ifndef $(SYSKLOGD_DIR) | 21 | ifndef $(SYSKLOGD_DIR) |
22 | SYSKLOGD_DIR:=$(TOPDIR)sysklogd/ | 22 | SYSKLOGD_DIR:=$(top_builddir)/sysklogd/ |
23 | endif | 23 | endif |
24 | srcdir=$(top_srcdir)/sysklogd | ||
24 | 25 | ||
25 | SYSKLOGD-:= | 26 | SYSKLOGD-:= |
26 | SYSKLOGD-$(CONFIG_KLOGD) += klogd.o | 27 | SYSKLOGD-$(CONFIG_KLOGD) += klogd.o |
@@ -33,3 +34,6 @@ libraries-y+=$(SYSKLOGD_DIR)$(SYSKLOGD_AR) | |||
33 | $(SYSKLOGD_DIR)$(SYSKLOGD_AR): $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y)) | 34 | $(SYSKLOGD_DIR)$(SYSKLOGD_AR): $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y)) |
34 | $(AR) -ro $@ $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y)) | 35 | $(AR) -ro $@ $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y)) |
35 | 36 | ||
37 | $(SYSKLOGD_DIR)%.o: $(srcdir)/%.c | ||
38 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | ||
39 | |||