ObjOpenSSL  Check-in [889e63ed8a]

Overview
Comment:Add a proper build system.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 889e63ed8a06419831a849f992fff5278a5587ad3e71658ee7079bcb1a8972f9
User & Date: js on 2012-11-08 13:20:03
Other Links: manifest | tags
Context
2012-11-21
22:26
configure: Don't use -Wcast-align. check-in: f009f4af94 user: js tags: trunk
2012-11-08
13:20
Add a proper build system. check-in: 889e63ed8a user: js tags: trunk
13:19
Use the thread object's address as thread id. check-in: 3062d2861f user: js tags: trunk
Changes

Modified .gitignore from [839130c9b7] to [966b860767].

1
2
3

4







5

6
7
8
9

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-


+

+
+
+
+
+
+
+

+




*.dylib
*.o
*.so
*.dylib
*~
.deps
aclocal.m4
autom4te.cache
buildsys.mk
config.log
config.status
configure
DerivedData
extra.mk
ObjOpenSSL.xcodeproj/*.mode1v3
ObjOpenSSL.xcodeproj/*.pbxuser
ObjOpenSSL.xcodeproj/project.xcworkspace
ObjOpenSSL.xcodeproj/xcuserdata

Modified Makefile from [9e4fecb2b1] to [ed21ec15c3].

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
47




1


2

3







































-
-
-
-
+
-
-

-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
LIB = objopenssl
LIB_MAJOR = 0
LIB_MINOR = 0

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

includedir = ObjOpenSSL
include buildsys.mk
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}; \
	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

Added autogen.sh version [2b05639875].

Added buildsys.mk.in version [b65e728a78].

Added config.guess version [71dba7f4a4].

Added config.sub version [7000ece130].

Added configure.ac version [479c202821].

Added extra.mk.in version [3ef99a5605].

Added install-sh version [f9c6aba00d].

Added m4/buildsys.m4 version [80a1df42db].

Added src/Makefile version [df6bd47288].