|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 2375 (0x947)
Types: TextFile
Names: »Makefile«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦653021b30⟧ »EurOpenD3/utils/downtime.tar.Z«
└─⟦946c717da⟧
└─⟦this⟧ »Makefile«
#
# $Header: Makefile,v 4.2 88/07/05 18:56:07 mcooper Exp $
#
# Makefile for DownTime
#
CC = cc
#
# DIR is the place under which the executable and help file are installed.
# If you change it, make sure you do a "make reconfig".
#
DIR = /usr/public
#
# BIN is where the executable should go.
#
BIN = $(DIR)/etc
#
# MAN is where the man page should go.
#
MAN = $(DIR)/man/man8
#
# INCLUDES is any include directories needed. This may need to be
# set to where you have your Ccmd header files installed, if they are
# not in the standard place your C Pre Processor looks.
#
INCLUDES = -I$(DIR)/include
#
# CCMD should be the name of the Ccmd library.
#
CCMD = -lccmd
#
# GEN should be the name of the library with some generic functions
# that came with this distribution of Downtime.
#
GEN = libgen/libgen.a
#
# RPCLIB should be the name of the rpc services library (rpcsvc).
# You need this if you are using RPCWALL (see config.h).
#
RPCLIB = #-lrpcsvc
TERMCAP = -ltermcap
LIBS = -L$(DIR)/lib $(GEN) $(CCMD) $(TERMCAP) $(RPCLIB)
DEFS =
CFLAGS = -O $(INCLUDES) $(DEFS)
#
# If RPCWALL is defined, then you should have rpc.c (see config.h).
# Add rpc.o to OBJS below if this is true.
#
OBJS = add.o bringdown.o c_add.o c_delete.o c_help.o c_set.o ccmd.o cf.o\
checktime.o date.o delete.o getdtent.o list.o log.o main.o\
misc.o motd.o warnusers.o
HDRS = config.h defs.h dttime.h flags.h getdtent.h parse.h
CONFIGFILES = Mkfile.cpp Makefile downtime.8 defs.h
downtime: $(OBJS) $(GEN) vers.o
$(CC) $(CFLAGS) -o downtime vers.o $(OBJS) $(LIBS)
rm -f vers.o
vers.o: mkversion version
mkversion
$(CC) -c vers.c
touch vers.c
version:
touch version
mkversion: mkversion.c defs.h
$(CC) mkversion.c -o mkversion
touch version
tags: $(SRCS)
ctags $(SRCS) *.h
lint: $(SRCS)
lint $(SRCS) > lint.out
clean:
rm -f *.o core a.out *.man log *~ o \#* mkversion downtime
rm -f nologin shutdownlog downtime.log fastboot lint.out
(cd libgen; make $@)
$(OBJS): $(HDRS)
$(GEN):
(cd libgen; make $(MFLAGS))
reconfig:
for i in ${CONFIGFILES}; do \
echo ReConfiguring $$i...;\
sed "s;/usr/public;${DIR};g" < $$i > $$i.tmp;\
mv -f $$i.tmp $$i;\
done
install: downtime downtime.8 downtime.hf
install -c -m 4751 -o root downtime $(BIN)
install -c -m 644 downtime.hf $(BIN)
install -c -m 644 downtime.8 $(MAN)