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


1.11
date     93.01.22.10.29.15;  author bin;  state Exp;
branches ;
next     1.10;

1.10
date     92.10.28.07.32.35;  author bin;  state Exp;
branches ;
next     1.9;

1.9
date     91.05.08.15.35.02;  author bin;  state Exp;
branches ;
next     1.8;

1.8
date     91.03.14.20.45.21;  author bin;  state Exp;
branches ;
next     1.7;

1.7
date     91.03.14.18.42.29;  author bin;  state Exp;
branches ;
next     1.6;

1.6
date     91.03.12.20.01.11;  author bin;  state Exp;
branches ;
next     1.5;

1.5
date     91.02.09.01.11.21;  author bin;  state Exp;
branches ;
next     1.4;

1.4
date     91.02.01.18.55.43;  author bin;  state Exp;
branches ;
next     1.3;

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

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

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


desc
@steve 10/23/90
Initial MWC RCS revision.
@


1.11
log
@Changes from Steve handed to me on1/21/93
@
text
@# /usr/src/cmd0/sh/Makefile 1/11/93

# Version number for var.c.
VERSION=V3.4.3
# Parsing stack depth for y.tab.c.
YYMAXDEPTH=300

DESTDIR=/bin386/bin/

CFLAGS= -O -I$(SRCPATH)
# Undefine _copyright_ to pull in libc.a/copyright.o.
LDFLAGS= -n -i -u _copyright
# Don't bind shared on the PDP-11.
# LDFLAGS= -i

OBJ=\
	alloc.o\
	atoi.o\
	eval.o\
	exec1.o\
	exec2.o\
	exec3.o\
	extern.o\
	glob.o\
	lex.o\
	main.o\
	tab.o\
	trap.o\
	var.o\
	y.tab.o

SRCS=\
	sh.h\
	sh.y\
	alloc.c\
	atoi.c\
	eval.c\
	exec1.c\
	exec2.c\
	exec3.c\
	extern.c\
	glob.c\
	lex.c \
	main.c\
	tab.c\
	trap.c\
	var.c

# Primary target.
sh: $(OBJ)
	$(CC) $(LDFLAGS) -o $(DESTDIR)sh $(OBJ)
	chmog 511 bin bin $(DESTDIR)sh

psh: $(OBJ)
	$(CC) -n -o psh -O -DPARANOID $(OBJ)

# Secondary targets.
alloc.o:	sh.h alloc.c
atoi.o:		atoi.c
eval.o:		sh.h eval.c
exec1.o:	sh.h exec1.c
exec2.o:	sh.h exec2.c
exec3.o:	sh.h exec3.c
extern.o:	sh.h extern.c
glob.o:		sh.h glob.c
lex.o:		sh.h lex.c y.tab.o
main.o:		sh.h main.c
tab.o:		sh.h tab.c
trap.o:		sh.h trap.c
var.o:		var.c sh.h
	$(CC) -c $(CFLAGS) -DVERSION=\"$(VERSION)\" $<
y.tab.c:	sh.y
	yacc $<
y.tab.o:	y.tab.c sh.h
	$(CC) -c $(CFLAGS) -DYYMAXDEPTH=$(YYMAXDEPTH) $<

# Etc.
clean:
	rm $(OBJ)

# end of /usr/src/cmd0/sh/Makefile
@


1.10
log
@update by steve for sh ver 3.4.0
@
text
@d1 1
a1 1
# /usr/src/cmd0/sh/Makefile 10/2/92
d4 1
a4 1
VERSION=3.4.0
d71 1
a71 1
	$(CC) -c $(CFLAGS) -DVERSION='"VERSION=V$(VERSION)"' $<
@


1.9
log
@moves objects to own directory when done
@
text
@d1 1
a1 4
# /usr/src/cmd0/sh/Makefile 2/19/91
DESTDIR=/interim/bin/
# Version number compiled into var.o.
VERSION=3.1.1
d3 8
a10 3
# For i8086 compile with -VSINU.
# Define VERSION for var.c.
CFLAGS= -O -VSINU -DVERSION='"VERSION=V$(VERSION)"'
d12 1
a12 1
LDFLAGS= -n -i -u _copyright_
d51 2
a52 5
	cc $(LDFLAGS) -o $(DESTDIR)sh $(OBJ)
	su root chown bin $(DESTDIR)$@@
	su root chgrp bin $(DESTDIR)$@@
	su root chmod 511 $(DESTDIR)$@@
	mv *.o objects/
d55 1
a55 1
	cc -n -o psh -O -DPARANOID $(OBJ)
d70 2
a71 1
var.o:		sh.h var.c
d73 3
a75 2
	yacc sh.y
y.tab.o:	sh.h y.tab.c
d79 1
a79 1
	mv *.o objects/
@


1.8
log
@bob h added chown chgrp ...
@
text
@d2 1
a2 1
DESTDIR=/f1/bin/
d53 1
d78 1
a78 1
	rm $(OBJ)
@


1.7
log
@bob h added destdir
@
text
@d50 3
@


1.6
log
@provided by Stevesf for version 3.1.1
@
text
@d2 1
a2 1

d49 1
a49 1
	cc $(LDFLAGS) -o sh $(OBJ)
@


1.5
log
@steve 2/8/91
Removed malloc.o and notmem.o, use the ones in libc.a instead.
Corrected lex.o dependency so it gets remade if sh.y changes.
Added $(SRC) definition to allow remote make.
@
text
@d1 1
a1 1
# /usr/src/cmd0/sh/Makefile 2/8/91
a2 3
# Source directory.
SRC=/usr.src/cmd0/sh

d6 3
a8 3
# Include source directory to get sh.h for y.tab.c.
# For i8086 use CFLAGS=-VSINU.
CFLAGS= -O -VSINU -I$(SRC)
d31 15
a45 15
	$(SRC)/sh.h\
	$(SRC)/sh.y\
	$(SRC)/alloc.c\
	$(SRC)/atoi.c\
	$(SRC)/eval.c\
	$(SRC)/exec1.c\
	$(SRC)/exec2.c\
	$(SRC)/exec3.c\
	$(SRC)/extern.c\
	$(SRC)/glob.c\
	$(SRC)/lex.c \
	$(SRC)/main.c\
	$(SRC)/tab.c\
	$(SRC)/trap.c\
	$(SRC)/var.c
d55 16
a70 17
alloc.o:	$(SRC)/sh.h $(SRC)/alloc.c
atoi.o:		$(SRC)/atoi.c
eval.o:		$(SRC)/sh.h $(SRC)/eval.c
exec1.o:	$(SRC)/sh.h $(SRC)/exec1.c
exec2.o:	$(SRC)/sh.h $(SRC)/exec2.c
exec3.o:	$(SRC)/sh.h $(SRC)/exec3.c
extern.o:	$(SRC)/sh.h $(SRC)/extern.c
glob.o:		$(SRC)/sh.h $(SRC)/glob.c
lex.o:		$(SRC)/sh.h $(SRC)/lex.c y.tab.o
main.o:		$(SRC)/sh.h $(SRC)/main.c
tab.o:		$(SRC)/sh.h $(SRC)/tab.c
trap.o:		$(SRC)/sh.h $(SRC)/trap.c
var.o:		$(SRC)/sh.h $(SRC)/var.c
	$(CC) $(CFLAGS) -c -DVERSION='"VERSION=V$(VERSION)"' $(SRC)/var.c
y.tab.c:	$(SRC)/sh.y
	yacc $(SRC)/sh.y
y.tab.o:	$(SRC)/sh.h y.tab.c
a75 4
# Unused currently.
malloc.o:	malloc.c
notmem.o:	notmem.c

@


1.4
log
@steve 2/1/91
Alphabetized $(OBJS) and $(SRCS), added missing $(SRCS).
Added VERSION= and corresonding -D switch in var.o compilation.
Added target "clean" to remove objects.
@
text
@d1 1
a1 2
# /usr/src/cmd0/sh/Makefile 2/1/90
# sh.v.o removed from OBJS, version does not work under Inetco COH.
d3 3
d9 3
a11 2
# for i8086 use CFLAGS=-VSINU
CFLAGS= -O -VSINU
d14 1
a14 1
# Don't bind shared on the PDP-11
d17 1
a17 1
OBJS =	\
a27 2
	malloc.o\
	notmem.o\
