aboutsummaryrefslogtreecommitdiff
path: root/libcommon/makefile
blob: 8f723246a70972156be94f29acb16de2582aa4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# file      : libcommon/makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
# license   : GNU GPL; see accompanying LICENSE file

include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make

dirs := common

default   := $(out_base)/
dist      := $(out_base)/.dist
clean     := $(out_base)/.clean

$(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs)))

$(dist): export dirs := $(dirs)
$(dist): export extra_dist := $(call vc9slns,libcommon) \
$(call vc10slns,libcommon)
$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dirs)))
	$(call meta-automake)
	$(call meta-vc9slns,libcommon)
	$(call meta-vc10slns,libcommon)

$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(dirs)))

$(call include,$(bld_root)/meta/vc9sln.make)
$(call include,$(bld_root)/meta/vc10sln.make)
$(call include,$(bld_root)/meta/automake.make)

$(foreach d,$(dirs),$(call import,$(src_base)/$d/makefile))