ObjPgSQL  Check-in [8679c61b2c]

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: 8679c61b2c82da9daa316ed5eb90ba1b69e608127afa318cbdbff56b53d65a74
User & Date: js on 2014-07-18 23:35:18
Other Links: manifest | tags
Context
2014-07-18
23:35
tests: Get username from environment check-in: 4c1432632b user: js tags: trunk
23:35
Add a proper build system check-in: 8679c61b2c user: js tags: trunk
21:40
Adjust to ObjFW changes check-in: bec524d06b user: js tags: trunk
Changes

Modified .gitignore from [bb7fa7dc62] to [e5bfada6c3].


1
2

3
4
5
6
7
8










*.dll
*.dylib

*.so
*~
build
test
ObjPgSQL.xcodeproj/project.xcworkspace
ObjPgSQL.xcodeproj/xcuserdata









>


>


<
|


>
>
>
>
>
>
>
>
>
1
2
3
4
5
6

7
8
9
10
11
12
13
14
15
16
17
18
*.a
*.dll
*.dylib
*.o
*.so
*~

.deps
ObjPgSQL.xcodeproj/project.xcworkspace
ObjPgSQL.xcodeproj/xcuserdata
aclocal.m4
autom4te.cache
buildsys.mk
config.log
config.status
configure
extra.mk
tests/tests
tests/tests.exe

Modified Makefile from [a9382169fd] 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
LIB = objpgsql
LIB_MAJOR = 0
LIB_MINOR = 0

SRCS = PGConnection.m				\
       PGResult.m				\
       PGResultRow.m				\
       exceptions/PGCommandFailedException.m	\
       exceptions/PGConnectionFailedException.m	\
       exceptions/PGException.m

HEADERS = ${SRCS:.m=.h}	\
	  ObjPgSQL.h

CPPFLAGS += -Iexceptions -I.
OBJCFLAGS += -Werror
LIBS += -lpq

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}

all:
	@objfw-compile				\
		--lib ${LIB_MAJOR}.${LIB_MINOR}	\
		-o objpgsql			\
		--builddir build		\
		${CPPFLAGS}			\
		${OBJCFLAGS}			\
		${LIBS}				\
		${SRCS}

.PHONY: test
test:
	@objfw-compile			\
		-o test			\
		--builddir build	\
		-L.			\
		-lobjpgsql		\
		${CPPFLAGS}		\
		test.m

