4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 1994 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
25 .SUFFIXES: .o .c .c~ .y .y~ .l .l~ .s .s~ .sh .sh~ .h .h~ .f .f~ \
51 $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
54 $(CC) $(CFLAGS) $*.c -o $@ $(LDFLAGS)
57 $(F77) $(FFLAGS) $< -o $@ $(LDFLAGS)
60 $(F77) $(FFLAGS) $*.f -o $@ $(LDFLAGS)
63 $(AS) $(ASFLAGS) $< -o $@ $(LDFLAGS)
66 $(AS) $(ASFLAGS) $*.s -o $* $(LDFLAGS)
69 cp $< $@; chmod 0777 $@
72 cp $*.sh $*; chmod 0777 $@
75 $(C++C) $(C++FLAGS) $< -o $@ $(LDFLAGS)
78 $(C++C) $(C++FLAGS) $*.C -o $@ $(LDFLAGS)
83 $(AR) $(ARFLAGS) $@ $*.o
89 $(CC) $(CFLAGS) -c $*.c
90 $(AR) $(ARFLAGS) $@ $*.o
96 $(CC) $(CFLAGS) -c $*.c
99 $(F77) $(FFLAGS) -c $*.f
100 $(AR) $(ARFLAGS) $@ $*.o
103 $(F77) $(FFLAGS) -c $*.f
106 $(F77) $(FFLAGS) -c $*.f
107 $(AR) $(ARFLAGS) $@ $*.o
113 $(F77) $(FFLAGS) -c $*.f
122 $(CC) $(CFLAGS) -c lex.yy.c
123 -rm lex.yy.c; mv lex.yy.o $@
126 $(LEX) $(LFLAGS) $*.l
133 $(LEX) $(LFLAGS) $*.l
134 $(CC) $(CFLAGS) -c lex.yy.c
138 $(AS) $(ASFLAGS) -o $*.o $*.s
139 $(AR) $(ARFLAGS) $@ $*.o
141 $(AS) $(ASFLAGS) -o $@ $<
144 $(AS) $(ASFLAGS) -o $*.o $*.s
145 $(AR) $(ARFLAGS) $@ $*.o
149 $(AS) $(ASFLAGS) -o $*.o $*.s
160 $(CC) $(CFLAGS) -c y.tab.c
165 $(YACC) $(YFLAGS) $*.y
170 $(YACC) $(YFLAGS) $*.y
171 $(CC) $(CFLAGS) -c y.tab.c
177 $(C++C) $(C++FLAGS) -c $<
178 $(AR) $(ARFLAGS) $@ $*.o
181 $(C++C) $(C++FLAGS) -c $<
184 $(C++C) $(C++FLAGS) -c $*.C
185 $(AR) $(ARFLAGS) $@ $*.o
191 $(C++C) $(C++FLAGS) -c $*.C
198 $(C++C) $(C++FLAGS) -c lex.yy.c
199 -rm lex.yy.c; mv lex.yy.o $@
202 $(LEX) $(LFLAGS) $*.L
209 $(LEX) $(LFLAGS) $*.L
210 $(C++C) $(C++FLAGS) -c lex.yy.c
218 $(C++C) $(C++FLAGS) -c y.tab.c
223 $(YACC) $(YFLAGS) $*.Y
228 $(YACC) $(YFLAGS) $*.Y
229 $(C++C) $(C++FLAGS) -c y.tab.c
236 echo "static char _sccsid[] = \"`grep @'(#)' markfile`\";" > markfile.c
241 $(GET) $(GFLAGS) s.$@