Print this page
10051 cw(1) shouldn't have to translate -g
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/tnf/prex/Makefile.com
+++ new/usr/src/cmd/tnf/prex/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22
23 23 #
24 24 # Copyright 1989,2003 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # cmd/tnf/prex/Makefile.com
28 28 #
29 29
30 30 PROG= prex
31 31
32 32 OBJS.c= source.o \
33 33 main.o \
34 34 util.o \
35 35 expr.o \
36 36 spec.o \
37 37 set.o \
38 38 queue.o \
39 39 cmd.o \
40 40 new.o \
41 41 list.o \
42 42 fcn.o \
43 43 prbk.o \
44 44 help.o
45 45
46 46 OBJS.yl= prexgram.o \
47 47 prexlex.o
48 48
49 49 OBJS= $(OBJS.yl) $(OBJS.c)
50 50
51 51 SRCS= $(OBJS.c:%.o=../%.c) $(OBJS.yl:%.o=%.c)
52 52
53 53 SRCS.yl = $(OBJS.yl:%.o=%.c)
54 54 CLEANFILES = $(SRCS.yl) y.tab.h
55 55
↓ open down ↓ |
55 lines elided |
↑ open up ↑ |
56 56 include ../../../Makefile.cmd
57 57
58 58 POFILE= prex.po
59 59 POFILES= $(OBJS.c:%.o=%.po)
60 60
61 61 #YFLAGS= -d -t -v
62 62 YFLAGS= -d
63 63 LFLAGS= -v
64 64 # FOR normal makefile, uncomment the next line
65 65 LDLIBS += -lgen -ltnfctl -lelf -lc
66 -# Uncomment the following line for a debug build
67 -# COPTFLAG = -g -DDEBUG
68 66
69 67 CFLAGS += $(CCVERBOSE)
70 68 CERRWARN += -_gcc=-Wno-unused-label
71 69 CERRWARN += -_gcc=-Wno-unused-variable
72 70 CERRWARN += -_gcc=-Wno-parentheses
73 71 CERRWARN += -_gcc=-Wno-uninitialized
74 72
75 73 .KEEP_STATE:
76 74
77 75 .PARALLEL: $(OBJS)
78 76
79 77 all: $(PROG)
80 78
81 79 #OBJS can be built in parallel after all .c (and y.tab.h) are properly built
82 80 $(PROG): $(SRCS.yl) .WAIT $(OBJS)
83 81 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
84 82 $(POST_PROCESS)
85 83
86 84 #This also builds y.tab.h
87 85 prexgram.c: ../prexgram.y
88 86 $(YACC.y) ../prexgram.y
89 87 mv y.tab.c $@
90 88
91 89 prexlex.c: ../prexlex.l
92 90 $(RM) $@
93 91 $(LEX.l) ../prexlex.l > $@
94 92
95 93 #Use %.c in priority to ../%.c for prexgram.c and prexlec.c
96 94 %.o: %.c
97 95 $(COMPILE.c) $<
98 96
99 97 %.o: ../%.c
100 98 $(COMPILE.c) $<
101 99
102 100
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
103 101 $(ROOTBIN):
104 102 $(INS.dir)
105 103
106 104 $(POFILE): $(POFILES)
107 105 $(RM) $@
108 106 cat $(POFILES) > $@
109 107
110 108 clean:
111 109 $(RM) $(OBJS) $(CLEANFILES)
112 110
113 -lint: $(OBJS)
111 +lint: $(OBJS)
114 112 $(LINT.c) $(SRCS)
115 113
116 114 include ../../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX