ar(1): remove separate xpg4 version
[unleashed.git] / usr / src / cmd / sgs / ar / Makefile.targ
blob4827ca416cc707bc02fa2a898d890959d72fe29a
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
24 objs/%.o:       ../common/%.c
25                 $(COMPILE.c) -o $@ $<
26                 $(POST_PROCESS_O)
28 objs/%.o:       %.c
29                 $(COMPILE.c) -o $@ $<
30                 $(POST_PROCESS_O)
32 clean:
33                 $(RM) $(OBJS) $(CLEANFILES)
35 delete:
36                 $(RM) $(PROG)
38 catalog:        $(BLTMESG)
40 $(PROG):        $(OBJS)
41                 $(LINK.c) -o $@ $(LLDFLAGS) $(OBJS) $(LDLIBS)
42                 $(POST_PROCESS)
44 $(OBJS):        objs
46 objs:
47                 -@ mkdir -p $@
49 include         $(SRC)/cmd/Makefile.targ
50 include         $(SRC)/cmd/sgs/Makefile.targ
52 # Derived source and header files (messaging).
54 catalog:        $(BLTMESG)
56 chkmsg:         $(SRCS)
57                 sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
59 $(BLTDEFS) + \
60 $(BLTDATA) + \
61 $(BLTMESG):     $(SGSMSGALL)
62                 $(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)