1 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
2 #
3 # Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
4 # All Rights Reserved
5 #
6 # Copyright (c) 1980 Regents of the University of California.
7 # All rights reserved. The Berkeley Software License Agreement
8 # specifies the terms and conditions for redistribution.
9
10 #
11 # C Shell with process control; VM/UNIX VAX Makefile
12 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
13 #
14
15 CSH_PROG = csh
16 PROG = $(CSH_PROG)
17
18 include ../../Makefile.cmd
19
20 MBCHAR = -DMBCHAR # Define this line to include multibyte input support
21 DEFS = -DVFORK -DFILEC -DBSD_COMP -DFIVE # No TELL when MBCHAR
22 CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
23 CPPFLAGS += -I../../sh
24 CPPFLAGS += -D_FILE_OFFSET_BITS=64
25 LDLIBS += -lcurses
26
27 CERRWARN += -_gcc=-Wno-implicit-function-declaration
28 CERRWARN += -_gcc=-Wno-uninitialized
29 CERRWARN += -_gcc=-Wno-parentheses
30 CERRWARN += -_gcc=-Wno-implicit-int
31 CERRWARN += -_gcc=-Wno-unused-function
32 CERRWARN += -_gcc=-Wno-unused-variable
33 CERRWARN += -_gcc=-Wno-clobbered
34 CERRWARN += -_gcc=-Wno-unused-label
35 CERRWARN += -_gcc=-Wno-extra
36
37 MAPFILES = ../mapfile-intf $(MAPFILE.NGB)
38 LDFLAGS += $(MAPFILES:%=-M%)
39
40 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
41 sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
42 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
43
44 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
45 sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
46 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
47 sh.time.o sh.tchar.o sh.tconst.o sh.o \
48 wait3.o
49
50 LOCALOBJS= signal.o
51
52 COMMONSRCS= $(COMMONOBJS:%.o=../%.c)
53
54 .KEEP_STATE:
55
56 .PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
|
1 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
2 #
3 # Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
4 # All Rights Reserved
5 #
6 # Copyright (c) 1980 Regents of the University of California.
7 # All rights reserved. The Berkeley Software License Agreement
8 # specifies the terms and conditions for redistribution.
9 #
10 # Copyright (c) 2018, Joyent, Inc.
11 #
12 # C Shell with process control; VM/UNIX VAX Makefile
13 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
14 #
15
16 CSH_PROG = csh
17 PROG = $(CSH_PROG)
18
19 include ../../Makefile.cmd
20
21 MBCHAR = -DMBCHAR # Define this line to include multibyte input support
22 DEFS = -DVFORK -DFILEC -DBSD_COMP -DFIVE # No TELL when MBCHAR
23 CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master)
24 CPPFLAGS += -I../../sh
25 CPPFLAGS += -D_FILE_OFFSET_BITS=64
26 LDLIBS += -lcurses
27
28 CERRWARN += -_gcc=-Wno-implicit-function-declaration
29 CERRWARN += -_gcc=-Wno-uninitialized
30 CERRWARN += -_gcc=-Wno-parentheses
31 CERRWARN += -_gcc=-Wno-implicit-int
32 CERRWARN += -_gcc=-Wno-unused-function
33 CERRWARN += -_gcc=-Wno-unused-variable
34 CERRWARN += -_gcc=-Wno-clobbered
35 CERRWARN += -_gcc=-Wno-unused-label
36 CERRWARN += -_gcc=-Wno-extra
37
38 # "missing type for func"
39 SMATCH=off
40
41 MAPFILES = ../mapfile-intf $(MAPFILE.NGB)
42 LDFLAGS += $(MAPFILES:%=-M%)
43
44 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
45 sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \
46 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o
47
48 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
49 sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
50 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
51 sh.time.o sh.tchar.o sh.tconst.o sh.o \
52 wait3.o
53
54 LOCALOBJS= signal.o
55
56 COMMONSRCS= $(COMMONOBJS:%.o=../%.c)
57
58 .KEEP_STATE:
59
60 .PARALLEL: $(COMMONOBJS) $(LOCALOBJS)
|