ObjOpenSSL  Check-in [218a219fe5]

Overview
Comment:Move sources to src and add install and clean targets to Makefile.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 218a219fe5dcf469ae5059dc98ff60f50baba573b02811fc6a4f09893fe1bd72
User & Date: js on 2011-03-28 20:32:48
Other Links: manifest | tags
Context
2011-03-28
20:41
Add Xcode project. check-in: 4067b9e55c user: js tags: trunk
20:32
Move sources to src and add install and clean targets to Makefile. check-in: 218a219fe5 user: js tags: trunk
20:26
Add -[initWithSocket:]. check-in: c10ce0877b user: js tags: trunk
Changes

Modified Makefile from [5fb05e53d5] to [602b139ff6].


















1


2









































all:


	objfw-compile --lib 0.0 -o objopenssl *.m -lssl -lcrypto -lz -g -Wall
























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
LIB = objopenssl
LIB_MAJOR = 0
LIB_MINOR = 0

CPPFLAGS += -Wall -g
LIBS += -lssl -lcrypto -lz

includedir = ObjGnuOpenSSL
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} src/*.m

install: install-lib install-headers

install-lib: all
	mkdir -p ${destdir}${prefix}/lib
	export LIB_MAJOR=${LIB_MAJOR}; \
	export LIB_MINOR=${LIB_MINOR}; \
	echo "Installing ${LIB_FILE}..."; \
	${INSTALL} -m 755 ${LIB_FILE} ${destdir}${prefix}/lib/${LIB_FILE}

install-headers:
	mkdir -p ${destdir}${prefix}/include/${includedir}
	cd src && for i in *.h; do \
		echo "Installing $$i..."; \
		install -m 644 $$i \
			${destdir}${prefix}/include/${includedir}/$$i; \
	done

clean:
	export LIB_MAJOR=${LIB_MAJOR}; \
	export LIB_MINOR=${LIB_MINOR}; \
	for i in src/*.o ${LIB_FILE}; do \
		echo "Deleting $$i..."; \
		rm -f $$i; \
	done

Deleted SSLSocket.h version [247b5540e4].

Deleted SSLSocket.m version [81aea29e44].

Added src/SSLSocket.h version [247b5540e4].

Added src/SSLSocket.m version [81aea29e44].