author | rie |
Fri, 02 May 2008 15:01:06 -0700 | |
changeset 6543 | 465433824d87 |
parent 4271 | dda1ded496b7 |
child 12273 | 63678502e95e |
permissions | -rw-r--r-- |
6543
465433824d87
6683064 check_rtime could do with some spring cleaning
rie
parents:
4271
diff
changeset
|
1 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
0 | 2 |
# Use is subject to license terms. |
3 |
||
4 |
# Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T |
|
5 |
# All Rights Reserved |
|
6 |
||
7 |
# Copyright (c) 1980 Regents of the University of California. |
|
8 |
# All rights reserved. The Berkeley Software License Agreement |
|
9 |
# specifies the terms and conditions for redistribution. |
|
10 |
||
11 |
# ident "%Z%%M% %I% %E% SMI" |
|
12 |
||
13 |
# |
|
14 |
# C Shell with process control; VM/UNIX VAX Makefile |
|
15 |
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria |
|
16 |
# |
|
17 |
||
18 |
CSH_PROG = csh |
|
19 |
PROG = $(CSH_PROG) |
|
20 |
PFCSH_PROG= pfcsh |
|
21 |
ROOTPFCSH= $(ROOTBIN)/$(PFCSH_PROG) |
|
22 |
||
23 |
include ../../Makefile.cmd |
|
24 |
||
25 |
MBCHAR = -DMBCHAR # Define this line to include multibyte input support |
|
26 |
DEFS = -DVFORK -DFILEC -DBSD_COMP -DFIVE # No TELL when MBCHAR |
|
356 | 27 |
CPPFLAGS= -I. $(DEFS) $(MBCHAR) $(CPPFLAGS.master) |
28 |
CPPFLAGS += -I../../sh |
|
0 | 29 |
CPPFLAGS += -D_FILE_OFFSET_BITS=64 |
6543
465433824d87
6683064 check_rtime could do with some spring cleaning
rie
parents:
4271
diff
changeset
|
30 |
LDLIBS += -lcurses -lsecdb |
0 | 31 |
|
4271
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
32 |
MAPFILES = ../mapfile-intf $(MAPFILE.NGB) |
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
33 |
LDFLAGS += $(MAPFILES:%=-M%) |
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
34 |
|
0 | 35 |
PFOBJS = sh_policy.o |
36 |
||
37 |
HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \ |
|
38 |
sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \ |
|
39 |
sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o |
|
40 |
||
41 |
COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \ |
|
42 |
sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \ |
|
43 |
sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \ |
|
44 |
sh.time.o sh.tchar.o sh.tconst.o sh.o \ |
|
45 |
wait3.o |
|
46 |
||
47 |
LOCALOBJS= signal.o |
|
48 |
||
49 |
COMMONSRCS= $(COMMONOBJS:%.o=../%.c) |
|
50 |
PFSRCS= ../../sh/sh_policy.c |
|
51 |
||
52 |
.KEEP_STATE: |
|
53 |
||
54 |
.PARALLEL: $(COMMONOBJS) $(LOCALOBJS) |
|
55 |
||
56 |
all: $(PROG) |
|
57 |
||
58 |
# build rule for common source above |
|
59 |
%.o: ../%.c |
|
60 |
$(COMPILE.c) $< |
|
61 |
$(POST_PROCESS_O) |
|
62 |
||
63 |
%.o: ../../sh/%.c |
|
64 |
$(COMPILE.c) $< |
|
65 |
$(POST_PROCESS_O) |
|
66 |
||
4271
dda1ded496b7
6455532 OSNet cleanup required in preparation for direct bindings
rie
parents:
1304
diff
changeset
|
67 |
$(CSH_PROG): $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS) $(MAPFILES) |
0 | 68 |
$(LINK.c) $(COMMONOBJS) $(PFOBJS) $(LOCALOBJS) -o $@ $(LDLIBS) |
69 |
$(POST_PROCESS) |
|
70 |
||
71 |
$(ROOTPFCSH): $(ROOTPROG) |
|
72 |
$(RM) $@ |
|
73 |
$(LN) $(ROOTPROG) $@ |
|
74 |
||
1304
ae3fd4243c79
6375229 Architecture makefiles for csh out of sync with the csh level one
jonb
parents:
356
diff
changeset
|
75 |
$(HDDEP): ../sh.tconst.h |
0 | 76 |
|
77 |
install: all $(ROOTBINPROG) $(ROOTPROG) $(ROOTPFCSH) |
|
78 |
||
1304
ae3fd4243c79
6375229 Architecture makefiles for csh out of sync with the csh level one
jonb
parents:
356
diff
changeset
|
79 |
lint: ../sh.tconst.h |
0 | 80 |
$(LINT.c) $(COMMONSRCS) $(PFSRCS) signal.c $(LDLIBS) |
81 |
||
82 |
clean: |
|
1304
ae3fd4243c79
6375229 Architecture makefiles for csh out of sync with the csh level one
jonb
parents:
356
diff
changeset
|
83 |
$(RM) $(LOCALOBJS) $(COMMONOBJS) $(PFOBJS) |
0 | 84 |
|
85 |
clobber: clean |
|
86 |
$(RM) $(PROG) |