xref: /titanic_51/usr/src/cmd/sgs/libconv/Makefile.targ (revision fa9e4066f08beec538e775443c5be79dd423fcab)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28
29pics/%.o:	../common/%.c
30		$(COMPILE.c) -o $@ $<
31		$(POST_PROCESS_O)
32
33pics/%.o:	%.s
34		$(COMPILE.s) -o $@ $<
35		$(POST_PROCESS_O)
36
37pics/elfcap.o:	$(ELFCAP)/elfcap.c
38		$(COMPILE.c) -DCAP_UPPERCASE -o $@ $(ELFCAP)/elfcap.c
39		$(POST_PROCESS_O)
40
41../common/%.c:	%_msg.h
42
43%_msg.h:	$(SGSMSG) ../common/%.msg
44		$(SGSMSG) $(SGSMSGFLAGS) -l -h $@ -d $@ $<
45
46$(SGSMSG):	FRC
47		@ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
48		@ pwd
49
50vernote.s:	bld_vernote $(ONLDREADME)
51		./bld_vernote $(VERNOTE_DEBUG) -R $(ONLDREADME) \
52			-r "$(RELEASE)" -o $@
53
54bld_vernote:	../common/bld_vernote.ksh
55		$(RM) -f $@
56		cp ../common/bld_vernote.ksh $@
57		chmod a+x $@
58
59$(LIBRARY):	pics $$(PICS)
60		@ $(RM) $(LIBRARY)
61		$(AR) $(ARFLAGS) $@ $(PICS)
62		$(POST_PROCESS_A)
63
64chkmsg:		$(LINTSRCS)
65		sh $(CHKMSG) $(CHKMSGFLAGS) $(LINTSRCS)
66
67lint:		$(LINTLIB) $(LINTOUT32) $(SGSLINTOUT)
68
69$(LINTLIB): $$(SRCS)
70		$(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1
71
72catalog:
73
74pics:
75		-@mkdir -p $@
76
77clobber:	clean
78		-$(RM) $(LIBRARY) $(CLOBBERFILES)
79
80clean:
81		-$(RM) $(PICS) $(CLEANFILES)
82
83delete:
84
85include		$(SRC)/cmd/sgs/Makefile.targ
86