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

⟦51952b535⟧ TextFile

    Length: 2304 (0x900)
    Types: TextFile
    Names: »Makefile«

Derivation

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

TextFile

#
# makefile for intermachine search
#
# if you don't have AF_INET sockets available on your machine
# (i.e. no network stuff) then take out the flag -DINET
#
# run "make install" as ${ROOT}
#
OWNER=	dealer
ROOT=	root
#ROOT=	${OWNER}
GROUP=	daemon
ETCDIR= /etc
OBJDIR= /usr/games
LIBDIR=	/usr/games/lib/search

OPTIONS=-DINET -DLIBDIR=\"${LIBDIR}
CFLAGS=	-O ${OPTIONS}

HEADS=	defines.h structs.h
CFILES=	aliens.c bursts.c cmds1.c cmds2.c groups.c init.c\
	io.c lists.c main.c planet.c playmap.c scab.c tgoto.c\
	util.c score.c signal.c ipc.c
OBJECTS=aliens.o bursts.o cmds1.o cmds2.o groups.o init.o\
	io.o lists.o main.o planet.o playmap.o scab.o tgoto.o\
	util.o score.o signal.o ipc.o

all:	search searchwho sscore searchd

search:	search.c ${HEADS}
	cc ${CFLAGS} search.c -ltermcap -o search

searchwho: searchwho.c ${HEADS}
	cc ${CFLAGS} searchwho.c -o searchwho

sscore:	sscore.c ${HEADS}
	cc ${CFLAGS} sscore.c -o sscore

searchd:	${OBJECTS}
	cc ${CFLAGS} ${OBJECTS} -o searchd

${OBJECTS}: ${HEADS}

install: searchd search sscore searchwho
	install -s -o ${ROOT} -g ${GROUP} -m 6751 searchd /etc/searchd
	install -s -o ${OWNER} -g ${GROUP} -m 751 sscore ${OBJDIR}/sscore
	install -s -o ${OWNER} -g ${GROUP} -m 751 search ${OBJDIR}/search
	install -s -o ${OWNER} -g ${GROUP} -m 751 searchwho ${OBJDIR}/searchwho
	-mkdir ${LIBDIR}
	chmod 775 ${LIBDIR}
	touch ${LIBDIR}/points
	touch ${LIBDIR}/errlog
	chown ${OWNER} ${LIBDIR} ${LIBDIR}/points ${LIBDIR}/errlog
	chgrp ${GROUP} ${LIBDIR} ${LIBDIR}/points ${LIBDIR}/errlog
	chmod 664 ${LIBDIR}/points ${LIBDIR}/errlog

lint:
	lint -hxa ${OPTIONS} aliens.c bursts.c cmds1.c cmds2.c \
	groups.c init.c io.c lists.c main.c planet.c playmap.c \
	scab.c tgoto.c util.c score.c signal.c ipc.c
	

profile:
	cc -pg -o searchd.pro ${OBJECTS}

clean:
	rm -f *.o searchd sscore search searchwho core a.out ERRS errs

tags:	${CFILES}
	ctags ${CFILES}

distrib:	${CFILES} ${HEADS} Rules.ms README Makefile search.6
	shar	search.c sscore.c searchwho.c README	>search1.shar
	shar	Rules.ms Makefile search.6		>search2.shar
	shar	main.c ipc.c				>search3.shar
	shar	defines.h structs.h cmds1.c cmds2.c	>search4.shar
	shar	init.c util.c io.c tgoto.c score.c	>search5.shar
	shar	playmap.c scab.c signal.c groups.c planet.c \
		aliens.c bursts.c lists.c		>search6.shar