ObjPgSQL  Check-in [f069ee6cec]

Overview
Comment:Improve Makefile.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f069ee6cec63463ffd11997190ca3337b2653b76bf77d68e40f146c8c1ebb049
User & Date: js on 2013-02-14 23:30:25
Other Links: manifest | tags
Context
2013-05-18
01:37
Add -[PGConnection close]. check-in: 52b090139e user: js tags: trunk
2013-02-14
23:30
Improve Makefile. check-in: f069ee6cec user: js tags: trunk
2013-02-13
23:40
Prefix all ivars with an underscore. check-in: 8c8a431322 user: js tags: trunk
Changes

Modified Makefile from [84367df8f0] to [a9382169fd].

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
       exceptions/PGCommandFailedException.m	\
       exceptions/PGConnectionFailedException.m	\
       exceptions/PGException.m

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

CPPFLAGS += -Wall -Iexceptions -I.

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 0.0		\
		-o objpgsql		\
		--builddir build	\
		${CPPFLAGS}		\

		${LIBS}			\
		${SRCS}

.PHONY: test
test:
	@objfw-compile			\
		-o test			\
		--builddir build	\







|
>













|
|
|
|
|
>
|







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
       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	\