clean:
	rm -f test libobjpgsql.* exceptions/*~ *~
	rm -fr build

install:
	mkdir -p ${destdir}${prefix}/include/ObjPgSQL
	for i in ${HEADERS}; do \
		${INSTALL} -m 644 $$i \
			${destdir}${prefix}/include/ObjPgSQL/$$(basename $$i); \
	done
	mkdir -p ${destdir}${prefix}/lib
	export LIB_MAJOR=${LIB_MAJOR}; \
	export LIB_MINOR=${LIB_MINOR}; \
	${INSTALL} -m 755 ${LIB_FILE} ${destdir}${prefix}/lib/${LIB_FILE}
<
<
<
|
<
<
<
<
<
<

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<



1






2







































3














SUBDIRS = src














































include buildsys.mk











Deleted ObjPgSQL.h version [6e2b162d36].

Modified ObjPgSQL.xcodeproj/project.pbxproj from [1d9a4776a3] to [2a998d5353].

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
48
49
		4BCC7458161F82820074ED30 /* PGException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BCC7452161F82820074ED30 /* PGException.m */; };
		4BCC74B0162036A70074ED30 /* libpq.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BCC74AF162036A70074ED30 /* libpq.dylib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
		4BCC7424161F81760074ED30 /* ObjPgSQL.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ObjPgSQL.framework; sourceTree = BUILT_PRODUCTS_DIR; };
		4BCC743C161F82000074ED30 /* ObjFW.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ObjFW.framework; path = /Library/Frameworks/ObjFW.framework; sourceTree = "<absolute>"; };
		4BCC743E161F82560074ED30 /* ObjPgSQL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjPgSQL.h; sourceTree = SOURCE_ROOT; };
		4BCC743F161F82560074ED30 /* PGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGConnection.h; sourceTree = SOURCE_ROOT; };
		4BCC7440161F82560074ED30 /* PGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGConnection.m; sourceTree = SOURCE_ROOT; };
		4BCC7441161F82560074ED30 /* PGResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGResult.h; sourceTree = SOURCE_ROOT; };
		4BCC7442161F82560074ED30 /* PGResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGResult.m; sourceTree = SOURCE_ROOT; };
		4BCC7443161F82560074ED30 /* PGResultRow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGResultRow.h; sourceTree = SOURCE_ROOT; };
		4BCC7444161F82560074ED30 /* PGResultRow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGResultRow.m; sourceTree = SOURCE_ROOT; };
		4BCC744D161F82820074ED30 /* PGCommandFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGCommandFailedException.h; path = exceptions/PGCommandFailedException.h; sourceTree = SOURCE_ROOT; };
		4BCC744E161F82820074ED30 /* PGCommandFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGCommandFailedException.m; path = exceptions/PGCommandFailedException.m; sourceTree = SOURCE_ROOT; };
		4BCC744F161F82820074ED30 /* PGConnectionFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGConnectionFailedException.h; path = exceptions/PGConnectionFailedException.h; sourceTree = SOURCE_ROOT; };
		4BCC7450161F82820074ED30 /* PGConnectionFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGConnectionFailedException.m; path = exceptions/PGConnectionFailedException.m; sourceTree = SOURCE_ROOT; };
		4BCC7451161F82820074ED30 /* PGException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGException.h; path = exceptions/PGException.h; sourceTree = SOURCE_ROOT; };
		4BCC7452161F82820074ED30 /* PGException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGException.m; path = exceptions/PGException.m; sourceTree = SOURCE_ROOT; };
		4BCC7464161F85DF0074ED30 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };
		4BCC74AF162036A70074ED30 /* libpq.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpq.dylib; path = /usr/local/lib/libpq.dylib; sourceTree = "<absolute>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		4BCC7420161F81760074ED30 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;







|
|
|
|
|
|
|
|
|
|
|
|
|







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
48
49
		4BCC7458161F82820074ED30 /* PGException.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BCC7452161F82820074ED30 /* PGException.m */; };
		4BCC74B0162036A70074ED30 /* libpq.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BCC74AF162036A70074ED30 /* libpq.dylib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
		4BCC7424161F81760074ED30 /* ObjPgSQL.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ObjPgSQL.framework; sourceTree = BUILT_PRODUCTS_DIR; };
		4BCC743C161F82000074ED30 /* ObjFW.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ObjFW.framework; path = /Library/Frameworks/ObjFW.framework; sourceTree = "<absolute>"; };
		4BCC743E161F82560074ED30 /* ObjPgSQL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ObjPgSQL.h; path = src/ObjPgSQL.h; sourceTree = SOURCE_ROOT; };
		4BCC743F161F82560074ED30 /* PGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGConnection.h; path = src/PGConnection.h; sourceTree = SOURCE_ROOT; };
		4BCC7440161F82560074ED30 /* PGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGConnection.m; path = src/PGConnection.m; sourceTree = SOURCE_ROOT; };
		4BCC7441161F82560074ED30 /* PGResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGResult.h; path = src/PGResult.h; sourceTree = SOURCE_ROOT; };
		4BCC7442161F82560074ED30 /* PGResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGResult.m; path = src/PGResult.m; sourceTree = SOURCE_ROOT; };
		4BCC7443161F82560074ED30 /* PGResultRow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGResultRow.h; path = src/PGResultRow.h; sourceTree = SOURCE_ROOT; };
		4BCC7444161F82560074ED30 /* PGResultRow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGResultRow.m; path = src/PGResultRow.m; sourceTree = SOURCE_ROOT; };
		4BCC744D161F82820074ED30 /* PGCommandFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGCommandFailedException.h; path = src/exceptions/PGCommandFailedException.h; sourceTree = SOURCE_ROOT; };
		4BCC744E161F82820074ED30 /* PGCommandFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGCommandFailedException.m; path = src/exceptions/PGCommandFailedException.m; sourceTree = SOURCE_ROOT; };
		4BCC744F161F82820074ED30 /* PGConnectionFailedException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGConnectionFailedException.h; path = src/exceptions/PGConnectionFailedException.h; sourceTree = SOURCE_ROOT; };
		4BCC7450161F82820074ED30 /* PGConnectionFailedException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGConnectionFailedException.m; path = src/exceptions/PGConnectionFailedException.m; sourceTree = SOURCE_ROOT; };
		4BCC7451161F82820074ED30 /* PGException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PGException.h; path = src/exceptions/PGException.h; sourceTree = SOURCE_ROOT; };
		4BCC7452161F82820074ED30 /* PGException.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PGException.m; path = src/exceptions/PGException.m; sourceTree = SOURCE_ROOT; };
		4BCC7464161F85DF0074ED30 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };
		4BCC74AF162036A70074ED30 /* libpq.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpq.dylib; path = /usr/local/lib/libpq.dylib; sourceTree = "<absolute>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		4BCC7420161F81760074ED30 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;

Deleted PGConnection.h version [37db765c44].

Deleted PGConnection.m version [85877956d2].

Deleted PGResult.h version [6294089c40].

Deleted PGResult.m version [a066a8eda5].

Deleted PGResultRow.h version [f714b4a0e3].

Deleted PGResultRow.m version [bc24366b2f].

Added autogen.sh version [c6bd9ad460].

Added buildsys.mk.in version [4befe64d6f].

Added config.guess version [9816be2429].

Added config.sub version [738eef826a].

Added configure.ac version [7e166ad565].

Deleted exceptions/PGCommandFailedException.h version [4d78dea5a5].

Deleted exceptions/PGCommandFailedException.m version [2780d9067f].

Deleted exceptions/PGConnectionFailedException.h version [bfb4590c76].

Deleted exceptions/PGConnectionFailedException.m version [b1115b7f5a].

Deleted exceptions/PGException.h version [9572250036].

Deleted exceptions/PGException.m version [4cb1491070].

Added extra.mk.in version [8756e19492].

Added install-sh version [9ea35b608e].

Added m4/buildsys.m4 version [a0d8df708e].

Added src/Makefile version [66f14d12bb].

Added src/ObjPgSQL.h version [6e2b162d36].

Added src/PGConnection.h version [37db765c44].

Added src/PGConnection.m version [85877956d2].

Added src/PGResult.h version [6294089c40].

Added src/PGResult.m version [a066a8eda5].

Added src/PGResultRow.h version [f714b4a0e3].

Added src/PGResultRow.m version [bc24366b2f].

Added src/exceptions/Makefile version [01d595b4bc].

Added src/exceptions/PGCommandFailedException.h version [4d78dea5a5].

Added src/exceptions/PGCommandFailedException.m version [2780d9067f].

Added src/exceptions/PGConnectionFailedException.h version [bfb4590c76].

Added src/exceptions/PGConnectionFailedException.m version [b1115b7f5a].

Added src/exceptions/PGException.h version [9572250036].

Added src/exceptions/PGException.m version [4cb1491070].

Deleted test.m version [f75f44e51e].

Added tests/Makefile version [3e79ac04f4].

Added tests/tests.m version [f75f44e51e].