1134a1f4Casper H.S. Dik# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
27c478bdstevel@tonic-gate
37c478bdstevel@tonic-gate#	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
47c478bdstevel@tonic-gate#	  All Rights Reserved
57c478bdstevel@tonic-gate
67c478bdstevel@tonic-gate# Copyright (c) 1980 Regents of the University of California.
77c478bdstevel@tonic-gate# All rights reserved.  The Berkeley Software License Agreement
87c478bdstevel@tonic-gate# specifies the terms and conditions for redistribution.
97c478bdstevel@tonic-gate
107c478bdstevel@tonic-gate#
117c478bdstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile
127c478bdstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
137c478bdstevel@tonic-gate#
147c478bdstevel@tonic-gate
157c478bdstevel@tonic-gateCSH_PROG =	csh
167c478bdstevel@tonic-gatePROG =		$(CSH_PROG)
177c478bdstevel@tonic-gate
187c478bdstevel@tonic-gateinclude ../../Makefile.cmd
197c478bdstevel@tonic-gate
207c478bdstevel@tonic-gateMBCHAR	= -DMBCHAR	# Define this line to include multibyte input support
217c478bdstevel@tonic-gateDEFS	=  -DVFORK -DFILEC -DBSD_COMP -DFIVE	# No TELL when MBCHAR
226c02b4amuffinCPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
236c02b4amuffinCPPFLAGS +=	-I../../sh
247c478bdstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64
257014882Richard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
26d3b5f56John LevonCERRWARN += $(CNOWARN_UNINIT)
277014882Richard LoweCERRWARN += -_gcc=-Wno-parentheses
287014882Richard LoweCERRWARN += -_gcc=-Wno-implicit-int
297014882Richard LoweCERRWARN += -_gcc=-Wno-unused-function
307014882Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
317014882Richard LoweCERRWARN += -_gcc=-Wno-clobbered
327014882Richard LoweCERRWARN += -_gcc=-Wno-unused-label
337014882Richard LoweCERRWARN += -_gcc=-Wno-extra
347014882Richard Lowe
35134a1f4Casper H.S. DikLDLIBS += -lcurses
367c478bdstevel@tonic-gate
3724da5b3rieMAPFILES =	../mapfile-intf $(MAPFILE.NGB)
3824da5b3rieLDFLAGS +=	$(MAPFILES:%=-M%)
3924da5b3rie
407c478bdstevel@tonic-gatePFOBJS = sh_policy.o
417c478bdstevel@tonic-gate
427c478bdstevel@tonic-gateHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
437c478bdstevel@tonic-gate	sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
447c478bdstevel@tonic-gate	sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gateCOMMONOBJS=	printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
477c478bdstevel@tonic-gate	sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
487c478bdstevel@tonic-gate	sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
497c478bdstevel@tonic-gate	sh.time.o sh.tchar.o sh.tconst.o sh.o \
50134a1f4Casper H.S. Dik        wait3.o
517c478bdstevel@tonic-gate
527c478bdstevel@tonic-gateLOCALOBJS= signal.o
537c478bdstevel@tonic-gate
547c478bdstevel@tonic-gateCOMMONSRCS=	$(COMMONOBJS:%.o=../%.c)
557c478bdstevel@tonic-gate
567c478bdstevel@tonic-gate.KEEP_STATE:
577c478bdstevel@tonic-gate
587c478bdstevel@tonic-gate.PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
597c478bdstevel@tonic-gate
607c478bdstevel@tonic-gateall: $(PROG)
617c478bdstevel@tonic-gate
627c478bdstevel@tonic-gate# build rule for common source above
637c478bdstevel@tonic-gate%.o:	../%.c
647c478bdstevel@tonic-gate	$(COMPILE.c) $<
657c478bdstevel@tonic-gate	$(POST_PROCESS_O)
667c478bdstevel@tonic-gate
677c478bdstevel@tonic-gate%.o:	../../sh/%.c
687c478bdstevel@tonic-gate	$(COMPILE.c) $<
697c478bdstevel@tonic-gate	$(POST_PROCESS_O)
707c478bdstevel@tonic-gate
71134a1f4Casper H.S. Dik$(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES)
72134a1f4Casper H.S. Dik	$(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
737c478bdstevel@tonic-gate	$(POST_PROCESS)
747c478bdstevel@tonic-gate
75884be64jonb$(HDDEP): ../sh.tconst.h
767c478bdstevel@tonic-gate
77134a1f4Casper H.S. Dikinstall: all $(ROOTBINPROG)  $(ROOTPROG)
787c478bdstevel@tonic-gate
79884be64jonblint:	../sh.tconst.h
80134a1f4Casper H.S. Dik	$(LINT.c) $(COMMONSRCS) signal.c $(LDLIBS)
817c478bdstevel@tonic-gate
827c478bdstevel@tonic-gateclean:
83134a1f4Casper H.S. Dik	$(RM) $(LOCALOBJS) $(COMMONOBJS)
847c478bdstevel@tonic-gate
857c478bdstevel@tonic-gateclobber:	clean
867c478bdstevel@tonic-gate	$(RM)  $(PROG)
87