blob: 69c6e8c2323bcc200ff4010fc7e69831048b1440 [file] [log] [blame]
plars865695b2001-08-27 22:15:12 +00001#
2# Copyright (c) International Business Machines Corp., 2001
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
12# the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
vapier5366cb02006-08-21 06:58:33 +000016# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
plars865695b2001-08-27 22:15:12 +000017#
18
yaberauneyaef772532009-10-09 17:55:43 +000019top_srcdir ?= ../../../..
plars865695b2001-08-27 22:15:12 +000020
yaberauneyaef772532009-10-09 17:55:43 +000021include $(top_srcdir)/include/mk/env_pre.mk
22
yaberauneyaef772532009-10-09 17:55:43 +000023LIBDIR := lib
24FILTER_OUT_DIRS := $(LIBDIR)
yaberauneyabf995b22009-10-10 23:53:29 +000025LIB := $(LIBDIR)/libipc.a
yaberauneyaef772532009-10-09 17:55:43 +000026
27$(LIBDIR):
28 mkdir -p "$@"
29
30$(LIB): $(LIBDIR)
yaberauneyabf995b22009-10-10 23:53:29 +000031 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
yaberauneyaef772532009-10-09 17:55:43 +000032
Garrett Coopere520c312010-02-21 08:10:03 -080033MAKE_DEPS := $(LIB)
yaberauneyaef772532009-10-09 17:55:43 +000034
35trunk-clean:: | lib-clean
36
37lib-clean:: $(LIBDIR)
38 $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
39
40include $(top_srcdir)/include/mk/generic_trunk_target.mk