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
31
32
|
std.out_files += $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES)
std.sys_files += $(addprefix $(libdir)/,$(lib_LTLIBRARIES))
std.out_files += $(bin_PROGRAMS) $(libexec_PROGRAMS)
std.sys_files += $(addprefix $(bindir)/,$(bin_PROGRAMS))
std.sys_files += $(addprefix $(libexecdir)/,$(libexec_PROGRAMS))
std.out_files += $(notdir $(pkgconfiglib_DATA))
std.sys_files += $(addprefix $(pkgconfiglibdir)/,$(notdir $(pkgconfiglib_DATA)))
$(foreach n,$(call automake_name,$(std.out_files)),\
$(eval $n_SOURCES ?=)\
$(eval nodist_$n_SOURCES ?=)\
$(eval $n_CFLAGS ?=)\
$(eval $n_CPPFLAGS ?=)\
$(eval $n_LDFLAGS ?=)\
$(eval $n_LIBADD ?=)\
$(eval $n_LDADD ?=))
$(foreach t,$(filter %.la,$(std.out_files)), \
$(eval $t.DEPENDS += $(call at.path,$(call automake_lo,$t) $(call automake_lib,$t,LIBADD)) )\
$(eval am.CPPFLAGS += $($(call automake_name,$t)_CPPFLAGS) $(call automake_cpp,$t,LIBADD) )\
$(eval am.CFLAGS += $($(call automake_name,$t)_CFLAGS) )\
$(eval $t: private ALL_LDFLAGS += $($(call automake_name,$t)_LDFLAGS) )\
$(eval $(outdir)/$t: $($t.DEPENDS) )\
$(eval at.depdirs += $(abspath $(sort $(dir $(filter-out -l% /%,$($t.DEPENDS))))) ))
$(foreach t,$(bin_PROGRAMS) $(libexec_PROGRAMS), \
$(eval $t.DEPENDS += $(call at.path,$(call automake_o,$t) $(call automake_lib,$t,LDADD)) )\
$(eval am.CPPFLAGS += $($(call automake_name,$t)_CPPFLAGS) $(call automake_cpp,$t,LDADD) )\
$(eval am.CFLAGS += $($(call automake_name,$t)_CFLAGS) )\
$(eval $t: private ALL_LDFLAGS += $($(call automake_name,$t)_LDFLAGS) )\
$(eval $(outdir)/$t: $($t.DEPENDS) )\
$(eval at.depdirs += $(abspath $(sort $(dir $(filter-out -l% /%,$($t.DEPENDS))))) ))
|