xref: /illumos-gate/usr/src/cmd/csh/Makefile (revision 6c02b4a4b46fecc2fa6bf1ab6b5e3255ad1d0767)
1*6c02b4a4Smuffin# Copyright 2005 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
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateall :=          TARGET = all
307c478bd9Sstevel@tonic-gateinstall :=      TARGET = install
317c478bd9Sstevel@tonic-gateclean :=        TARGET = clean
327c478bd9Sstevel@tonic-gateclobber :=      TARGET = clobber
337c478bd9Sstevel@tonic-gatelint :=         TARGET = lint
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gatePOBJS = \
36*6c02b4a4Smuffinsh.o sh.char.o \
377c478bd9Sstevel@tonic-gatesh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\
387c478bd9Sstevel@tonic-gatesh.file.o sh.func.o sh.glob.o sh.hist.o\
397c478bd9Sstevel@tonic-gatesh.init.o sh.lex.o sh.misc.o sh.parse.o\
407c478bd9Sstevel@tonic-gatesh.print.o sh.proc.o sh.sem.o sh.set.o\
41*6c02b4a4Smuffinsh.tchar.o sh.time.o wait3.o printf.o
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateCPPFLAGS +=	-D_FILE_OFFSET_BITS=64
447c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I ../sh
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate.KEEP_STATE:
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateall install clean clobber lint:	$(MACH)
497c478bd9Sstevel@tonic-gate
50*6c02b4a4SmuffinPOFILES= $(POBJS:%.o=%.po)
517c478bd9Sstevel@tonic-gate
52*6c02b4a4SmuffinXGETFLAGS += -a -x csh.xcl
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate#
557c478bd9Sstevel@tonic-gate# For message catalogue files
567c478bd9Sstevel@tonic-gate#
577c478bd9Sstevel@tonic-gate_msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE)
587c478bd9Sstevel@tonic-gate	$(RM) $(POFILE)
597c478bd9Sstevel@tonic-gate	cat $(POFILES) > $(POFILE)
607c478bd9Sstevel@tonic-gate	$(RM) $(MSGDOMAIN)/$(POFILE)
617c478bd9Sstevel@tonic-gate	$(CP) $(POFILE) $(MSGDOMAIN)
627c478bd9Sstevel@tonic-gate
63*6c02b4a4Smuffin$(MSGDOMAIN):
64*6c02b4a4Smuffin	$(INS.dir)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate$(POFILE):	$(POFILES)
677c478bd9Sstevel@tonic-gate	$(RM) $@; cat $(POFILES) > $@
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatesh.tconst.h:
707c478bd9Sstevel@tonic-gate	$(RM) $@; $(ED) sh.tconst.c < make.sh.tconst.h.ed
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateclobber: local_clobber $(MACH)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gatelocal_clobber:
757c478bd9Sstevel@tonic-gate	$(RM) $(CLOBBERFILES)
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate$(MACH): FRC
787c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateFRC:
81