head     1.3;
branch   ;
access   ;
symbols  ;
locks    bin:1.3;
comment  @@;


1.3
date     91.09.11.07.41.39;  author bin;  state Exp;
branches ;
next     1.2;

1.2
date     91.09.11.07.40.58;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     91.02.08.15.33.47;  author bin;  state Exp;
branches ;
next     ;


desc
@ initial version provided by steve ness
@


1.3
log
@provided by stevesf for building post 320 troff/nroff
@
text
@# /usr/src/cmd/nroff/Makefile 6/7/91
# Makefile for nroff and troff

# Targets.
ALL=\
	nroff\
	troff\
	fwtable

# Objects included in both nroff and troff images.
OBJ=\
	div.o\
	env.o\
	expr.o\
	extern.o\
	getf.o\
	hyphen.o\
	hyptab.o\
	main.o\
	misc.o\
	process.o\
	reg.o\
	req1.o\
	req2.o\
	request.o\
	table.o

# Objects in nroff only.
NOBJ=	tty.o

# Objects in troff only.
TOBJ=\
	fonts.o\
	output.o

# Too many header files.
HDR=\
	code.h\
	codebug.h\
	div.h\
	env.h\
	escapes.h\
	fonts.h\
	hyphen.h\
	reg.h\
	request.h\
	roff.h\
	str.h

# fwtable objects.
FWTOBJ=\
	fwtable.o\
	fwt_PS.o\
	fwt_TFM.o

# Primary target.
all:	$(ALL)
	: Done.

# Secondary targets.
troff:	$(OBJ) $(TOBJ)
	$(CC) $(LDFLAGS) -o $@@ $(OBJ) $(TOBJ)

nroff:	$(OBJ) $(NOBJ)
	$(CC) $(LDFLAGS) -o $@@ $(OBJ) $(NOBJ)

fwtable:	$(FWTOBJ)
	cc -o $@@ $(FWTOBJ) -f

strip:	$(ALL)
	strip $(ALL)

clean:
	rm -f $(OBJ) $(TOBJ) $(NOBJ) $(FWTOBJ)

# Unlinked objects.
div.o:		$(HDR) div.c
env.o:		$(HDR) env.c
expr.o:		$(HDR) expr.c
extern.o:	$(HDR) extern.c
fonts.o:	$(HDR) fonts.c
getf.o:		$(HDR) getf.c
hyphen.o:	$(HDR) hyphen.c
hyptab.o:	$(HDR) hyptab.c
main.o:		$(HDR) main.c
misc.o:		$(HDR) misc.c
output.o:	$(HDR) output.c
process.o:	$(HDR) process.c
reg.o:		$(HDR) reg.c
req1.o:		$(HDR) req1.c
req2.o:		$(HDR) req2.c
request.o:	$(HDR) request.c
table.o:	$(HDR) table.c
tty.o:		$(HDR) tty.c

fwtable.o:	fwtable.c fwtable.h
fwt_PS.o:	fwt_PS.c fwtable.h
fwt_TFM.o:	fwt_TFM.c fwtable.h

# end of /usr/src/cmd/nroff/Makefile
@


1.2
log
@bob h modified for use on romana
,
@
text
@d1 1
a1 1
# /usr/src/cmd/nroff/Makefile 3/29/91
a4 3

DESTDIR=/interim/bin/

d53 2
a54 1
	fwtableps.o
d62 1
a62 2
	$(CC) $(LDFLAGS) -o $(DESTDIR)troff $(OBJ) $(TOBJ)
	su root chmog 511 bin bin $(DESTDIR)troff
d65 1
a65 2
	$(CC) $(LDFLAGS) -o $(DESTDIR)nroff $(OBJ) $(NOBJ)
	su root chmog 511 bin bin $(DESTDIR)nroff
d68 1
a68 2
	cc -o $(DESTDIR)fwtable $(FWTOBJ) -f
	su root chmog 511 bin bin $(DESTDIR)fwtable
d74 1
a74 1
	rm -f $(OBJ) $(TOBJ) $(NOBJ) fwtable.o fwtableps.o
d96 3
a98 2
fwtable.o:	fwtable.c
fwtableps.o:	fwtableps.c
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
SRC	= .
CFLAGS	=-O -I$(SRC)
d4 1
a4 3
OFILES	= asctab.o div.o env.o expr.o extern.o getf.o hyphen.o hyptab.o\
	main.o misc.o process.o reg.o req1.o req2.o reqmisc.o request.o\
	table.o codebug.o req3.o
