2 # Symbolic target to add to all
6 # pkg-config specification file
7 otherproj-PC-PREFIX := $(prefix)
8 otherproj-PC-NAME := otherproj
9 otherproj-PC-DESC := Some other project
10 otherproj-PC-URL := http://www.otherproj.example.com/
11 otherproj-PC-VERSION := 1.0
12 otherproj-PC-LIBS := -lotherproject
13 otherproj-PC-CFLAGS := -DOTHERPROJ_DEFINE
14 otherproj-PC-VARS := PREFIX NAME DESC URL VERSION LIBS CFLAGS
15 $L/otherproj.pc: PC_VARS := $(otherproj-PC-VARS)
16 $L/otherproj.pc: $C/otherproj.pc.in $L/otherproj.pc-flags
17 # trigger a rebuild when flags change
18 setup_flags_files__ := $(call gen_rebuild_flags,$L/otherproj.pc-flags,\
19 $(call varcat,$(otherproj-PC-VARS),otherproj-PC-))
21 $I/lib/pkgconfig/otherproj.pc: $L/otherproj.pc
22 install += $I/lib/pkgconfig/otherproj.pc
23 otherproj: $L/otherproj.pc
26 $L/libotherproj.so: LINKER := $(CC)
27 $L/libotherproj.so: $(call find_objects,c)
28 $I/lib/libotherproj.so: $L/libotherproj.so
29 install += $I/lib/libotherproj.so
30 otherproj: $L/libotherproj.so
32 # Install the library's headers
33 $I/include/otherproj/%.h: $C/%.h
35 # XXX: we can't use += here, call will be resolved lazily if we do
36 install := $(install) $(call find_headers,h,$I/include/otherproj)
38 # Create the include directory symlink and pkg-config flags file
39 setup_include_dir__ := $(call symlink_include_dir,otherproj)