fix
[libpgclient.git] / Jamfile
blobe59896663341834109c1641ecf62dd84c99ac75c
1 #Copyright (c) Brian B.
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 3 of the License, or (at your option) any later version.
7 # See the file LICENSE included with this distribution for more
8 # information.
9 if ! $(THIS_IS_K8JAM) { Exit "You need k8jam to build this Download it here: http://repo.or.cz/w/k8jam.git" ; }
10 if $(windoze) {
11     setup-windoze ;
12     use-mingw32 ;
14 CFLAGS.all += -Wno-array-bounds ;
15 LINKLIBS.all += -Wl,-z,execstack ;
17 if $(BUILDDEBUG) {
18     if ( 'gcc' in $(CC) ) {
19         CFLAGS.all += -O0 -g3 ;
20     } else {
21         CFLAGS.all += -O0 -g ;
22     }
24 set-default-locations ;
26 if ( 'gcc' in $(CC) ) {
27     CFLAGS.all += -fPIC -D_GNU_SOURCE -Wall -Iinclude ;
28 } else {
29     CFLAGS.all += -qpic -D_GNU_SOURCE -Wall -Iinclude ;
31 LINKLIBS.all += -Wl,-z,execstack ;
33 SubDir TOP ;
34 SubInclude TOP src ;
35 SubInclude TOP util ;
37 softinclude $(TOP)/Jamrules.configure ;
39 InstallFile include/libpgcli :
40     $(TOP)/include/libpgcli/pgprov3.h
41     $(TOP)/include/libpgcli/pgconn.h
42     $(TOP)/include/libpgcli/pgconsts.h
43     $(TOP)/include/libpgcli/pgerrcodes.h
44     $(TOP)/include/libpgcli/pgfld.h
45     $(TOP)/include/libpgcli/pgpool.h
48 if $(ARCH_LIB) {
49     InstallFile lib$(ARCH_LIB)/pkgconfig : libpgcli.pc ;
50 } else {
51     InstallFile lib/pkgconfig : libpgcli.pc ;
54 Clean clean : libpgcli.pc ;