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