1 1304 jonb # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2 0 stevel # Use is subject to license terms. 3 0 stevel 4 0 stevel # Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T 5 0 stevel # All Rights Reserved 6 0 stevel 7 0 stevel # Copyright (c) 1980 Regents of the University of California. 8 0 stevel # All rights reserved. The Berkeley Software License Agreement 9 0 stevel # specifies the terms and conditions for redistribution. 10 0 stevel 11 0 stevel # ident "%Z%%M% %I% %E% SMI" 12 0 stevel 13 0 stevel # 14 0 stevel # C Shell with process control; VM/UNIX VAX Makefile 15 0 stevel # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 16 0 stevel # 17 0 stevel 18 0 stevel include ../Makefile.cmd 19 0 stevel 20 0 stevel ED= ed 21 0 stevel # 22 0 stevel # For message catalogue files 23 0 stevel # 24 0 stevel GREP= egrep 25 0 stevel SED= sed 26 0 stevel POFILE= csh.po 27 0 stevel CLOBBERFILES += sh.tconst.h 28 1304 jonb CLEANFILES += sh.tconst.h 29 0 stevel 30 0 stevel all := TARGET = all 31 0 stevel install := TARGET = install 32 0 stevel clean := TARGET = clean 33 0 stevel clobber := TARGET = clobber 34 0 stevel lint := TARGET = lint 35 0 stevel 36 0 stevel POBJS = \ 37 356 muffin sh.o sh.char.o \ 38 0 stevel sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\ 39 0 stevel sh.file.o sh.func.o sh.glob.o sh.hist.o\ 40 0 stevel sh.init.o sh.lex.o sh.misc.o sh.parse.o\ 41 0 stevel sh.print.o sh.proc.o sh.sem.o sh.set.o\ 42 356 muffin sh.tchar.o sh.time.o wait3.o printf.o 43 0 stevel 44 0 stevel CPPFLAGS += -D_FILE_OFFSET_BITS=64 45 0 stevel CPPFLAGS += -I ../sh 46 0 stevel 47 0 stevel .KEEP_STATE: 48 0 stevel 49 0 stevel all install clean clobber lint: $(MACH) 50 0 stevel 51 356 muffin POFILES= $(POBJS:%.o=%.po) 52 0 stevel 53 356 muffin XGETFLAGS += -a -x csh.xcl 54 0 stevel 55 0 stevel # 56 0 stevel # For message catalogue files 57 0 stevel # 58 0 stevel _msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE) 59 0 stevel $(RM) $(POFILE) 60 0 stevel cat $(POFILES) > $(POFILE) 61 0 stevel $(RM) $(MSGDOMAIN)/$(POFILE) 62 0 stevel $(CP) $(POFILE) $(MSGDOMAIN) 63 0 stevel 64 356 muffin $(MSGDOMAIN): 65 356 muffin $(INS.dir) 66 0 stevel 67 0 stevel $(POFILE): $(POFILES) 68 0 stevel $(RM) $@; cat $(POFILES) > $@ 69 0 stevel 70 1304 jonb sh.tconst.h: sh.tconst.c make.sh.tconst.h.ed 71 0 stevel $(RM) $@; $(ED) sh.tconst.c < make.sh.tconst.h.ed 72 0 stevel 73 0 stevel clobber: local_clobber $(MACH) 74 0 stevel 75 0 stevel local_clobber: 76 0 stevel $(RM) $(CLOBBERFILES) 77 0 stevel 78 1304 jonb clean: local_clean 79 1304 jonb 80 1304 jonb local_clean: 81 1304 jonb $(RM) $(CLEANFILES) 82 1304 jonb 83 1304 jonb $(MACH): sh.tconst.h .WAIT FRC 84 0 stevel @cd $@; pwd; $(MAKE) $(TARGET) 85 0 stevel 86 0 stevel FRC: 87