author | Casper H.S. Dik <Casper.Dik@Sun.COM> |
Wed, 28 Apr 2010 10:01:37 +0200 | |
changeset 12273 | 63678502e95e |
parent 6543 | 465433824d87 |
child 13834 | 58bc6f85b799 |
permissions | -rw-r--r-- |
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
1 |
# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 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 |
|
356 | 22 |
CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master) |
23 |
CPPFLAGS += -I../../sh |
|
0 | 24 |
CPPFLAGS += -D_FILE_OFFSET_BITS=64 |
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
25 |
LDLIBS += -lcurses |
0 | 26 |
|
4271
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
27 |
MAPFILES = ../mapfile-intf $(MAPFILE.NGB) |
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
28 |
LDFLAGS += $(MAPFILES:%=-M%) |
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
29 |
|
0 | 30 |
PFOBJS = sh_policy.o |
31 |
||
32 |
HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \ |
|
33 |
sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \ |
|
34 |
sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o |
|
35 |
||
36 |
COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \ |
|
37 |
sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \ |
|
38 |
sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \ |
|
39 |
sh.time.o sh.tchar.o sh.tconst.o sh.o \ |
|
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
40 |
wait3.o |
0 | 41 |
|
42 |
LOCALOBJS= signal.o |
|
43 |
||
44 |
COMMONSRCS= $(COMMONOBJS:%.o=../%.c) |
|
45 |
||
46 |
.KEEP_STATE: |
|
47 |
||
48 |
.PARALLEL: $(COMMONOBJS) $(LOCALOBJS) |
|
49 |
||
50 |
all: $(PROG) |
|
51 |
||
52 |
# build rule for common source above |
|
53 |
%.o: ../%.c |
|
54 |
$(COMPILE.c) $< |
|
55 |
$(POST_PROCESS_O) |
|
56 |
||
57 |
%.o: ../../sh/%.c |
|
58 |
$(COMPILE.c) $< |
|
59 |
$(POST_PROCESS_O) |
|
60 |
||
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
61 |
$(CSH_PROG): $(COMMONOBJS) $(LOCALOBJS) $(MAPFILES) |
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
62 |
$(LINK.c) $(COMMONOBJS) $(LOCALOBJS) -o $@ $(LDLIBS) |
0 | 63 |
$(POST_PROCESS) |
64 |
||
1304
ae3fd4243c79
6375229 Architecture makefiles for csh out of sync with the csh level one
jonb
parents:
356
diff
changeset
|
65 |
$(HDDEP): ../sh.tconst.h |
0 | 66 |
|
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
67 |
install: all $(ROOTBINPROG) $(ROOTPROG) |
0 | 68 |
|
1304
ae3fd4243c79
6375229 Architecture makefiles for csh out of sync with the csh level one
jonb
parents:
356
diff
changeset
|
69 |
lint: ../sh.tconst.h |
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
70 |
$(LINT.c) $(COMMONSRCS) signal.c $(LDLIBS) |
0 | 71 |
|
72 |
clean: |
|
12273
63678502e95e
PSARC 2009/377 In-kernel pfexec implementation.
Casper H.S. Dik <Casper.Dik@Sun.COM>
parents:
6543
diff
changeset
|
73 |
$(RM) $(LOCALOBJS) $(COMMONOBJS) |
0 | 74 |
|
75 |
clobber: clean |
|
76 |
$(RM) $(PROG) |