xref: /illumos-gate/usr/src/cmd/csh/sparc/Makefile (revision 24da5b34)
1*24da5b34Srie# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
27c478bd9Sstevel@tonic-gate# Use is subject to license terms.
37c478bd9Sstevel@tonic-gate
47c478bd9Sstevel@tonic-gate#	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
57c478bd9Sstevel@tonic-gate#	  All Rights Reserved
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate# Copyright (c) 1980 Regents of the University of California.
87c478bd9Sstevel@tonic-gate# All rights reserved.  The Berkeley Software License Agreement
97c478bd9Sstevel@tonic-gate# specifies the terms and conditions for redistribution.
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile
157c478bd9Sstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
167c478bd9Sstevel@tonic-gate#
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gateCSH_PROG =	csh
197c478bd9Sstevel@tonic-gatePROG =		$(CSH_PROG)
207c478bd9Sstevel@tonic-gatePFCSH_PROG=	pfcsh
217c478bd9Sstevel@tonic-gateROOTPFCSH=	$(ROOTBIN)/$(PFCSH_PROG)
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateMBCHAR	= -DMBCHAR	# Define this line to include multibyte input support
267c478bd9Sstevel@tonic-gateDEFS	=  -DVFORK -DFILEC -DBSD_COMP -DFIVE	# No TELL when MBCHAR
276c02b4a4SmuffinCPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
286c02b4a4SmuffinCPPFLAGS +=	-I../../sh
297c478bd9Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64
307c478bd9Sstevel@tonic-gateLAZYLIBS = $(ZLAZYLOAD) -lsecdb $(ZNOLAZYLOAD)
317c478bd9Sstevel@tonic-gatelint := LAZYLIBS = -lsecdb
327c478bd9Sstevel@tonic-gateLDLIBS += -lcurses $(LAZYLIBS)
337c478bd9Sstevel@tonic-gate
34*24da5b34SrieMAPFILES =	../mapfile-intf $(MAPFILE.NGB)
35*24da5b34SrieLDFLAGS +=	$(MAPFILES:%=-M%)
36*24da5b34Srie
377c478bd9Sstevel@tonic-gatePFOBJS = sh_policy.o
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
407c478bd9Sstevel@tonic-gate	sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
417c478bd9Sstevel@tonic-gate	sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateCOMMONOBJS=	printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
447c478bd9Sstevel@tonic-gate	sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
457c478bd9Sstevel@tonic-gate	sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
467c478bd9Sstevel@tonic-gate	sh.time.o sh.tchar.o sh.tconst.o sh.o \
477c478bd9Sstevel@tonic-gate        wait3.o
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateLOCALOBJS= signal.o
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gateCOMMONSRCS=	$(COMMONOBJS:%.o=../%.c)
527c478bd9Sstevel@tonic-gatePFSRCS=		../../sh/sh_policy.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
69*24da5b34Srie$(CSH_PROG): $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS) $(MAPFILES)
707c478bd9Sstevel@tonic-gate	$(LINK.c) $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
717c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate$(ROOTPFCSH): $(ROOTPROG)
747c478bd9Sstevel@tonic-gate	$(RM) $@
757c478bd9Sstevel@tonic-gate	$(LN) $(ROOTPROG) $@
767c478bd9Sstevel@tonic-gate
77884be64dSjonb$(HDDEP): ../sh.tconst.h
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateinstall: all $(ROOTBINPROG)  $(ROOTPROG) $(ROOTPFCSH)
807c478bd9Sstevel@tonic-gate
81884be64dSjonblint:	../sh.tconst.h
827c478bd9Sstevel@tonic-gate	$(LINT.c) $(COMMONSRCS) $(PFSRCS) signal.c $(LDLIBS)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateclean:
85884be64dSjonb	$(RM) $(LOCALOBJS) $(COMMONOBJS) $(PFOBJS)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateclobber:	clean
887c478bd9Sstevel@tonic-gate	$(RM)  $(PROG)
89