xref: /titanic_51/usr/src/cmd/fs.d/udfs/labelit/Makefile (revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22#pragma ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27
28FSTYPE=		udfs
29LIBPROG=	labelit
30SRCS=		labelit.c ud_lib.c
31ATTMK=		$(LIBPROG)
32
33include		../../Makefile.fstype
34
35LDLIBS += -ladm
36CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
37
38LINTFLAGS += -xerroff=E_STATIC_UNUSED
39LINTFLAGS64 += -xerroff=E_STATIC_UNUSED
40
41labelit : labelit.o  ud_lib.o
42	$(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS)
43	$(POST_PROCESS)
44
45labelit.o : labelit.c ud_lib.h
46
47ud_lib.o : ud_lib.c ud_lib.h
48
49ud_lib.h : ../fstyp/ud_lib.h
50	rm -f ud_lib.h
51	cp ../fstyp/ud_lib.h ud_lib.h
52
53ud_lib.c : ../fstyp/ud_lib.c
54	rm -f ud_lib.c
55	cp ../fstyp/ud_lib.c ud_lib.c
56
57# for messaging catalog
58#
59POFILE= labelit.po
60
61# for messaging catalog
62#
63catalog:	$(POFILE)
64
65$(POFILE):	$(SRCS)
66	$(RM) $@
67	$(COMPILE.cpp) $(SRCS) > $(POFILE).i
68	$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
69	sed "/^domain/d" messages.po > $@
70	$(RM) $(POFILE).i messages.po
71
72clean :
73	rm -f labelit.o ud_lib.o
74	rm -f ud_lib.c ud_lib.h
75
76lint:
77	rm -f ud_lib.h
78	cp ../fstyp/ud_lib.h ud_lib.h
79	cp ../fstyp/ud_lib.c ud_lib.c
80	$(LINT.c) -mu $(SRCS)
81
82putback:
83	-cstyle -p labelit.c
84	-keywords labelit.c
85	-keywords Makefile
86