# common Makefile lines for the Distributed Checksum Clearinghouse # Copyright (c) 2006 by Rhyolite Software, LLC # # This agreement is not applicable to any entity which sells anti-spam # solutions to others or provides an anti-spam solution as part of a # security solution sold to other entities, or to a private network # which employs the DCC or uses data provided by operation of the DCC # but does not provide corresponding data to other users. # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # Parties not eligible to receive a license under this agreement can # obtain a commercial license to use DCC and permission to use # U.S. Patent 6,330,590 by contacting Commtouch at http://www.commtouch.com/ # or by email to nospam@commtouch.com. # # A commercial license would be for Distributed Checksum and Reputation # Clearinghouse software. That software includes additional features. This # free license for Distributed ChecksumClearinghouse Software does not in any # way grant permision to use Distributed Checksum and Reputation Clearinghouse # software # # THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL # WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC # BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # SOFTWARE. # Rhyolite Software DCC 1.3.50-1.56 $Revision$ # Generated automatically from Makefile.inc.in by configure. # These lines must not include any rules, or the shared BSD mk files # will be confused and not do anything. # BSD/OS bsd.prog.mk includes ../Makefile.inc twice .ifndef DCC_MAKEFILE_INC DCC_MAKEFILE_INC=x # common to all DCC clients CLNTLIBS =${DEPTH}/dcclib/libdcc.a # common to threaded DCC clients THRINC =-I${DEPTH}/thrlib THR_LPADD =${DEPTH}/thrlib/libthr.a THR_DPADD =${DEPTH}/thrlib/libthr.a SRVRINC =-I${DEPTH}/srvrlib SRVRLIBS =${DEPTH}/srvrlib/libsrvr.a #CC= RANLIB =ranlib -c NOPROFILE = # stop FreeBSD profile library NO_PROFILE = NOGCCERROR = #turn off NetBSD's default nonsense in bsd.sys.mk NOLINT = #why does NetBSD care about lint today? NO_LINT = # suppress FreeBSD noise about NOLINT STRIP = #keep FreeBSD from stripping the a.outs LDADD +=$(CLNTLIBS) -lmd -lm -lresolv DPADD +=$(CLNTLIBS) #DBGFLAGS +=-g #DBGFLAGS +=-DDCC_DEBUG_HEAP -DDCC_DEBUG_CKSUM -DDCC_DEBUG_CLNT_LOCK # turn on gcc warnings only for gcc CWARN +=-W -Wall -Wunused -Winline -Wbad-function-cast CWARN +=-Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings # not always supported #CWARN +=-Wdeclaration-after-statement -Wmissing-noreturn #CWARN +=-Wswitch-enum # often wrong #CWARN +=-Wformat-nonliteral -Wunreachable-code -Wcast-align CFLAGS += $(DBGFLAGS) $(CWARN) -I${DEPTH}/include $(PROFILE) LDFLAGS += $(DBGFLAGS) $(PROFILE) DCC_HOMEDIR =/usr/local/dcc .ifdef DCC_BINDIR BINDIR =$(DCC_BINDIR) .else BINDIR =/usr/local/bin .endif .ifdef DCC_SUID # some versions of gmake do not understand ?= .ifndef DCC_OWN DCC_OWN =$(DCC_SUID) .endif .else DCC_SUID =dcc .ifndef DCC_OWN DCC_OWN =daemon .endif .endif BINOWN =$(DCC_OWN) .ifndef DCC_GRP DCC_GRP =daemon .endif BINGRP =$(DCC_GRP) .ifndef DCC_MODE DCC_MODE =555 .endif BINMODE =$(DCC_MODE) MANDIR =/usr/local/man/man .ifndef MANGRP MANGRP =$(DCC_GRP) .endif .ifndef MANOWN MANOWN =$(DCC_OWN) .endif MANMODE =444 # turn off man pages if not installing on the system #install man pages .ifdef NO_SYS_INSTALL NOMAN =no SET_BINOWN= SET_MANOWN= SET_DCCOWN= .else SET_BINOWN=-o $(BINOWN) -g $(BINGRP) SET_MANOWN=-o $(MANOWN) -g $(MANGRP) SET_DCCOWN=-o $(DCC_SUID) -g $(BINGRP) .endif .ifdef PROG MAN8 =$(PROG).0 # turn off man pages in the command directories and build them in the top level NOMAN =no .endif .endif # deal with silly FreeBSD renaming frenzy .ifdef NOMAN NO_MAN =no .endif