home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OS9000
/
APPS
/
rcs.lzh
/
rcs1
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-04-20
|
8KB
|
221 lines
#$Header: Makefile_v 1.3 96/04/21 01:26:50 hiro Exp $
# Copyright (C) 1982, 1988, 1989 Walter Tichy
# Distributed under license by the Free Software Foundation, Inc.
#
# This file is part of RCS.
#
# RCS is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# RCS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with RCS; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Report problems and direct all questions to:
#
# rcs-bugs@cs.purdue.edu
#
# INSTRUCTIONS
# ============
# 0. If you are porting to different hardware,
# check the instructions in rcsbase.h
#
# Note: instructions 1-5 are normally taken care of by the calling make,
# which passes in DIFF, DIFF3, RCSDIR, OLDDIR, OS, and LOCKING.
#
# 1. Early version of diff did not support options needed by RCS.
# Newer versions of diff, support them and diff is no longer distributed with
# RCS. The following definitions apply only if you have both old versions
# and new versions of diff, and you want RCS to use the new versions.
# The default should be :
#
DIFF = diff
DIFF3 = diff3
# 2. Figure out where to put the RCS commands; define RCSDIR accordingly.
RCSDIR = .
# 3. Figure out where to put your old RCS commands; define OLDDIR
# accordingly. This is not needed if you don't have an old release of RCS.
OLDDIR = /dd/JUNK
# 4. Set the operating system variable OS. If you run on 4.1 BSD, do not
# define OS:
# OS =
# If you run on USG Unix or UN*X, use:
# OS = -DUSG
# If you run on Version 6 Unix, use:
# OS = -DV6
# If you run on 4.2 or 4.3 BSD, use:
# OS = -DV4_2BSD
#OS = -DOSK -D_OS9000
OS = -DOSK
# Also, set SIGNAL_TYPE to be what your signal() handlers yield.
# Old-fashioned signal handlers yield 'int'; the newer ones 'void'.
SIGNAL_TYPE = int
# 5. Decide whether you want strict locking as the default or not.
# If you want strict locking, use:
# LOCKING = 1
# otherwise:
# LOCKING = 0
LOCKING = 0
# 6. Decide what loader flags you need, and define LDFLAGS accordingly.
# On the Vax you need none, on PDP-11s with split i/d you need -i.
LFLAGS = -w=/dd/LIB -bp -M=24k
LDFLAGS = $(LFLAGS)
# 7. RCS can maintain a log of the use of the co and ci commands. If you
# want the logging, you must
# a) define SNOOP (that's where the process that writes the log goes),
# b) define SNOOPFILE (that's the file where SNOOP writes the log;
# it must be owned by the same user that owns SNOOP),
# c) include SNOOP and SNOOPFILE in the CFLAGS macro.
# If you don't want the logging of command usage, omit the SNOOP and
# SNOOPFILE definitions from CFLAGS.
# The two variants of the CFLAG macros are given below.
SNOOPFILE = /dd/SYS/rcslog
SNOOP = snoop
DEFINES = -DCOMPAT2 $(OS) -DDIFF="diff" -DCO="co" -DMERGE="rcsmerge" \
-DSIGNAL_TYPE=int -DSTRICT_LOCKING=$(LOCKING) -DSNOOP="snoop" \
-DSNOOPFILE="$(SNOOPFILE)" -DGNUDIFF -DOSK
RDIR = RELS
TDIR = /tmp
SPECIAL_FLAGS = -bp
CFLAGS = -v=/dd/DEFS -v=. -v=/dd/DEFS $(DEFINES) -t=$(TDIR) $(SPECIAL_FLAGS)
# 8. If you don't have release 2 RCS files around (e.g., if you don't
# have release 2 of RCS), remove the word -DCOMPAT2 from whatever
# variant of CFLAGS you selected. -DCOMPAT2 assures that release 2
# RCS files can still be read. (After all release 2 RCS files have
# been updated with release 3 or 4 ci or rcs, you can remake RCS without
# -DCOMPAT2.) Also, make sure that the co commands at the end of this
# file are commented out; otherwise, Make will complain.
#
# 9. Now you are ready. Try to make 'depend' and 'all'. If all went well, make
# 'install' if you want no logging of command usage, 'installog' otherwise.
#
# 10. IMPORTANT! When you have RCS installed, rename old
# release 2 RCS files as follows (if you have any):
# If the working file was "f.c" and the RCS file "f.c.v", rename the
# RCS file to "f.c,v". If the working file was "f.c" and the RCS file
# "f.v", rename the RCS file "f.c,v". Thus, suffixes are no longer
# dropped and RCS files end in ",v" rather than ".v".
#
# 11. If you want to maintain RCS with itself, be sure you preserve the
# original revision numbers, dates, etc. This is done by checking the
# files in with the -k option. When done, remove the comments from the
# co-rules at the end of this file.
#
CC = cc
ODIR = BUILD/CMDS
LDIR=/dd/LIB
ALDIR=/dd/LIB
#LIBS = -l=$(LDIR)/sys_clib.l -l=$(LDIR)/clib.l -l=$(LDIR)/os_lib.l
LIBS=
LD = cc
#CHMOD = attr -e -r -pe -pr -ge -gr
CHMOD = attr -e -r -pe -pr
CD = chd
all : $(ODIR)/rcsident $(ODIR)/rcs $(ODIR)/rcsmerge $(ODIR)/snoop \
$(ODIR)/rcsdiff $(ODIR)/co $(ODIR)/ci $(ODIR)/rlog \
$(ODIR)/mani $(ODIR)/srcin $(ODIR)/puttot
Echo "Compiling of RCS is over"
OBJS = ci.r co.r ident.r rcs.r rcsdiff.r rcsedit.r \
rcsfcmp.r rcsfnms.r rcsgen.r rcskeep.r rcskeys.r rcslex.r rcsmerge.r \
rcsrev.r rcssyn.r rcsutil.r rlog.r snoop.r \
osk.r utime.r builddirlist.r stat.r partime.r maketime.r mani.r \
puttot.r srcin.r
$(OBJS): rcsbase.h
$(CC) $*.c $(CFLAGS) -r=$(RDIR)
utime.r: utime.h
stat.r: stat.h
ci.r co.r rcsfnms.r maketime.r partime.r rcs.r rcsutil.r rlog.r : time.h
$(ODIR)/rcsident: ident.r rcskeys.r
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/rcsident $(LDFLAGS) ident.r rcskeys.r $(LIBS); $(CHMOD) ../$@
RCSFILES = rcs.r rcssyn.r rcsrev.r rcsgen.r rcsedit.r rcskeys.r rcsfnms.r builddirlist.r \
rcslex.r rcsutil.r \
osk.r utime.r stat.r
$(ODIR)/rcs: $(RCSFILES)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/rcs $(LDFLAGS) $(RCSFILES) $(LIBS); $(CHMOD) ../$@
# chd $(RDIR); $(LD) -O=../$(ODIR)/rcs $(RCSFILES)
RCSDIFF = rcsdiff.r rcsfnms.r builddirlist.r rcsrev.r rcssyn.r \
rcslex.r rcsutil.r \
osk.r utime.r stat.r
$(ODIR)/rcsdiff: $(RCSDIFF)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/rcsdiff $(LDFLAGS) $(RCSDIFF) $(LIBS); $(CHMOD) ../$@
RCSMERGE = rcsmerge.r rcsfnms.r builddirlist.r rcsrev.r rcssyn.r \
rcslex.r rcsutil.r \
osk.r utime.r stat.r
$(ODIR)/rcsmerge: $(RCSMERGE)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/rcsmerge $(LDFLAGS) $(RCSMERGE) $(LIBS); $(CHMOD) ../$@
$(ODIR)/snoop: snoop.r
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/snoop $(LDFLAGS) $*.r $(LIBS); $(CHMOD) ../$@
COFILES = co.r rcssyn.r rcsgen.r rcsedit.r rcskeys.r rcsrev.r \
rcsfnms.r builddirlist.r partime.r \
maketime.r rcslex.r rcsutil.r\
osk.r utime.r stat.r
$(ODIR)/co : $(COFILES)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/co $(LDFLAGS) $(COFILES) $(LIBS); $(CHMOD) ../$@
CIFILES = ci.r rcskeys.r rcsrev.r partime.r rcskeep.r rcsfcmp.r rcsfnms.r builddirlist.r \
rcssyn.r rcsgen.r rcsedit.r \
maketime.r rcslex.r rcsutil.r \
osk.r utime.r stat.r
$(ODIR)/ci : $(CIFILES)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/ci $(LDFLAGS) $(CIFILES) $(LIBS); $(CHMOD) ../$@
RLOGFILES = rlog.r rcssyn.r rcsrev.r partime.r rcsfnms.r builddirlist.r \
maketime.r rcslex.r rcsutil.r \
osk.r utime.r stat.r
$(ODIR)/rlog: $(RLOGFILES)
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/rlog $(LDFLAGS) $(RLOGFILES) $(LIBS); $(CHMOD) ../$@
$(ODIR)/mani: mani.r
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/mani $(LDFLAGS) $(LIBS) $*.r; $(CHMOD) ../$@
$(ODIR)/srcin: srcin.r
chd $(RDIR); \
$(CC) -g -fd=../$(ODIR)/srcin $(LDFLAGS) $(LIBS) $*.r osk.r; $(CHMOD) ../$@
$(ODIR)/puttot: puttot.r
chd $(RDIR); $(CC) -g -fd=../$(ODIR)/puttot $(LDFLAGS) $(LIBS) $*.r; $(CHMOD) ../$@