home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-04-04 | 816 b | 54 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
-
- upsd: $(OFILES)
- $(CC) $(CFLAGS) $(OFILES) -o $@ $(LIBES)
- @strip $@
- @mcs -d $@
-
- install:
- cp upsd $(DESTDIR)/upsd
- chown root $(DESTDIR)/upsd
- chgrp sys $(DESTDIR)/upsd
- chmod 550 $(DESTDIR)/upsd
-
- install_rc: install
- cp S22ups $(DESTDIR)/S22ups
- chown root $(DESTDIR)/S22ups
- chgrp sys $(DESTDIR)/S22ups
- chmod 744 $(DESTDIR)/S22ups
-
- 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
-
- # dependencies
- main.o: main.c $(HFILES)
- funcs.o: funcs.c $(HFILES)
-