home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
rcs4.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-04-06
|
7KB
|
212 lines
-bo
******************************************************************************
**
** RCS -- MakeFile
**
SDIR = /H1/PROJECT/RCS # Directory where source files can be found
ODIR = /DD/CMDS/RCS # Directory where output files are to be kept
LIB = /DD/LIB # Directory where library files can be found
DDIR = /DD/DEFS # Directory where .h files can be found
RDIR = /H2/RELS/RCS # Directory where .r files are to be kept
TDIR = /R0 # Directory where temp files are to be kept
CC = gcc # Use GCC
CDEBUG = -w -fomit-frame-pointer # Debug flags
"CDEBUG = -DDEBUG -g -W # Debug flags
CINCL = -I/dd/defs/os9lib # Extra header file dir
COPTS = # Compiler options
COPTMZ1 = -o68 -O -fstrength-reduce -fforce-mem # Compiler optimization
COPTMZ2 = -fcombine-regs -fdefer-pop # Compiler optimization
COPTMZ = $(COPTMZ1) $(COPTMZ2) # Compiler optimization
#COPTMZ = # Compiler optimization
CFLAGS = $(CDEBUG) $(COPTS) $(COPTMZ) $(CINCL) # All flags together
ASM = r68 # Assembler program
AFLAGS = -q # Assembler flags
LMODULE = -e=1 -p=0555 # Module settings
LOPTS = -S -a # Link options
LLIBS = -L$(LIB)/GCC -L$(LIB)/USR # More lib dirs
LFLAGS = $(LMODULE) $(LOPTS)
P2C = p2c # Pascal proprocessor
STDLIBS = -l=$(LIB)/GCC/gnulib.l -l=$(LIB)/clibn.l -l=$(LIB)/math.l -l=$(LIB)/usr.l
CPPLIBS = -l=$(LIB)/GCC/libgpp.l -l=$(LIB)/GCC/gpp.l # C++ libraries
CIO = -l=$(LIB)/cio.l # Use CIO
CGFX = -l=$(LIB)/USR/cgfx.l # Graphic routines
PLIB = -l=$(LIB)/P2C/libp2c.l # Pascal (p2c)
RAND = -l=$(LIB)/USR/rand.l # Random numbers
CURSES = -l=$(LIB)/USR/effocurses.l # Curses
TERMCAP = -l=$(LIB)/termlib.l # Termcap
BLARSLIB= -l=$(LIB)/USR/blarslib.l # B.Larson Unix stuff
OS9LIB = -l=$(LIB)/USR/os9lib.l # OS9 Unix stuff
OFLAGS = $(CPPLIBS) # "Collect" (GPP) flags
*----------------------------------------------------------------------------*
LOCKING = 1
DIFF = diff
MERGE = merge
RCSDIR = /dd/cmds/rcs
DEFINES = -DSTRICT_LOCKING=$(LOCKING) -DDIFF="$(DIFF)" -DMERGE="$(MERGE)" -DTARGETDIR="$(RCSDIR)"
SOURCES = ci.c co.c ident.c maketime.c partime.c rcs.c rcsdiff.c rcsedit.c\
rcsfcmp.c rcsfnms.c rcsgen.c rcskeep.c rcskeys.c rcslex.c rcsmerge.c\
rcsrev.c rcssyn.c rcsutil.c rlog.c snoop.c\
rcsbase.h time.h merge.sh
BOBJECTS = 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\
rcssynTST.r rcsrevTST.r rcsfnmsTST.r rcsfcmpTST.r rcskeepTST.r
BCOMMANDS = ci rcsident rcs rcsdiff rcsmerge rlog co
RCSCOMMANDS = $(BCOMMANDS)
all: $(RCSCOMMANDS)
chd $(ODIR);\
attr -a -pe -pr $(RCSCOMMANDS)
@echo 'RCS is completely up to date.'
CIFILES = ci.r rcslex.r rcssyn.r rcsgen.r rcsedit.r rcskeys.r rcsrev.r \
rcsutil.r rcsfnms.r partime.r maketime.r rcskeep.r rcsfcmp.r
CISRC = ci.c rcslex.c rcssyn.c rcsgen.c rcsedit.c rcskeys.c rcsrev.c \
rcsutil.c rcsfnms.c partime.c maketime.c rcskeep.c rcsfcmp.c
ci: $(CIFILES)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(CIFILES) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
COFILES = co.r rcslex.r rcssyn.r rcsgen.r rcsedit.r rcskeys.r rcsrev.r \
rcsutil.r rcsfnms.r partime.r maketime.r
COSRC = co.c rcslex.c rcssyn.c rcsgen.c rcsedit.c rcskeys.c rcsrev.c \
rcsutil.c rcsfnms.c partime.c maketime.c
co: $(COFILES)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(COFILES) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@ -a
rcsident: ident.r rcskeys.r
chd $(RDIR); \
l68 $(LIB)/cstart.r ident.r rcskeys.r $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
RLOG = rlog.r rcslex.r rcssyn.r rcsrev.r rcsutil.r partime.r maketime.r rcsfnms.r
RLOGSRC = rlog.c rcslex.c rcssyn.c rcsrev.c rcsutil.c partime.c maketime.c rcsfnms.c
rlog: $(RLOG)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(RLOG) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
RCS = rcs.r rcslex.r rcssyn.r rcsrev.r rcsutil.r rcsgen.r rcsedit.r rcskeys.r rcsfnms.r
RCSSRC = rcs.c rcslex.c rcssyn.c rcsrev.c rcsutil.c rcsgen.c rcsedit.c rcskeys.c rcsfnms.c
rcs: $(RCS)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(RCS) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
RCSDIFF = rcsdiff.r rcsutil.r rcsfnms.r rcsrev.r rcssyn.r rcslex.r
RCSDIFFSRC = rcsdiff.c rcsutil.c rcsfnms.c rcsrev.c rcssyn.c rcslex.c
rcsdiff: $(RCSDIFF)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(RCSDIFF) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
RCSMERGE = rcsmerge.r rcsutil.r rcsfnms.r rcsrev.r rcssyn.r rcslex.r
RCSMERGESRC = rcsmerge.c rcsutil.c rcsfnms.c rcsrev.c rcssyn.c rcslex.c
rcsmerge: $(RCSMERGE)
chd $(RDIR); \
l68 $(LIB)/cstart.r $(RCSMERGE) $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
snoop: snoop.r
chd $(RDIR); \
l68 $(LIB)/cstart.r snoop.r $(CIO) $(OS9LIB) $(STDLIBS) \
$(LFLAGS) -o=$(ODIR)/$@
SOURCE= ci.c co.c curdir.c ident.c maketime.c partime.c rcs.c \
rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
rcskeep.c rcskeys.c rcslex.c rcsmerge.c rcsrev.c rcssyn.c rcsutil.c \
rlog.c snoop.c
HFILES= rcsbase.h time.h
cleantdir: always
@dir $(TDIR) >-$(TDIR)/mydir
del $(TDIR)/*
*----------------------------------------------------------------------------*
.c.r:
$(CC) $*.c -c -o $(RDIR)/$*.r $(CFLAGS) $(DEFINES)
.c.a:
$(CC) $*.c -c -o $(TDIR)/$*.a $(CFLAGS) $(DEFINES) -S
.a.r:
r68 $*.a -o=$(RDIR)/$*.r
.p.r:
$(P2C) $*.p -v -o $(TDIR)/$*.c #16k
$(CC) $(TDIR)/$*.c -c -o $(RDIR)/$*.r $(CFLAGS)
$(BOBJECTS): rcsbase.h
partime.r maketime.r co.r ci.r rcs.r rlog.r rcsutil.r: time.h
ci.r: ci.c
ci.r: ./rcsbase.h
ci.r: ./time.h
co.r: co.c
co.r: ./rcsbase.h
co.r: ./time.h
curdir.r: curdir.c
curdir.r: ./rcsbase.h
ident.r: ident.c
ident.r: ./rcsbase.h
maketime.r: maketime.c
maketime.r: ./time.h
partime.r: partime.c
partime.r: ./time.h
rcs.r: rcs.c
rcs.r: ./rcsbase.h
rcsclean.r: rcsclean.c
rcsclean.r: ./rcsbase.h
rcsdiff.r: rcsdiff.c
rcsdiff.r: ./rcsbase.h
rcsedit.r: rcsedit.c
rcsedit.r: ./rcsbase.h
rcsfcmp.r: rcsfcmp.c
rcsfcmp.r: ./rcsbase.h
rcsfnms.r: rcsfnms.c
rcsfnms.r: ./rcsbase.h
rcsgen.r: rcsgen.c
rcsgen.r: ./rcsbase.h
rcskeep.r: rcskeep.c
rcskeep.r: ./rcsbase.h
rcskeys.r: rcskeys.c
rcskeys.r: ./rcsbase.h
rcslex.r: rcslex.c
rcslex.r: ./rcsbase.h
rcsmerge.r: rcsmerge.c
rcsmerge.r: ./rcsbase.h
rcsrev.r: rcsrev.c
rcsrev.r: ./rcsbase.h
rcssyn.r: rcssyn.c
rcssyn.r: ./rcsbase.h
rcsutil.r: rcsutil.c
rcsutil.r: ./rcsbase.h
rlog.r: rlog.c
rlog.r: ./time.h
rlog.r: ./rcsbase.h
snoop.r: snoop.c
snoop.r: ./rcsbase.h