xref: /titanic_50/usr/src/cmd/csh/Makefile (revision 884be64dd8e3b9a5e39540ec90da0a94008f4eb1)
1*884be64dSjonb# Copyright 2006 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-gateinclude ../Makefile.cmd
197c478bd9Sstevel@tonic-gate
207c478bd9Sstevel@tonic-gateED= ed
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate# For message catalogue files
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gateGREP= egrep
257c478bd9Sstevel@tonic-gateSED= sed
267c478bd9Sstevel@tonic-gatePOFILE= csh.po
277c478bd9Sstevel@tonic-gateCLOBBERFILES += sh.tconst.h
28*884be64dSjonbCLEANFILES += sh.tconst.h
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateall :=          TARGET = all
317c478bd9Sstevel@tonic-gateinstall :=      TARGET = install
327c478bd9Sstevel@tonic-gateclean :=        TARGET = clean
337c478bd9Sstevel@tonic-gateclobber :=      TARGET = clobber
347c478bd9Sstevel@tonic-gatelint :=         TARGET = lint
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gatePOBJS = \
376c02b4a4Smuffinsh.o sh.char.o \
387c478bd9Sstevel@tonic-gatesh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\
397c478bd9Sstevel@tonic-gatesh.file.o sh.func.o sh.glob.o sh.hist.o\
407c478bd9Sstevel@tonic-gatesh.init.o sh.lex.o sh.misc.o sh.parse.o\
417c478bd9Sstevel@tonic-gatesh.print.o sh.proc.o sh.sem.o sh.set.o\
426c02b4a4Smuffinsh.tchar.o sh.time.o wait3.o printf.o
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateCPPFLAGS +=	-D_FILE_OFFSET_BITS=64
457c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I ../sh
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate.KEEP_STATE:
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateall install clean clobber lint:	$(MACH)
507c478bd9Sstevel@tonic-gate
516c02b4a4SmuffinPOFILES= $(POBJS:%.o=%.po)
527c478bd9Sstevel@tonic-gate
536c02b4a4SmuffinXGETFLAGS += -a -x csh.xcl
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate#
567c478bd9Sstevel@tonic-gate# For message catalogue files
577c478bd9Sstevel@tonic-gate#
587c478bd9Sstevel@tonic-gate_msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE)
597c478bd9Sstevel@tonic-gate	$(RM) $(POFILE)
607c478bd9Sstevel@tonic-gate	cat $(POFILES) > $(POFILE)
617c478bd9Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
627c478bd9Sstevel@tonic-gate	$(CP) $(POFILE) $(MSGDOMAIN)
637c478bd9Sstevel@tonic-gate
646c02b4a4Smuffin$(MSGDOMAIN):
656c02b4a4Smuffin	$(INS.dir)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate$(POFILE):	$(POFILES)
687c478bd9Sstevel@tonic-gate	$(RM) $@; cat $(POFILES) > $@
697c478bd9Sstevel@tonic-gate
70*884be64dSjonbsh.tconst.h: sh.tconst.c make.sh.tconst.h.ed
717c478bd9Sstevel@tonic-gate	$(RM) $@; $(ED) sh.tconst.c < make.sh.tconst.h.ed
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateclobber: local_clobber $(MACH)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gatelocal_clobber:
767c478bd9Sstevel@tonic-gate	$(RM) $(CLOBBERFILES)
777c478bd9Sstevel@tonic-gate
78*884be64dSjonbclean: local_clean
79*884be64dSjonb
80*884be64dSjonblocal_clean:
81*884be64dSjonb	$(RM) $(CLEANFILES)
82*884be64dSjonb
83*884be64dSjonb$(MACH): sh.tconst.h .WAIT FRC
847c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateFRC:
87