DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ M T

⟦f92141cf0⟧ TextFile

    Length: 6105 (0x17d9)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/src/Makefile« 

TextFile

#
# DESTDIR should be where the executable is to be installed
#
DESTDIR = /etc

# For Suns:
#
# If CLIENTS is defined 'make install' will use rcp and rsh to install
# mcp on the client machines.
#
# CLIENTS = io ganymede callisto amalthea europa 

#
# Mcp when installed will only be executable by the super-user
# and members of GROUP.
#
GROUP	= account

#
# Using -O under Sun UNIX 3.0 is not advivsed
#
CFLAGS	= -O

SRCS =	init.c\
	account.c add.c alias.c backup.c bind.c build.c ckp.c class.c\
	complete.c date.c describe.c disable.c edit.c errmsg.c exists.c\
	exit.c exits.c freeze.c gpa.c groupmap.c job.c lastlog.c list.c\
	lists.c load.c main.c mem.c misc.c pause.c pwlock.c range.c\
	remove.c report.c save.c shell.c sig.c signals.c sort.c tty.c\
	update.c version.c yesno.c

OBJS =	init.o\
	account.o add.o alias.o backup.o bind.o build.o ckp.o class.o\
	complete.o date.o describe.o disable.o edit.o errmsg.o exists.o\
	exit.o exits.o freeze.o gpa.o groupmap.o job.o lastlog.o list.o\
	lists.o load.o main.o mem.o misc.o pause.o pwlock.o range.o\
	remove.o report.o save.o shell.o sig.o signals.o sort.o tty.o\
	update.o version.o yesno.o

MYH =	account.h alias.h class.h command.h gpa.h groupmap.h\
	history.h job.h lastlog.h lists.h macros.h mem.h\
	range.h sig.h sort.h sysdep.h

mcp:	$(OBJS) xs.o
	@echo "Loading executable ..."
	@cc $(CFLAGS) -o mcp $(OBJS) xs.o
	@size mcp

install:	mcp
	@echo Installing mcp on `hostname`...
	@install -c -s -g $(GROUP) -m 750 mcp $(DESTDIR)
	@echo 'if test -z "$(CLIENTS)" ; then'		> i_script
	@echo 'exit 0'					>>i_script
	@echo 'fi'					>>i_script
	@echo 'for host in $(CLIENTS)'			>>i_script
	@echo 'do'					>>i_script
	@echo 'echo Installing mcp on $$host...'	>>i_script
	@echo 'rcp /etc/mcp $$host:$(DESTDIR)/mcp'	>>i_script
	@echo 'rsh $$host chmod 750 $(DESTDIR)/mcp'	>>i_script
	@echo 'rsh $$host chgrp $(GROUP) $(DESTDIR)/mcp'>>i_script
	@echo 'done'					>>i_script
	@echo 'exit 0'					>>i_script
	@sh i_script
	@rm i_script

xs.o:	strings
	xstr
	cc $(CFLAGS) -c -R xs.c

version.o:	version.c
	cc $(CFLAGS) -c version.c

.c.o:
	cc $(CFLAGS) -E $< | xstr -c -
	cc $(CFLAGS) -c x.c
	mv x.o $@
lint:
	@echo "lint -a -b -h -x $$(SRCS)"
	@lint -a -b -h -x $(SRCS)

lintbrush:
	@PATH=.:$$PATH nitpick $(SRCS)
	@echo "All source modules successfully linted!"

tags:	$(SRCS) $(MYH)
	@echo Making function and typedef tags file...
	@ctags -t $(SRCS) $(MYH)

clean:
	@echo Removing compilation, lint, and installation flotsam...
	@rm -f $(OBJS) core i_script exdep makedep mcp mon.out gmon.out\
		strings xs.c xs.o x.c LintErrors
	
depend:
	@echo Making header file dependencies...
	@(grep '^#[ 	]*include[ 	]*"' /dev/null $(SRCS) | sed \
		-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
		-e 's/\.c/.o/' | awk \
	'BEGIN\
			{ i = 0 }\
			{ len2 = length($$2) + 1}\
	FILE != $$1\
			{ name[i++] = $$1; FILE = $$1;\
			  line[FILE] = sprintf("\\\n\t%s", $$2);\
			  currlen = len2 + 8; H = $$2}\
	FILE == $$1 && currlen + len2 > 75 && H != $$2\
			{ line[FILE] = sprintf("%s\\\n\t%s",line[FILE], $$2);\
			  currlen = len2 + 8; H = $$2}\
	FILE == $$1 && H != $$2\
			{ line[FILE] = sprintf("%s %s", line[FILE], $$2);\
			  currlen += len2; }\
	END\
			{ for (j = 0; j < i; j++)\
				printf("%s%s\n", name[j], line[name[j]]); }\
			' >> makedep)
	@echo '/^# DO NOT DELETE THIS LINE/+5,$$d' >exdep
	@echo '$$r makedep' >>exdep
	@echo 'w' >>exdep
	@cp Makefile Makefile.b
	@ex - Makefile < exdep
	@rm exdep makedep

