xref: /onnv-gate/usr/src/cmd/csh/sparc/Makefile (revision 12273:63678502e95e)
1*12273SCasper.Dik@Sun.COM# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
20Sstevel@tonic-gate
30Sstevel@tonic-gate#	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
40Sstevel@tonic-gate#	  All Rights Reserved
50Sstevel@tonic-gate
60Sstevel@tonic-gate# Copyright (c) 1980 Regents of the University of California.
70Sstevel@tonic-gate# All rights reserved.  The Berkeley Software License Agreement
80Sstevel@tonic-gate# specifies the terms and conditions for redistribution.
90Sstevel@tonic-gate
100Sstevel@tonic-gate#
110Sstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile
120Sstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
130Sstevel@tonic-gate#
140Sstevel@tonic-gate
150Sstevel@tonic-gateCSH_PROG =	csh
160Sstevel@tonic-gatePROG =		$(CSH_PROG)
170Sstevel@tonic-gate
180Sstevel@tonic-gateinclude ../../Makefile.cmd
190Sstevel@tonic-gate
200Sstevel@tonic-gateMBCHAR	= -DMBCHAR	# Define this line to include multibyte input support
210Sstevel@tonic-gateDEFS	=  -DVFORK -DFILEC -DBSD_COMP -DFIVE	# No TELL when MBCHAR
22356SmuffinCPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
23356SmuffinCPPFLAGS +=	-I../../sh
240Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64
25*12273SCasper.Dik@Sun.COMLDLIBS += -lcurses
260Sstevel@tonic-gate
274271SrieMAPFILES =	../mapfile-intf $(MAPFILE.NGB)
284271SrieLDFLAGS +=	$(MAPFILES:%=-M%)
294271Srie
300Sstevel@tonic-gatePFOBJS = sh_policy.o
310Sstevel@tonic-gate
320Sstevel@tonic-gateHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
330Sstevel@tonic-gate	sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
340Sstevel@tonic-gate	sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
350Sstevel@tonic-gate
360Sstevel@tonic-gateCOMMONOBJS=	printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
370Sstevel@tonic-gate	sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
380Sstevel@tonic-gate	sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
390Sstevel@tonic-gate	sh.time.o sh.tchar.o sh.tconst.o sh.o \
40*12273SCasper.Dik@Sun.COM        wait3.o
410Sstevel@tonic-gate
420Sstevel@tonic-gateLOCALOBJS= signal.o
430Sstevel@tonic-gate
440Sstevel@tonic-gateCOMMONSRCS=	$(COMMONOBJS:%.o=../%.c)
450Sstevel@tonic-gate
460Sstevel@tonic-gate.KEEP_STATE:
470Sstevel@tonic-gate
480Sstevel@tonic-gate.PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
490Sstevel@tonic-gate
500Sstevel@tonic-gateall: $(PROG)
510Sstevel@tonic-gate
520Sstevel@tonic-gate# build rule for common source above
530Sstevel@tonic-gate%.o:	../%.c
540Sstevel@tonic-gate	$(COMPILE.c) $<
550Sstevel@tonic-gate	$(POST_PROCESS_O)
560Sstevel@tonic-gate
570Sstevel@tonic-gate%.o:	../../sh/%.c
580Sstevel@tonic-gate	$(COMPILE.c) $<
590Sstevel@tonic-gate	$(POST_PROCESS_O)
600Sstevel@tonic-gate
61*12273SCasper.Dik@Sun.COM$(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES)
62*12273SCasper.Dik@Sun.COM	$(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
630Sstevel@tonic-gate	$(POST_PROCESS)
640Sstevel@tonic-gate
651304Sjonb$(HDDEP): ../sh.tconst.h
660Sstevel@tonic-gate
67*12273SCasper.Dik@Sun.COMinstall: all $(ROOTBINPROG)  $(ROOTPROG)
680Sstevel@tonic-gate
691304Sjonblint:	../sh.tconst.h
70*12273SCasper.Dik@Sun.COM	$(LINT.c) $(COMMONSRCS) signal.c $(LDLIBS)
710Sstevel@tonic-gate
720Sstevel@tonic-gateclean:
73*12273SCasper.Dik@Sun.COM	$(RM) $(LOCALOBJS) $(COMMONOBJS)
740Sstevel@tonic-gate
750Sstevel@tonic-gateclobber:	clean
760Sstevel@tonic-gate	$(RM)  $(PROG)
77