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

⟦efc2872fe⟧ TextFile

    Length: 3821 (0xeed)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/rman/daemon/Makefile« 

TextFile

#
#  Makefile for manual server daemon  21 August 1985
#

# Server (daemon) sources.

HDRS   = cmd.h defs.h response.h 

SRCS   = apropos.c cat.c cmd.c config.c find.c format.c getline.c help.c \
	        identify.c main.c misc.c parse.c ping.c raw.c sections.c \
	        show.c showpath.c so.c stat.c type.c ver.c whatis.c 

OBJS   = apropos.o cat.o cmd.o config.c find.o format.o getline.o help.o \
	        identify.o main.o misc.o parse.o ping.o raw.o sections.o \
	        show.o showpath.o so.o stat.o type.o version.o whatis.o 

DEST   = mand
MAN    = mand.8
LPR    = lpr

# a few notes:
# define SERVICES if you have "man" in /etc/services
# use MODE = 2711 if the man directories are unwritable, else use MODE = 755
# set OWNER to the user who owns the man pages, usually root, sometimes "man"
# KMEM needs to be the name of the group which can read /dev/kmem (for load avg)

CFLAGS = -DSERVICES -O
LFLAGS = -hbxa
MODE   = 711
OWNER  = root
KMEM   = kmem

# The help files should be in this directory.

LIB      = /usr/lib
HELPFILE = ${LIB}/${DEST}.hf
HOSTFILE = ${LIB}/${DEST}.hosts
CONFIG   = ${LIB}/${DEST}.cf


.DEFAULT:
	co $<

${DEST}: ${OBJS}
	/bin/rm -f ${DEST}
	cc ${CFLAGS} -o ${DEST} ${OBJS}

install: ${DEST} man
	install -c -m ${MODE} -o ${OWNER} -g ${KMEM} mand /etc/mand
	install -c -m 644  -o ${OWNER} mand.cf ${CONFIG}
	install -c -m 644  -o ${OWNER} mand.hf ${HELPFILE}
	install -c -m 644  mand.8 /usr/man/man8
	@echo Don't forget to put "man" in /etc/services

new: paths ${DEST}      # need to recompile the ones with paths in them ...

paths:
	-rm -f main.o help.o identify.o

main.o: main.c
	cc ${CFLAGS} -c -DCONFIG=\"${CONFIG}\" main.c

help.o: help.c
	cc ${CFLAGS} -c -DHELPFILE=\"${HELPFILE}\" help.c

identify.o: identify.c
	cc ${CFLAGS} -c -DHOSTFILE=\"${HOSTFILE}\" identify.c

# Updates whenever any sources change
version.o: $(SRCS)
	@csh -f newver.csh
	cc ${CFLAGS} -c version.c

lint: ${DSRCS}
	lint ${LFLAGS} -DCONFIG=\"${CONFIG}\" -DHELPFILE=\"${HELPFILE}\"  \
	    -DHOSTFILE=\"${HOSTFILE}\" ${SRCS}  | egrep -v "pointer alignment" \
	    > lint.out
	
shar: ${HDRS} ${SRCS}
	shar -v Makefile ${HDRS} ${SRCS} mand.cf mand.hf ${MAN} > mand.shar

print:
	pr -f ${HDRS} ${SRCS} ${CONFIG} ${HELPFILE} | ${LPR}

tags: ${SRCS} ${DSRCS}
	ctags -w ${SRCS} ${DSRCS}

clean:
	rm -f *.o core

depend: ${SRCS} 
	mv Makefile makefile.old
	sed '/^# Dependencies follow/,$$d' makefile.old > Makefile
	@echo '# Dependencies follow' >> Makefile
	includes -so ${SRCS} >> Makefile
	@echo ' ' >> Makefile
	@echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
	@echo '# see depend: above' >> Makefile

# DO NOT DELETE THE FOLLOWING LINE
# Dependencies follow

ping.o: /usr/include/nlist.h

ping.o: /usr/include/syslog.h

main.o: /usr/include/signal.h

main.o: /usr/include/sys/ttydev.h

main.o: /usr/include/sys/ttychars.h

main.o: /usr/include/sys/ioctl.h

main.o: /usr/include/time.h

main.o: /usr/include/sys/time.h

identify.o: /usr/include/netdb.h

ping.o main.o identify.o: /usr/include/netinet/in.h

ping.o main.o identify.o: /usr/include/sys/socket.h

main.o format.o: /usr/include/sys/wait.h

show.o format.o find.o: /usr/include/sys/file.h

cmd.o: ./cmd.h

main.o cat.o: /usr/include/errno.h

stat.o cat.o: /usr/include/sys/stat.h

stat.o ping.o main.o identify.o cat.o: /usr/include/sys/types.h

type.o stat.o showpath.o show.o sections.o raw.o misc.o identify.o find.o \
config.o cat.o: ./defs.h

whatis.o ver.o type.o stat.o stat.o so.o showpath.o show.o sections.o raw.o \
raw.o misc.o misc.o main.o identify.o identify.o help.o getline.o format.o \
find.o config.o cmd.o cat.o cat.o apropos.o: /usr/include/stdio.h

whatis.o type.o stat.o raw.o misc.o main.o help.o format.o cmd.o cat.o \
apropos.o: ./response.h
 
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see depend: above