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
|
LIB = objopenssl
LIB_MAJOR = 0
LIB_MINOR = 0
CPPFLAGS += -Wall -g
LIBS += -lssl -lcrypto -lz
includedir = ObjOpenSSL
prefix ?= /usr/local
INSTALL ?= install
LIB_PREFIX = `objfw-config --lib-prefix`
LIB_SUFFIX = `objfw-config --lib-suffix`
LIB_FILE = ${LIB_PREFIX}${LIB}${LIB_SUFFIX}
.SILENT:
all:
objfw-compile --lib ${LIB_MAJOR}.${LIB_MINOR} ${CPPFLAGS} ${LIBS} \
-o ${LIB} -Wno-deprecated-declarations src/*.m
install: install-lib install-headers
install-lib: all
mkdir -p ${destdir}${prefix}/lib
export LIB_MAJOR=${LIB_MAJOR}; \
|
>
>
|
|
|
|
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
|
LIB = objopenssl
LIB_MAJOR = 0
LIB_MINOR = 0
CPPFLAGS += -Wall -g
LIBS += -lssl -lcrypto -lz
includedir = ObjOpenSSL
prefix ?= /usr/local
INSTALL ?= install
OBJFW_CONFIG ?= objfw-config
OBJFW_COMPILE ?= objfw-compile
LIB_PREFIX = `${OBJFW_CONFIG} --lib-prefix`
LIB_SUFFIX = `${OBJFW_CONFIG} --lib-suffix`
LIB_FILE = ${LIB_PREFIX}${LIB}${LIB_SUFFIX}
.SILENT:
all:
${OBJFW_COMPILE} --lib ${LIB_MAJOR}.${LIB_MINOR} ${CPPFLAGS} ${LIBS} \
-o ${LIB} -Wno-deprecated-declarations src/*.m
install: install-lib install-headers
install-lib: all
mkdir -p ${destdir}${prefix}/lib
export LIB_MAJOR=${LIB_MAJOR}; \
|