2 # Create the include directory symbolic link
3 setup_include_dir__ := $(call symlink_include_dir,posixx)
5 # Symbolic target to add to all
9 # pkg-config specification file
10 posixx-PC-PREFIX := $(prefix)
11 posixx-PC-NAME := posixx
12 posixx-PC-DESC := Thin C++ wrapper for POSIX API
13 posixx-PC-URL := https://spec-dev.integratech.net/redmine/projects/show/posixx
14 posixx-PC-VERSION := 0.1
15 posixx-PC-VARS := PREFIX NAME DESC URL VERSION CFLAGS
16 $L/posixx.pc: PC_VARS := $(posixx-PC-VARS)
17 $L/posixx.pc: $C/posixx.pc.in $O/$S/posixx.pc-flags
18 # trigger a rebuild when flags change
19 setup_flags_files__ := $(call gen_rebuild_flags,$O/$S/posixx.pc-flags,\
20 $(call varcat,$(posixx-PC-VARS),posixx-PC-))
23 $I/lib/pkgconfig/posixx.pc: $L/posixx.pc
24 install += $I/lib/pkgconfig/posixx.pc
26 # Build the documentation using doxygen
28 posixx-doc: $D/posixx/doxygen-stamp
29 $D/posixx/doxygen-stamp: $C/Doxyfile $(call find_files,.hpp)
32 # Install the library's headers
33 $I/include/posixx/%.hpp: $C/%.hpp
35 # XXX: we can't use += here, call will be resolved lazily if we do
36 install := $(install) $(call find_files,.hpp,$I/include/posixx)