home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume17
/
contest-prog
/
part02
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-02-06
|
3KB
|
102 lines
CC=cc
CFLAGS= -s -O
.IGNORE:
#a public directory such as /usr/local
LOCAL=/usr/contest
#the judges directory
JUDGES=/usr2/judges
#the judges group
GROUP=453
#where the scoreboard is
#this really should be a dependecy on a .h file for just score.c
#but it's really easier just now to :
SCOREBOARD=\"$(JUDGES)/scoreboard\"
#parallel make flag for sequent only:
#P=&
#(only, I guess, sequent people appreciate the & flag)
#maybe others have a similar thingie ... but I cannot know.
#below here shouldn't need modifying (?)
TBEG=prob1.txt prob2.txt prob3.txt prob4.txt prob5.txt prob6.txt
#TINT=prob7.txt prob8.txt prob9.txt prob10.txt prob11.txt prob12.txt
TADV=prob13.txt prob14.txt prob15.txt prob16.txt prob17.txt prob18.txt
TSRC= $(TBEG) $(TINT) $(TADV)
CBEG=prob1.c prob2.c prob3.c prob4.c prob5.c prob6.c
#CINT=prob7.c prob8.c prob9.c prob10.c prob11.c prob12.c
CADV=prob13.c prob14.c prob15.c prob16.c prob17.c prob18.c
CSRC= $(CBEG) $(CINT) $(CADV)
ABEG=prob1.ans prob2.ans prob3.ans prob4.ans prob5.ans prob6.ans
#AINT=prob7.ans prob8.ans prob9.ans prob10.ans prob11.ans prob12.ans
AADV=prob13.ans prob14.ans prob15.ans prob16.ans prob17.ans prob18.ans
ANS= $(ABEG) $(AINT) $(AADV)
IBEG=prob1.in prob2.in prob3.in prob4.in prob5.in prob6.in
#IINT=prob7.in prob8.in prob9.in prob10.in prob11.in prob12.in
IADV=prob13.in prob14.in prob15.in prob16.in prob17.in prob18.in
IN=$(IBEG) $(IINT) $(IADV)
ALLC=$(CSRC) compare.c score.c seconds.c chexec8.c syserr.c digits.c \
shorten.c sb.c
OTHER=n passwd start f sf README Makefile gr testem judge visc \
shutofflogins scoreascorrect scoreasincorre scoreboard
all: $(P) chexec8 seconds compare score judge gr shorten digits \
testem
chmod +x gr judge testem
testem
install:
mkdir keep
mkdir subdir
mkdir $(LOCAL)
chmod 777 $(LOCAL)
cp seconds $(LOCAL)
chmod +rx $(LOCAL)/seconds
sed s/GROUP/$(GROUP)/ judge > $(LOCAL)/judge
chmod +rx $(LOCAL)/judge
cp score $(LOCAL)
chmod 755 $(LOCAL)/score
chmod u+s $(LOCAL)/score
shar: $(TSRC) $(ALLC) $(ANS) $(IN) $(OTHER)
makekit -m -s30k rules contestrules \
$(TSRC) $(ALLC) $(ANS) $(IN) $(OTHER)
passwd: shutofflogins
shutofflogins
chexec8: $(P) chexec8.o syserr.o
cc -o chexec8 chexec8.o syserr.o
seconds: seconds.o
cc -o seconds seconds.o
shorten: shorten.o
cc -o shorten shorten.o
compare: compare.o
cc -o compare compare.o
digits: digits.o
cc -o digits digits.o
score: score.o Makefile
cc -o score -s score.o
score.o: score.c Makefile
cc -c -DSCOREBOARD=$(SCOREBOARD) score.c
scoretime:
cp /dev/null scoretime
send:
uuto Part* 3b2b\!judges
clean:
rm *.e *.o Part* chexec8 seconds compare score digits shorten