Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
303N/A# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
303N/A# Use is subject to license terms.
303N/A
303N/A# Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
303N/A# All Rights Reserved
303N/A
303N/A# Copyright (c) 1980 Regents of the University of California.
303N/A# All rights reserved. The Berkeley Software License Agreement
303N/A# specifies the terms and conditions for redistribution.
303N/A
303N/A# ident "%Z%%M% %I% %E% SMI"
303N/A
303N/A#
303N/A# C Shell with process control; VM/UNIX VAX Makefile
303N/A# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
303N/A#
303N/A
303N/Ainclude ../Makefile.cmd
303N/A
303N/AED= ed
1938N/A#
303N/A# For message catalogue files
303N/A#
303N/AGREP= egrep
303N/ASED= sed
303N/APOFILE= csh.po
303N/ACLOBBERFILES += sh.tconst.h
303N/A
303N/Aall := TARGET = all
844N/Ainstall := TARGET = install
844N/Aclean := TARGET = clean
303N/Aclobber := TARGET = clobber
1258N/Alint := TARGET = lint
303N/A
303N/APFOBJS = sh_policy.o
303N/A
303N/APOBJS = \
303N/Ash.o sh.char.o sh.debug.o\
303N/Ash.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o\
303N/Ash.file.o sh.func.o sh.glob.o sh.hist.o\
303N/Ash.init.o sh.lex.o sh.misc.o sh.parse.o\
303N/Ash.print.o sh.proc.o sh.sem.o sh.set.o\
303N/Ash.tchar.o sh.time.o stubs.o wait3.o printf.o
303N/A
303N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64
303N/ACPPFLAGS += -I ../sh
303N/A
303N/A.KEEP_STATE:
303N/A
303N/Aall install clean clobber lint: $(MACH)
303N/A
303N/APFPOFILES= $(PFOBJS:%.o=%.po)
303N/A
303N/APOFILES= \
303N/Ash.po sh.char.po sh.debug.po\
303N/Ash.dir.po sh.dol.po sh.err.po sh.exec.po sh.exp.po\
303N/Ash.file.po sh.func.po sh.glob.po sh.hist.po\
303N/Ash.init.po sh.lex.po sh.misc.po sh.parse.po\
303N/Ash.print.po sh.proc.po sh.sem.po sh.set.po\
303N/Ash.tchar.po sh.time.po stubs.po wait3.po\
303N/A$(PFPOFILES)
303N/A
303N/AXGETFLAGS= -a -x csh.xcl
1938N/A
1938N/A
303N/A#
303N/A# For message catalogue files
303N/A#
303N/A_msg: $(MSGDOMAIN) sh.tconst.h .WAIT $(POFILE)
303N/A $(RM) $(POFILE)
303N/A cat $(POFILES) > $(POFILE)
303N/A $(RM) $(MSGDOMAIN)/$(POFILE)
303N/A $(CP) $(POFILE) $(MSGDOMAIN)
303N/A
303N/A
$(POFILE): $(POFILES)
$(RM) $@; cat $(POFILES) > $@
# based on .c.po, BUILD.po from Makefile.master
%.po: ../sh/%.c
$(COMPILE.cpp) $< > $(<F).i
$(XGETTEXT) $(XGETFLAGS) $(<F).i ;\
$(RM) $@ ;\
sed "/^domain/d" < messages.po > $@ ;\
$(RM) messages.po $(<F).i
$(PROG): $$(POBJS)
$(LINK.c) $(POBJS) -o $@
sh.tconst.h:
$(RM) $@; $(ED) sh.tconst.c < make.sh.tconst.h.ed
clobber: local_clobber $(MACH)
local_clobber:
$(RM) $(CLOBBERFILES)
$(MACH): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: