Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Use is subject to license terms.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# All Rights Reserved
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Copyright (c) 1980 Regents of the University of California.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# All rights reserved. The Berkeley Software License Agreement
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# specifies the terms and conditions for redistribution.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# ident "%Z%%M% %I% %E% SMI"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync#
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# C Shell with process control; VM/UNIX VAX Makefile
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync#
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCSH_PROG = csh
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncPROG = $(CSH_PROG)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncPFCSH_PROG= pfcsh
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncROOTPFCSH= $(ROOTBIN)/$(PFCSH_PROG)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncinclude ../../Makefile.cmd
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncMBCHAR = -DMBCHAR # Define this line to include multibyte input support
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncDEFS = -DVFORK -DFILEC -DBSD_COMP -DFIVE # No TELL when MBCHAR
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCPPFLAGS= -I. -s $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCPPFLAGS += -I ../../sh
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCPPFLAGS += -D_FILE_OFFSET_BITS=64
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncLAZYLIBS = $(ZLAZYLOAD) -lsecdb $(ZNOLAZYLOAD)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsynclint := LAZYLIBS = -lsecdb
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncLDLIBS += -lcurses $(LAZYLIBS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncPFOBJS = sh_policy.o
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCOMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync sh.time.o sh.tchar.o sh.tconst.o sh.o \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync wait3.o
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncLOCALOBJS= signal.o
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncCOMMONSRCS= $(COMMONOBJS:%.o=../%.c)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncPFSRCS= ../../sh/sh_policy.c
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync.KEEP_STATE:
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync.PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncall: $(PROG)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# build rule for common source above
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync%.o: ../%.c
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(COMPILE.c) $<
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(POST_PROCESS_O)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync%.o: ../../sh/%.c
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(COMPILE.c) $<
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(POST_PROCESS_O)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync$(CSH_PROG): sh.tconst.h .WAIT $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(LINK.c) $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(POST_PROCESS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync$(ROOTPFCSH): $(ROOTPROG)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(RM) $@
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(LN) $(ROOTPROG) $@
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncsh.tconst.h: ../sh.tconst.c ../make.sh.tconst.h.ed
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(RM) $@
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync ed ../sh.tconst.c < ../make.sh.tconst.h.ed
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync$(HDDEP): sh.tconst.h
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncinstall: all $(ROOTBINPROG) $(ROOTPROG) $(ROOTPFCSH)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsynclint: sh.tconst.h
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(LINT.c) $(COMMONSRCS) $(PFSRCS) signal.c $(LDLIBS)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncclean:
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(RM) $(LOCALOBJS) $(COMMONOBJS) $(PFOBJS) sh.tconst.h
clobber: clean
$(RM) $(PROG)