# common Makefile lines for the Distributed Checksum Clearinghouse # Copyright (c) 2012 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 without # changes for any purpose with or without fee is hereby granted, provided # that the above copyright notice and this permission notice appear in all # copies and any distributed versions or copies are either unchanged # or not called anything similar to "DCC" or "Distributed Checksum # Clearinghouse". # # Parties not eligible to receive a license under this agreement can # obtain a commercial license to use DCC by contacting Rhyolite Software # at sales@rhyolite.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.142-1.71 $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 DCC clients .ifndef CLNTLIBS CLNTLIBS =$(DEPTH)/clntlib/libclnt.a $(DEPTH)/dcclib/libdcc.a .endif # common to threaded DCC clients THRINC =-I$(DEPTH)/thrlib THR_LDADD =$(DEPTH)/thrlib/libthr.a -lpthread THR_DPADD =$(DEPTH)/thrlib/libthr.a SRVRINC =-I$(DEPTH)/srvrlib SRVRLIBS =$(DEPTH)/srvrlib/libsrvr.a #CC= NOPROFILE = # stop FreeBSD profile library .ifndef MAKEOBJDIRPREFIX MAKEOBJDIRPREFIX= # stop FreeBSD noise about object directories .endif NO_PROFILE = NOGCCERROR = # turn off NetBSD's default nonsense in bsd.sys.mk MAKEVERBOSE =0 # make NetBSD less chatty NOLINT = # why does NetBSD care about lint today? NO_LINT = # stop FreeBSD noise about the NetBSD NOLINT STRIP = # keep FreeBSD from stripping the a.outs LDADD +=$(CLNTLIBS) -lmd -lm -ledit -ltermcap DPADD +=$(CLNTLIBS) #DBGFLAGS +=-g #DBGFLAGS +=-DDCC_DEBUG_HEAP -DDCC_DEBUG_CKSUM -DDCC_DEBUG_CLNT_LOCK # --with-c-warnings #CWARN +=-W -Wall -Wunused -Wbad-function-cast #CWARN +=-Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings # --with-c-warnings=2 #CWARN +=-Wdeclaration-after-statement -Wswitch-enum # --with-c-warnings=3 often wrong #CWARN +=-Wformat-nonliteral -Wunreachable-code -Wcast-align #CWARN +=-Wmissing-noreturn CFLAGS += $(DBGFLAGS) $(CWARN) -I$(DEPTH)/include $(PROFILE) LDFLAGS += $(DBGFLAGS) $(PROFILE) # turn off man pages if not installing on the system #install man pages #cdcc, dccproc, ... set-UID dcc .ifdef DCC_BINDIR BINDIR =$(DCC_BINDIR) .else BINDIR =/usr/local/bin .endif .ifndef DCC_OWN .ifdef NO_SUID DCC_OWN =root .else DCC_OWN =dcc .endif .endif BINOWN =$(DCC_OWN) .ifndef DCC_GRP DCC_GRP =wheel .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 .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 -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