xref: /illumos-gate/usr/src/cmd/csh/i386/Makefile (revision 5418b7d9)
1134a1f4eSCasper H.S. Dik# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
27c478bd9Sstevel@tonic-gate#
37c478bd9Sstevel@tonic-gate#	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
47c478bd9Sstevel@tonic-gate#	  All Rights Reserved
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate# Copyright (c) 1980 Regents of the University of California.
77c478bd9Sstevel@tonic-gate# All rights reserved.  The Berkeley Software License Agreement
87c478bd9Sstevel@tonic-gate# specifies the terms and conditions for redistribution.
95661bb76SJohn Levon#
105661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
117c478bd9Sstevel@tonic-gate#
127c478bd9Sstevel@tonic-gate# C Shell with process control; VM/UNIX VAX Makefile
137c478bd9Sstevel@tonic-gate# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
147c478bd9Sstevel@tonic-gate#
157c478bd9Sstevel@tonic-gate
167c478bd9Sstevel@tonic-gateCSH_PROG =	csh
177c478bd9Sstevel@tonic-gatePROG =		$(CSH_PROG)
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gateMBCHAR	= -DMBCHAR	# Define this line to include multibyte input support
227c478bd9Sstevel@tonic-gateDEFS	=  -DVFORK -DFILEC -DBSD_COMP -DFIVE	# No TELL when MBCHAR
236c02b4a4SmuffinCPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
246c02b4a4SmuffinCPPFLAGS +=	-I../../sh
257c478bd9Sstevel@tonic-gateCPPFLAGS += -D_FILE_OFFSET_BITS=64
26134a1f4eSCasper H.S. DikLDLIBS += -lcurses
277c478bd9Sstevel@tonic-gate
287014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
29d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
307014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
317014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-int
327014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
337014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
347014882cSRichard LoweCERRWARN += -_gcc=-Wno-clobbered
357014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label
367014882cSRichard LoweCERRWARN += -_gcc=-Wno-extra
377014882cSRichard Lowe
385661bb76SJohn Levon# "missing type for func"
395661bb76SJohn LevonSMATCH=off
405661bb76SJohn Levon
4124da5b34SrieMAPFILES =	../mapfile-intf $(MAPFILE.NGB)
4285f4cb87SRichard LoweLDFLAGS +=	$(MAPFILES:%=-Wl,-M%)
4324da5b34Srie
447c478bd9Sstevel@tonic-gateHDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
457c478bd9Sstevel@tonic-gate	sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
467c478bd9Sstevel@tonic-gate	sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateCOMMONOBJS=	printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
497c478bd9Sstevel@tonic-gate	sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
507c478bd9Sstevel@tonic-gate	sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
517c478bd9Sstevel@tonic-gate	sh.time.o sh.tchar.o sh.tconst.o sh.o \
52134a1f4eSCasper H.S. Dik        wait3.o
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateLOCALOBJS= signal.o
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateCOMMONSRCS=	$(COMMONOBJS:%.o=../%.c)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gate.KEEP_STATE:
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate.PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateall: $(PROG)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate# build rule for common source above
657c478bd9Sstevel@tonic-gate%.o:	../%.c
667c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
677c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gate%.o:	../../sh/%.c
707c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
717c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
727c478bd9Sstevel@tonic-gate
73134a1f4eSCasper H.S. Dik$(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES)
74134a1f4eSCasper H.S. Dik	$(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS)
757c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
767c478bd9Sstevel@tonic-gate
77884be64dSjonb$(HDDEP): ../sh.tconst.h
787c478bd9Sstevel@tonic-gate
79*5418b7d9SDominik Hassler$(ROOTPROG) := INSLINKTARGET=../has/bin/$(PROG)
80*5418b7d9SDominik Hassler
81*5418b7d9SDominik Hassler$(ROOTPROG):
82*5418b7d9SDominik Hassler	$(INS.symlink)
83*5418b7d9SDominik Hassler
84*5418b7d9SDominik Hasslerinstall: all $(ROOTHASBINPROG) $(ROOTPROG)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateclean:
87134a1f4eSCasper H.S. Dik	$(RM) $(LOCALOBJS) $(COMMONOBJS)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gateclobber:	clean
907c478bd9Sstevel@tonic-gate	$(RM)  $(PROG)
91