# DO NOT DELETE THIS LINE -- if you do, you'll be sorrrrrrry!!!

# LINES BEYOND THIS POINT ARE USED BY 'make depend' .
# IF YOU PUT STUFF HERE, IT WILL GO AWAY.

init.o:\
	sysdep.h macros.h mem.h sort.h lists.h save.h sig.h class.h\
	account.h command.h groupmap.h range.h alias.h
account.o:\
	sysdep.h macros.h mem.h sort.h lists.h account.h
add.o:\
	sysdep.h macros.h mem.h gpa.h lists.h account.h alias.h class.h\
	groupmap.h job.h range.h sig.h sort.h save.h
alias.o:\
	sysdep.h mem.h macros.h lists.h alias.h sort.h
backup.o:\
	sysdep.h mem.h save.h
bind.o:\
	sysdep.h macros.h mem.h gpa.h lists.h account.h alias.h class.h\
	groupmap.h sig.h sort.h save.h
build.o:\
	sysdep.h macros.h mem.h lists.h alias.h account.h groupmap.h\
	sort.h save.h
ckp.o:\
	sysdep.h macros.h mem.h lists.h alias.h account.h class.h sig.h\
	range.h groupmap.h save.h
class.o:\
	sysdep.h mem.h lists.h class.h
complete.o:\
	sysdep.h macros.h mem.h history.h lists.h
date.o:\
	macros.h mem.h
describe.o:\
	sysdep.h macros.h mem.h lists.h job.h account.h alias.h class.h\
	groupmap.h range.h sig.h save.h sort.h
disable.o:\
	sysdep.h mem.h lists.h account.h save.h
edit.o:\
	sysdep.h macros.h mem.h
errmsg.o:\
	mem.h
exists.o:\
	sysdep.h mem.h lists.h sort.h account.h groupmap.h class.h sig.h
exit.o:\
	mem.h lists.h
exits.o:\
	sysdep.h mem.h
freeze.o:\
	sysdep.h macros.h mem.h lists.h account.h groupmap.h save.h sort.h
gpa.o:\
	sysdep.h mem.h gpa.h
groupmap.o:\
	sysdep.h macros.h mem.h lists.h groupmap.h
job.o:\
	sysdep.h mem.h lists.h job.h
lastlog.o:\
	sysdep.h mem.h save.h
list.o:\
	sysdep.h macros.h mem.h lists.h account.h alias.h groupmap.h job.h
lists.o:\
	sysdep.h macros.h mem.h gpa.h lists.h sort.h
load.o:\
	sysdep.h macros.h mem.h gpa.h lists.h account.h groupmap.h save.h\
	sort.h
main.o:\
	sysdep.h macros.h mem.h command.h
mem.o:\
	mem.h
misc.o:\
	sysdep.h macros.h mem.h lists.h range.h sort.h
pwlock.o:\
	sysdep.h
range.o:\
	sysdep.h mem.h lists.h range.h
remove.o:\
	sysdep.h macros.h mem.h lists.h gpa.h sort.h account.h alias.h\
	groupmap.h class.h job.h range.h sig.h save.h
report.o:\
	sysdep.h macros.h mem.h lists.h account.h alias.h class.h\
	groupmap.h range.h sig.h sort.h
save.o:\
	sysdep.h macros.h mem.h lists.h account.h alias.h class.h sig.h\
	range.h groupmap.h save.h
shell.o:\
	sysdep.h macros.h mem.h
sig.o:\
	sysdep.h mem.h lists.h sig.h
signals.o:\
	sysdep.h macros.h
sort.o:\
	sysdep.h mem.h lists.h account.h alias.h class.h command.h sig.h\
	range.h groupmap.h
update.o:\
	sysdep.h macros.h mem.h gpa.h lists.h account.h alias.h class.h\
	groupmap.h job.h range.h sig.h sort.h save.h
yesno.o:\
	sysdep.h mem.h lists.h gpa.h