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
33
34
35
36
37
38
|
#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@"
LDFLAGS=""
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
VERSION="0.4-dev"
show_help() {
cat <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--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
--version Outputs the installed version
__EOF__
exit 0
}
test -z "$1" && show_help
|
>
>
>
>
>
>
>
>
|
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@"
LIB_CFLAGS="@LIB_CFLAGS@"
LIB_LDFLAGS="@LIB_LDFLAGS@"
LIB_PREFIX="@LIB_PREFIX@"
LIB_SUFFIX="@LIB_SUFFIX@"
LDFLAGS=""
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
VERSION="0.4-dev"
show_help() {
cat <<__EOF__
objfw-config: Available arguments are:
--all Outputs all flags + libs
--cflags Outputs the required CFLAGS
--cppflags Outputs the required CPPFLAGS
--cxxflags Outputs the required CXXFLAGS
--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"
--version Outputs the installed version
__EOF__
exit 0
}
test -z "$1" && show_help
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
printf "%s" "$LIBS"
;;
--ldflags)
printf "%s" "$LDFLAGS"
;;
--reexport)
printf "%s" "$LDFLAGS_REEXPORT"
;;
--rpath)
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
;;
--objcflags)
printf "%s" "$OBJCFLAGS"
;;
--libs)
printf "%s" "$LIBS"
;;
--lib-cflags)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
printf "%s" "$LIB_CFLAGS"
;;
--lib-ldflags)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
printf "%s" "$LIB_LDFLAGS"
;;
--lib-prefix)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
printf "%s" "$LIB_PREFIX"
;;
--lib-suffix)
if test x"$LIB_MAJOR" = x"" -o x"$LIB_MINOR" = x""; then
echo "LIB_MAJOR and LIB_MINOR need to be set!" \
1>&2
exit 1
fi
printf "%s" "$LIB_SUFFIX"
;;
--ldflags)
printf "%s" "$LDFLAGS"
;;
--reexport)
printf "%s" "$LDFLAGS_REEXPORT"
;;
--rpath)
|