xref: /titanic_51/usr/src/cmd/csh/i386/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1134a1f4eSCasper H.S. Dik# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
27c478bd9Sstevel@tonic-gate#
37c478bd9Sstevel@tonic-gate#	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
47c478bd9Sstevel@tonic-gate#	  All Rights Reserved
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate# Copyright (c) 1980 Regents of the University of California.
77c478bd9Sstevel@tonic-gate# All rights reserved.  The Berkeley Software License Agreement
87c478bd9Sstevel@tonic-gate# specifies the terms and conditions for redistribution.
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate#
117c478bd9Sstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile
127c478bd9Sstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gateCSH_PROG =	csh
167c478bd9Sstevel@tonic-gatePROG =		$(CSH_PROG)
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
197c478bd9Sstevel@tonic-gate
207c478bd9Sstevel@tonic-gateMBCHAR	= -DMBCHAR	# Define this line to include multibyte input support
217c478bd9Sstevel@tonic-gateDEFS	=  -DVFORK -DFILEC -DBSD_COMP -DFIVE	# No TELL when MBCHAR
226c02b4a4SmuffinCPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
237c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I../../sh
247c478bd9Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64
25134a1f4eSCasper H.S. DikLDLIBS += -lcurses
267c478bd9Sstevel@tonic-gate
27*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
28*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
29*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
30*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-int
31*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
32*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
33*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-clobbered
34*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label
35*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-extra
36*7014882cSRichard Lowe
3724da5b34SrieMAPFILES =	../mapfile-intf $(MAPFILE.NGB)
3824da5b34SrieLDFLAGS +=	$(MAPFILES:%=-M%)
3924da5b34Srie
407c478bd9Sstevel@tonic-gateHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
417c478bd9Sstevel@tonic-gate	sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
427c478bd9Sstevel@tonic-gate	sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateCOMMONOBJS=	printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
457c478bd9Sstevel@tonic-gate	sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
467c478bd9Sstevel@tonic-gate	sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
477c478bd9Sstevel@tonic-gate	sh.time.o sh.tchar.o sh.tconst.o sh.o \
487c478bd9Sstevel@tonic-gate        wait3.o
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateLOCALOBJS= signal.o
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateCOMMONSRCS=	$(COMMONOBJS:%.o=../%.c)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate.KEEP_STATE:
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate.PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateall: $(PROG)
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate# build rule for common source above
617c478bd9Sstevel@tonic-gate%.o:	../%.c
627c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
637c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gate%.o:	../../sh/%.c
667c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
677c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
687c478bd9Sstevel@tonic-gate
69134a1f4eSCasper H.S. Dik$(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES)
70134a1f4eSCasper H.S. Dik	$(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
717c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
727c478bd9Sstevel@tonic-gate
73884be64dSjonb$(HDDEP): ../sh.tconst.h
747c478bd9Sstevel@tonic-gate
75134a1f4eSCasper H.S. Dikinstall: all $(ROOTBINPROG)  $(ROOTPROG)
767c478bd9Sstevel@tonic-gate
77884be64dSjonblint:	../sh.tconst.h
78134a1f4eSCasper H.S. Dik	$(LINT.c) $(COMMONSRCS) signal.c $(LDLIBS)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateclean:
81134a1f4eSCasper H.S. Dik	$(RM) $(LOCALOBJS) $(COMMONOBJS)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gateclobber:	clean
847c478bd9Sstevel@tonic-gate	$(RM)  $(PROG)
85