37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"
STATIC_LIBS="${libdir}/libobjfw.a @LIBS@"
VERSION="@PACKAGE_VERSION@"
show_help() {
cat <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--arc Outputs the required OBJCFLAGS to use ARC
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--framework-libs Outputs the required LIBS, preferring frameworks
--objc Outputs the OBJC used to compile ObjFW
--objcflags Outputs the required OBJCFLAGS
--ldflags Outputs the required LDFLAGS
--reexport Outputs LDFLAGS to reexport ObjFW
--rpath Outputs LDFLAGS for using rpath
--libs Outputs the required LIBS
--lib-cflags Outputs CFLAGS for building a library
--lib-ldflags Outputs LDFLAGS for building a library
--lib-prefix Outputs the prefix for libraries
--lib-suffix Outputs the suffix for libraries
--prog-suffix Outputs the suffix for binaries
--static-libs Outputs the required LIBS to link ObjFW statically
--version Outputs the installed version
__EOF__
exit $1
}
test -z "$1" && show_help 1
|
|
|
<
<
<
>
>
>
>
>
>
>
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"
STATIC_LIBS="${libdir}/libobjfw.a @LIBS@"
VERSION="@PACKAGE_VERSION@"
show_help() {
cat >&2 <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--arc Outputs the required OBJCFLAGS to use ARC
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--framework-libs Outputs the required LIBS, preferring frameworks
--help Print this help
--ldflags Outputs the required LDFLAGS
--libs Outputs the required LIBS
--lib-cflags Outputs CFLAGS for building a library
--lib-ldflags Outputs LDFLAGS for building a library
--lib-prefix Outputs the prefix for libraries
--lib-suffix Outputs the suffix for libraries
--objc Outputs the OBJC used to compile ObjFW
--objcflags Outputs the required OBJCFLAGS
--plugin-cflags Outputs CFLAGS for building a plugin
--plugin-ldflags Outputs LDFLAGS for building a plugin
--plugin-suffix Outputs the suffix for plugins
--prog-suffix Outputs the suffix for binaries
--reexport Outputs LDFLAGS to reexport ObjFW
--rpath Outputs LDFLAGS for using rpath
--static-libs Outputs the required LIBS to link ObjFW statically
--version Outputs the installed version
__EOF__
exit $1
}
test -z "$1" && show_help 1
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
;;
--cxxflags)
printf "%s" "$CXXFLAGS"
;;
--framework-libs)
printf "%s" "$FRAMEWORK_LIBS"
;;
--objc)
printf "%s" "$OBJC"
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
|
>
>
>
|
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
;;
--cxxflags)
printf "%s" "$CXXFLAGS"
;;
--framework-libs)
printf "%s" "$FRAMEWORK_LIBS"
;;
--help)
show_help 0
;;
--objc)
printf "%s" "$OBJC"
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
|