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