1#! smake 2# $Id$ 3# 4# @WARNING@ 5# 6# HylaFAX Facsimile Software 7# 8# Copyright (c) 1990-1996 Sam Leffler 9# Copyright (c) 1991-1996 Silicon Graphics, Inc. 10# HylaFAX is a trademark of Silicon Graphics 11# 12# Permission to use, copy, modify, distribute, and sell this software and 13# its documentation for any purpose is hereby granted without fee, provided 14# that (i) the above copyright notices and this permission notice appear in 15# all copies of the software and related documentation, and (ii) the names of 16# Sam Leffler and Silicon Graphics may not be used in any advertising or 17# publicity relating to the software without the specific, prior written 18# permission of Sam Leffler and Silicon Graphics. 19# 20# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 21# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 22# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 23# 24# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 25# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 26# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 27# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 28# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 29# OF THIS SOFTWARE. 30# 31 32# 33# VERSION: @VERSION@ 34# DATE: @DATE@ 35# TARGET: @TARGET@ 36# CCOMPILER: @CCOMPILER@ 37# CXXCOMPILER: @CXXCOMPILER@ 38# 39DEPTH=.. 40SUBDIR=hfaxd 41@MAKEINCLUDE@ @MAKELQUOTE@${DEPTH}/defs@MAKERQUOTE@ 42FAXDSRCDIR= ${DEPTH}/${TOPSRCDIR}/faxd 43 44C++FILES=Admin.c++ \ 45 FIFO.c++ \ 46 FileCache.c++ \ 47 FileSystem.c++ \ 48 FileTransfer.c++ \ 49 HylaFAXServer.c++ \ 50 Jobs.c++ \ 51 Login.c++ \ 52 Parser.c++ \ 53 RecvQueue.c++ \ 54 Status.c++ \ 55 Trigger.c++ \ 56 User.c++ \ 57 PAM.c++ \ 58 \ 59 SuperServer.c++ \ 60 InetFaxServer.c++ \ 61 SNPPServer.c++ \ 62 UnixFaxServer.c++ \ 63 \ 64 main.c++ 65LC++DEFS=-DSNPP_SUPPORT=1 66LC++INCS= -I${FAXDSRCDIR} ${ZLIBINC} 67TARGETS = hfaxd 68 69default all:: 70 @${MAKE} incdepend 71 @${MAKE} targets 72 73targets: $(TARGETS) 74 75@MAKEINCLUDE@ @MAKELQUOTE@${COMMONRULES}@MAKERQUOTE@ 76 77hfaxd: ${OBJECTS} FaxRequest.o FaxItem.o ${LIBS} 78 ${C++F} -o $@ ${OBJECTS} FaxRequest.o FaxItem.o ${LIBCRYPT} ${LIBPAM} ${LDFLAGS} 79 80# 81# Private versions are built so that we do not need 82# to link against the libfaxserver archive; this 83# avoids lots of problems on systems that do not have 84# support for DSOs (there would be many undefined 85# symbols that could only be resolved by bloating 86# the contents of the archive). 87# 88FaxRequest.o: ${FAXDSRCDIR}/FaxRequest.c++ 89 ${C++F} -c ${C++FILE} -I${DEPTH}/faxd ${FAXDSRCDIR}/FaxRequest.c++@MAKECXXOVERRIDE@ 90FaxItem.o: ${FAXDSRCDIR}/FaxItem.c++ 91 ${C++F} -c ${C++FILE} ${FAXDSRCDIR}/FaxItem.c++@MAKECXXOVERRIDE@ 92 93HylaFAXServer.o: 94incdepend: 95 96install: default 97 ${INSTALL} -F ${LIBEXEC} -u root -m 755 \ 98 -idb ${PRODUCT}.sw.server -O hfaxd 99 ${INSTALL} -F ${LIBDATA} -m 644 -idb ${PRODUCT}.sw.server \ 100 -idb "config(noupdate)" -src ${SRCDIR}/hfaxd.conf -O hfaxd.conf.sample 101