tmp commit
[libex.git] / Jamfile
blob15cc7f5e7f59758b2ad51b5524c8b0388d1ace8e
1 #Copyright (c) Brian B.
3 #Permission to use, copy, modify, and/or distribute this software for any purpose
4 #with or without fee is hereby granted.
6 #THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7 #REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
8 #FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9 #INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
10 #OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
11 #TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
12 if ! $(THIS_IS_K8JAM) { Exit "You need k8jam to build this Download it here: http://repo.or.cz/w/k8jam.git" ; }
13 set-default-locations ;
15 if ( 'gcc' in $(CC) ) {
16     CFLAGS.all += -fPIC -Wno-address ;
17 } else {
18     CFLAGS.all += -qpic ;
20 CFLAGS.all += -D_GNU_SOURCE -Iinclude ;
22 SONAME = "1" ;
23 VERSION = "2.0.0" ;
24 if ( 'gcc' in $(CC) ) {
25     SO_VERSION.all += $(VERSION) ;
26     LINKLIBS.all += -Wl,-z,execstack ;
29 SubDir TOP ;
30 SubInclude TOP src ;
31 if $(BUILDTESTS) {
32     SubInclude TOP test ;
35 if $(BUILDSO) && ( 'gcc' in $(CC) ) {
36     SoftLink libex.so : libex.so.$(VERSION) ;
37     SoftLink libex.so.$(SONAME) : libex.so.$(VERSION) ;
38     Clean clean : libex.so libex.so.$(SONAME) ;
41 softinclude $(TOP)/Jamrules.configure ;
43 InstallFile include/libex :
44     $(TOP)/include/libex/array.h
45     $(TOP)/include/libex/endian.h
46     $(TOP)/include/libex/task.h
47     $(TOP)/include/libex/time.h
48     $(TOP)/include/libex/file.h
49     $(TOP)/include/libex/html.h
50     $(TOP)/include/libex/http.h
51     $(TOP)/include/libex/list.h
52     $(TOP)/include/libex/net.h
53     $(TOP)/include/libex/unet.h
54     $(TOP)/include/libex/qdb.h
55     $(TOP)/include/libex/str.h
56     $(TOP)/include/libex/sys.h
57     $(TOP)/include/libex/tree.h
58     $(TOP)/include/libex/json.h
59     $(TOP)/include/libex/hash.h
60     $(TOP)/include/libex/msg.h
61     $(TOP)/include/libex/rpc.h
62     $(TOP)/include/libex/ws.h
63     $(TOP)/include/libex/wsnet.h
66 InstallFile include/libex/poll :
67     $(TOP)/include/libex/poll/net_poll.h
70 if $(ARCH_LIB) {
71     InstallFile lib$(ARCH_LIB)/pkgconfig : libex.pc ;
72 } else {
73     InstallFile lib/pkgconfig : libex.pc ;
76 if $(BUILDSO) {
77     InstallFile lib$(ARCH_LIB) libex.so libex.so.$(SONAME) ;
80 Clean clean : libex.pc ;