######################################################
#-
# Copyright (c) 1999-2000 James E. Housley <jim@thehousleys.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id$
#
######################################################
#
# Source for healthd Makefile
#
# Just in case
prefix?=/usr/local
INSTALL?=/usr/bin/install -c -o root -g wheel
INSTALL_PROGRAM?=install -s -o root -g wheel -m 555
INSTALL_DATA?=install -o root -g wheel -m 444
DEFS=-DHAVE_CONFIG_H -DCONFIG_FILE="\"/etc/healthd.conf\""
INCLUDES=
CC?=gcc
CPPFLAGS+=-I. -DINET6
CFLAGS+= -Wall $(INCLUDES) $(DEFS) $(CPPFLAGS)
LDFLAGS=-s
LIBS=
LIBOBJS=
RM=rm -f
.c.o:
$(CC) -c $(CFLAGS) $<
PROGRAM = healthd
all: $(PROGRAM) $(PROGRAM)c
healthd: healthd.c getMBinfo.o getMB-isa.o getMB-smb.o parameters.h methods.h healthd.h VERSION.h optionTable.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ healthd.c getMBinfo.o getMB-isa.o getMB-smb.o $(LIBS)
healthdc: healthdc.c VERSION.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ healthdc.c $(LIBS)
buildOT: buildOT.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ buildOT.c
optionTable.h: buildOT
./buildOT > optionTable.h
getaddrinfo.o: missing/getaddrinfo.c
getnameinfo.o: missing/getnameinfo.c
clean:
$(RM) *.o *.BAK *.CKP a.out *.core errs *~ $(PROGRAM) $(PROGRAM)c buildOT
real-clean: clean
$(RM) config.log config.status config.h config.cache \
Makefile optionTable.h
install-all: install install-doc
install: $(PROGRAM) $(PROGRAM)c
$(INSTALL_PROGRAM) -m 0755 -p healthd /sbin
$(INSTALL_PROGRAM) -m 0755 -p healthdc /bin
$(INSTALL_DATA) -m 644 -p healthd.conf.sample /etc
install-doc:
$(INSTALL) -c -m 444 healthd.8 /man/man8
$(INSTALL) -c -m 444 healthdc.8 /man/man8
syntax highlighted by Code2HTML, v. 0.9.1