d6 1
a6 1
TFILES	= tty.o
d8 4
a11 1
LDFLAGS	= -i
d13 17
a29 1
PFILES	= hpljet.o
d31 2
a32 1
HFILES	= hhpljet.o
d34 4
a37 3
TSRCS	= asctab.c div.c env.c expr.c extern.c getf.c hyphen.c hyptab.c\
	main.c misc.c process.c reg.c req1.c req2.c reqmisc.c request.c\
	table.c hpljet.c codebug.c req3.c
d39 13
a51 3
NSRCS	= asctab.c div.c env.c expr.c extern.c getf.c hyphen.c hyptab.c\
	main.c misc.c process.c reg.c req1.c req2.c reqmisc.c request.c\
	table.c tty.c codebug.c req3.c
d53 4
a56 2
troff:	$(OFILES) $(PFILES)
	exec $(CC) $(LDFLAGS) -o troff $(OFILES) $(PFILES)
d58 3
a60 2
hroff:	$(OFILES) $(HFILES)
	exec $(CC) $(LDFLAGS) -o hroff $(OFILES) $(HFILES)
d62 4
a65 2
nroff:	$(OFILES) $(TFILES)
	exec $(CC) $(LDFLAGS) -o nroff $(OFILES) $(TFILES)
d67 3
a69 2
hpljet.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/char.h $(SRC)/env.h \
	$(SRC)/font.h $(SRC)/hpljet.c
d71 3
a73 3
hhpljet.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/char.h $(SRC)/env.h \
	$(SRC)/font.h $(SRC)/hpljet.c
	exec $(CC) -DOLDHP=1 $(CFLAGS) -c -o hhpljet.o $(SRC)/hpljet.c
d75 2
a76 1
asctab.o: $(SRC)/roff.h $(SRC)/char.h $(SRC)/asctab.c
d78 2
a79 3
div.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/div.h $(SRC)/reg.h $(SRC)/str.h \
	$(SRC)/div.c
env.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h $(SRC)/esc.h $(SRC)/env.c
d81 19
a99 1
expr.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/div.h $(SRC)/env.h $(SRC)/expr.c
d101 2
a102 2
extern.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h \
	$(SRC)/div.h $(SRC)/reg.h $(SRC)/str.h $(SRC)/extern.c
d104 1
a104 34
getf.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h \
	$(SRC)/esc.h $(SRC)/div.h $(SRC)/reg.h $(SRC)/str.h $(SRC)/getf.c

hyphen.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/hyphen.h \
	$(SRC)/char.h $(SRC)/roff.h $(SRC)/hyphen.c

main.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h $(SRC)/esc.h \
	$(SRC)/div.h $(SRC)/reg.h $(SRC)/str.h $(SRC)/main.c

misc.o: $(SRC)/roff.h $(SRC)/str.h $(SRC)/misc.c

process.o: $(SRC)/roff.h $(SRC)/char.h $(SRC)/code.h $(SRC)/div.h \
	$(SRC)/env.h $(SRC)/esc.h $(SRC)/hyphen.h $(SRC)/reg.h $(SRC)/process.c

reg.o: $(SRC)/roff.h $(SRC)/reg.h $(SRC)/reg.c

req1.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/div.h $(SRC)/env.h $(SRC)/esc.h \
	$(SRC)/reg.h $(SRC)/str.h $(SRC)/req1.c

req2.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h $(SRC)/div.h $(SRC)/reg.h \
	$(SRC)/str.h $(SRC)/esc.h $(SRC)/req2.c

reqmisc.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/env.h $(SRC)/div.h $(SRC)/reg.h \
	$(SRC)/str.h $(SRC)/reqmisc.c

request.o: $(SRC)/roff.h $(SRC)/reg.h $(SRC)/str.h $(SRC)/request.c

table.o: $(SRC)/roff.h $(SRC)/esc.h $(SRC)/table.c

tty.o: $(SRC)/roff.h $(SRC)/code.h $(SRC)/char.h $(SRC)/env.h $(SRC)/tty.c

codebug.o: $(SRC)/codebug.h $(SRC)/codebug.c

req3.o: $(SRC)/code.h $(SRC)/char.h $(SRC)/roff.h $(SRC)/env.h $(SRC)/req3.c
@