d33 16
a48 17
SRCS =  sh.h\
	alloc.c\
	atoi.c\
	eval.c\
	exec1.c\
	exec2.c\
	exec3.c\
	extern.c\
	glob.c\
	lex.c \
	main.c\
	malloc.c\
	notmem.c\
	tab.c\
	trap.c\
	var.c\
	sh.y
d50 3
a52 2
sh: $(OBJS)
	cc $(LDFLAGS) -o sh $(OBJS)
d54 2
a55 2
psh: $(OBJS)
	cc -n -o psh -O -DPARANOID $(OBJS)
d57 20
d78 1
a78 1
	rm $(OBJS)
d80 1
a80 10
alloc.o:	sh.h alloc.c
atoi.o:		atoi.c
eval.o:		sh.h eval.c
exec1.o:	sh.h exec1.c
exec2.o:	sh.h exec2.c
exec3.o:	sh.h exec3.c
extern.o:	sh.h extern.c
glob.o:		sh.h glob.c
lex.o:		sh.h y.tab.h lex.c
main.o:		sh.h main.c
a82 7
tab.o:		sh.h tab.c
trap.o:		sh.h trap.c
var.o:		sh.h var.c
	$(CC) $(CFLAGS) -c -DVERSION='"VERSION=V$(VERSION)"' var.c
y.tab.o:	sh.h y.tab.h y.tab.c
y.tab.c:	sh.y
	yacc sh.y
d84 1
a84 5
# Unused currently.
sh.v.o:	$(SRCS)
	version `pwd` sh $(SRCS) > sh.v.s
	as -o sh.v.o sh.v.s
	rm sh.v.s
@


1.3
log
@steve 1/31/91
At norm's request, added "-u _copyright_" to LDFLAGS to link
libc.a/copyright.o/_copyright[] into sh executable.
@
text
@d1 1
a1 1
# /usr/src/cmd0/sh/Makefile 1/23/90
d4 3
d8 2
a9 1
CFLAGS= -O -VSINU -I. -I/usr/include/sys
d14 17
a30 2
OBJS =  main.o alloc.o eval.o exec1.o exec2.o exec3.o extern.o lex.o \
	tab.o trap.o var.o y.tab.o atoi.o glob.o malloc.o notmem.o
d32 17
a48 2
SRCS =  main.c alloc.c eval.c exec1.c exec2.c exec3.c extern.c lex.c \
	tab.c trap.c var.c sh.y atoi.c glob.c sh.h
d56 2
a57 1
alloc.o: sh.h alloc.c
d59 19
a77 1
eval.o:	sh.h eval.c
d79 2
a80 29
exec1.o: sh.h exec1.c

exec2.o: sh.h exec2.c

exec3.o: sh.h exec3.c

extern.o: sh.h extern.c

lex.o: sh.h y.tab.h lex.c

main.o: sh.h main.c

tab.o: sh.h tab.c

trap.o: sh.h trap.c

#	$(CC) -O -c var.c
var.o: sh.h var.c

y.tab.o: sh.h y.tab.h y.tab.c

y.tab.c: sh.y
	yacc sh.y

atoi.o: atoi.c

glob.o: sh.h glob.c

sh.v.o: $(SRCS)
@


1.2
log
@steve 10/23/90
Removed sh.v.s, version command not used now.
@
text
@d6 1
a6 1
LDFLAGS= -n -i
@


1.1
log
@Initial revision
@
text
@d1 3
d5 1
a5 1
CFLAGS= -O -VSINU -I.
d7 2
a8 2
#Don't bind shared on the PDP-11
#LDFLAGS= -i
d11 1
a11 1
	tab.o trap.o var.o y.tab.o atoi.o glob.o malloc.o notmem.o sh.v.o 
d42 1
a43 1
#	$(CC) -O -c var.c
a45 1
#	$(CC) -O -c y.tab.c
@
