home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume18
/
upsd
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-04-10
|
942b
|
58 lines
##
# M a k e f i l e
#
# makefile for UPS monitor daemon
#
# Arthur W. Neilson III
# art@pilikia.pegasus.com
# Sat Mar 30 1991
#
CC = cc
DEFS =
CFLAGS = -O $(DEFS)
CFILES = main.c funcs.c
OFILES = main.o funcs.o
HFILES = common.h
LIBES =
DESTDIR = /etc
INITDIR = /etc/init.d
RC2DIR = /etc/rc2.d
RC2NUM = 22
upsd: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -o $@ $(LIBES)
@strip $@
@mcs -d $@
install: upsd
cp upsd $(DESTDIR)/upsd
chown root $(DESTDIR)/upsd
chgrp sys $(DESTDIR)/upsd
chmod 550 $(DESTDIR)/upsd
install_rc: install
cp ups $(INITDIR)/ups
chown root $(INITDIR)/ups
chgrp sys $(INITDIR)/ups
chmod 744 $(INITDIR)/ups
ln $(INITDIR)/ups $(RC2DIR)/S$(RC2NUM)ups
indent:
@for f in $(CFILES); do \
indent $$f; \
done
kit:
makekit -m
clean:
rm -f upsd core *.o *.BAK Part*
clobber: clean
rm -f $(DESTDIR)/upsd $(INITDIR)/ups $(RC2DIR)/S$(RC2NUM)ups
# dependencies
main.o: main.c $(HFILES)
funcs.o: funcs.c $(HFILES)