xref: /titanic_41/usr/src/cmd/fs.d/udfs/labelit/Makefile (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
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#pragma 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
29FSTYPE=		udfs
30LIBPROG=	labelit
31SRCS=		labelit.c ud_lib.c
32ATTMK=		$(LIBPROG)
33
34include		../../Makefile.fstype
35
36LDLIBS += -ladm
37CPPFLAGS +=	-D_LARGEFILE64_SOURCE
38
39labelit : labelit.o  ud_lib.o
40	$(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS)
41	$(POST_PROCESS)
42
43labelit.o : labelit.c ud_lib.h
44
45ud_lib.o : ud_lib.c ud_lib.h
46
47ud_lib.h : ../fstyp/ud_lib.h
48	rm -f ud_lib.h
49	cp ../fstyp/ud_lib.h ud_lib.h
50
51ud_lib.c : ../fstyp/ud_lib.c
52	rm -f ud_lib.c
53	cp ../fstyp/ud_lib.c ud_lib.c
54
55# for messaging catalog
56#
57POFILE= labelit.po
58
59# for messaging catalog
60#
61catalog:	$(POFILE)
62
63$(POFILE):	$(SRCS)
64	$(RM) $@
65	$(COMPILE.cpp) $(SRCS) > $(POFILE).i
66	$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
67	sed "/^domain/d" messages.po > $@
68	$(RM) $(POFILE).i messages.po
69
70clean :
71	rm -f labelit.o ud_lib.o
72	rm -f ud_lib.c ud_lib.h
73
74lint:
75	rm -f ud_lib.h
76	cp ../fstyp/ud_lib.h ud_lib.h
77	cp ../fstyp/ud_lib.c ud_lib.c
78	$(LINT.c) -mu $(SRCS)
79
80putback:
81	-cstyle -p labelit.c
82	-keywords labelit.c
83	-keywords Makefile
84