Mercurial > notdcc
comparison Makefile.inc.in @ 0:c7f6b056b673
First import of vendor version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 13:49:58 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c7f6b056b673 |
---|---|
1 # common Makefile lines for the Distributed Checksum Clearinghouse | |
2 | |
3 # Copyright (c) 2008 by Rhyolite Software, LLC | |
4 # | |
5 # This agreement is not applicable to any entity which sells anti-spam | |
6 # solutions to others or provides an anti-spam solution as part of a | |
7 # security solution sold to other entities, or to a private network | |
8 # which employs the DCC or uses data provided by operation of the DCC | |
9 # but does not provide corresponding data to other users. | |
10 # | |
11 # Permission to use, copy, modify, and distribute this software without | |
12 # changes for any purpose with or without fee is hereby granted, provided | |
13 # that the above copyright notice and this permission notice appear in all | |
14 # copies and any distributed versions or copies are either unchanged | |
15 # or not called anything similar to "DCC" or "Distributed Checksum | |
16 # Clearinghouse". | |
17 # | |
18 # Parties not eligible to receive a license under this agreement can | |
19 # obtain a commercial license to use DCC by contacting Rhyolite Software | |
20 # at sales@rhyolite.com. | |
21 # | |
22 # A commercial license would be for Distributed Checksum and Reputation | |
23 # Clearinghouse software. That software includes additional features. This | |
24 # free license for Distributed ChecksumClearinghouse Software does not in any | |
25 # way grant permision to use Distributed Checksum and Reputation Clearinghouse | |
26 # software | |
27 # | |
28 # THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL | |
29 # WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |
30 # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC | |
31 # BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES | |
32 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
33 # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
34 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
35 # SOFTWARE. | |
36 | |
37 # Rhyolite Software DCC 1.3.103-1.61 $Revision$ | |
38 # @configure_input@ | |
39 | |
40 # These lines must not include any rules, or the shared BSD mk files | |
41 # will be confused and not do anything. | |
42 | |
43 # BSD/OS bsd.prog.mk includes ../Makefile.inc twice | |
44 @MAKE_DOT@ifndef DCC_MAKEFILE_INC | |
45 DCC_MAKEFILE_INC=x | |
46 | |
47 # common to all DCC clients | |
48 CLNTLIBS =$(DEPTH)/dcclib/libdcc.a | |
49 | |
50 # common to threaded DCC clients | |
51 THRINC =-I$(DEPTH)/thrlib @PTHREAD_CFLAGS@ | |
52 THR_LDADD =$(DEPTH)/thrlib/libthr.a @PTHREAD_LIBS@ | |
53 THR_DPADD =$(DEPTH)/thrlib/libthr.a | |
54 | |
55 SRVRINC =-I$(DEPTH)/srvrlib | |
56 SRVRLIBS =$(DEPTH)/srvrlib/libsrvr.a | |
57 | |
58 @DCC_CC@ | |
59 RANLIB =@RANLIB@ | |
60 | |
61 NOPROFILE = # stop FreeBSD profile library | |
62 NO_PROFILE = | |
63 NOGCCERROR = #turn off NetBSD's default nonsense in bsd.sys.mk | |
64 NOLINT = #why does NetBSD care about lint today? | |
65 NO_LINT = # suppress FreeBSD noise about NOLINT | |
66 STRIP = #keep FreeBSD from stripping the a.outs | |
67 | |
68 LDADD +=$(CLNTLIBS) @LIBS@ | |
69 DPADD +=$(CLNTLIBS) | |
70 | |
71 #DBGFLAGS +=-g | |
72 #DBGFLAGS +=-DDCC_DEBUG_HEAP -DDCC_DEBUG_CKSUM -DDCC_DEBUG_CLNT_LOCK | |
73 # --with-c-warnings gcc warnings | |
74 @CWRN1@ +=-W -Wall -Wunused -Winline -Wbad-function-cast | |
75 @CWRN1@ +=-Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings | |
76 # --with-c-warnings=2 often not supported | |
77 @CWRN2@ +=-Wdeclaration-after-statement -Wmissing-noreturn -Wswitch-enum | |
78 # --with-c-warnings=3 often wrong | |
79 @CWRN3@ +=-Wformat-nonliteral -Wunreachable-code -Wcast-align | |
80 CFLAGS +=@DCC_CFLAGS@ $(DBGFLAGS) $(CWARN) -I$(DEPTH)/include $(PROFILE) | |
81 LDFLAGS +=@DCC_LDFLAGS@ $(DBGFLAGS) $(PROFILE) | |
82 | |
83 # turn off man pages if not installing on the system | |
84 @NO_SYS_INSTALL@ | |
85 @NO_SUID@ | |
86 | |
87 DCC_HOMEDIR =@prefix@ | |
88 @MAKE_DOT@ifdef DCC_BINDIR | |
89 BINDIR =$(DCC_BINDIR) | |
90 @MAKE_DOT@else | |
91 BINDIR =@installroot@@bindir@ | |
92 @MAKE_DOT@endif | |
93 | |
94 @MAKE_DOT@ifndef DCC_OWN | |
95 @MAKE_DOT@ifdef NO_SUID | |
96 DCC_OWN =@DCC_OWN@ | |
97 @MAKE_DOT@else | |
98 DCC_OWN =@DCCSUID@ | |
99 @MAKE_DOT@endif | |
100 @MAKE_DOT@endif | |
101 BINOWN =$(DCC_OWN) | |
102 | |
103 @MAKE_DOT@ifndef DCC_GRP | |
104 DCC_GRP =@DCC_GRP@ | |
105 @MAKE_DOT@endif | |
106 BINGRP =$(DCC_GRP) | |
107 | |
108 @MAKE_DOT@ifndef DCC_MODE | |
109 DCC_MODE =555 | |
110 @MAKE_DOT@endif | |
111 BINMODE =$(DCC_MODE) | |
112 | |
113 MANDIR =@installroot@@mandir@ | |
114 @MAKE_DOT@ifndef MANGRP | |
115 MANGRP =$(DCC_GRP) | |
116 @MAKE_DOT@endif | |
117 @MAKE_DOT@ifndef MANOWN | |
118 MANOWN =$(DCC_OWN) | |
119 @MAKE_DOT@endif | |
120 MANMODE =444 | |
121 | |
122 @MAKE_DOT@ifdef NO_SYS_INSTALL | |
123 NOMAN =no | |
124 SET_BINOWN= | |
125 SET_MANOWN= | |
126 SET_DCCOWN= | |
127 @MAKE_DOT@else | |
128 SET_BINOWN=-o $(BINOWN) -g $(BINGRP) | |
129 SET_MANOWN=-o $(MANOWN) -g $(MANGRP) | |
130 SET_DCCOWN=-o @DCCSUID@ -g $(BINGRP) | |
131 @MAKE_DOT@endif | |
132 | |
133 @MAKE_DOT@ifdef PROG | |
134 MAN8 =$(PROG).0 | |
135 # turn off man pages in the command directories and build them in the top level | |
136 NOMAN =no | |
137 @MAKE_DOT@endif | |
138 @MAKE_DOT@endif | |
139 | |
140 # deal with silly FreeBSD renaming frenzy | |
141 @MAKE_DOT@ifdef NOMAN | |
142 NO_MAN =no | |
143 @MAKE_DOT@endif |