1884be64dSjonb# 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# 127c478bd9Sstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile 137c478bd9Sstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 147c478bd9Sstevel@tonic-gate# 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 177c478bd9Sstevel@tonic-gate 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# For message catalogue files 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gatePOFILE= csh.po 227c478bd9Sstevel@tonic-gateCLOBBERFILES += sh.tconst.h 23884be64dSjonbCLEANFILES += sh.tconst.h 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gateall := TARGET = all 267c478bd9Sstevel@tonic-gateinstall := TARGET = install 277c478bd9Sstevel@tonic-gateclean := TARGET = clean 287c478bd9Sstevel@tonic-gateclobber := TARGET = clobber 297c478bd9Sstevel@tonic-gatelint := TARGET = lint 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gatePOBJS = \ 326c02b4a4Smuffinsh.o sh.char.o \ 337c478bd9Sstevel@tonic-gatesh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\ 347c478bd9Sstevel@tonic-gatesh.file.o sh.func.o sh.glob.o sh.hist.o\ 357c478bd9Sstevel@tonic-gatesh.init.o sh.lex.o sh.misc.o sh.parse.o\ 367c478bd9Sstevel@tonic-gatesh.print.o sh.proc.o sh.sem.o sh.set.o\ 376c02b4a4Smuffinsh.tchar.o sh.time.o wait3.o printf.o 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64 407c478bd9Sstevel@tonic-gateCPPFLAGS += -I ../sh 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate.KEEP_STATE: 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateall install clean clobber lint: $(MACH) 457c478bd9Sstevel@tonic-gate 466c02b4a4SmuffinPOFILES= $(POBJS:%.o=%.po) 477c478bd9Sstevel@tonic-gate 486c02b4a4SmuffinXGETFLAGS += -a -x csh.xcl 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate# 517c478bd9Sstevel@tonic-gate# For message catalogue files 527c478bd9Sstevel@tonic-gate# 537c478bd9Sstevel@tonic-gate_msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE) 547c478bd9Sstevel@tonic-gate $(RM) $(POFILE) 55*02b17e23SRichard Lowe $(CAT) $(POFILES) > $(POFILE) 567c478bd9Sstevel@tonic-gate $(RM) $(MSGDOMAIN)/$(POFILE) 577c478bd9Sstevel@tonic-gate $(CP) $(POFILE) $(MSGDOMAIN) 587c478bd9Sstevel@tonic-gate 596c02b4a4Smuffin$(MSGDOMAIN): 606c02b4a4Smuffin $(INS.dir) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES) 637c478bd9Sstevel@tonic-gate $(RM) $@; cat $(POFILES) > $@ 647c478bd9Sstevel@tonic-gate 65884be64dSjonbsh.tconst.h: sh.tconst.c make.sh.tconst.h.ed 667c478bd9Sstevel@tonic-gate $(RM) $@; $(ED) sh.tconst.c < make.sh.tconst.h.ed 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateclobber: local_clobber $(MACH) 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gatelocal_clobber: 717c478bd9Sstevel@tonic-gate $(RM) $(CLOBBERFILES) 727c478bd9Sstevel@tonic-gate 73*02b17e23SRichard Loweclean: local_clean 74884be64dSjonb 75884be64dSjonblocal_clean: 76884be64dSjonb $(RM) $(CLEANFILES) 77884be64dSjonb 78884be64dSjonb$(MACH): sh.tconst.h .WAIT FRC 797c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gateFRC: 82