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]
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2017 Joyent, Inc.
30 SRCS
= labelit.c ud_lib.c
33 include ..
/..
/Makefile.fstype
36 CPPFLAGS
+= -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS
=64
39 CERRWARN
+= -Wno-unused-function
40 CERRWARN
+= -Wno-uninitialized
42 labelit
: labelit.o ud_lib.o
43 $(LINK.c
) -o
$@ labelit.o ud_lib.o
$(LDLIBS
)
46 labelit.o
: labelit.c ud_lib.h
48 ud_lib.o
: ud_lib.c ud_lib.h
50 ud_lib.h
: ..
/fstyp
/ud_lib.h
52 cp ..
/fstyp
/ud_lib.h ud_lib.h
54 ud_lib.c
: ..
/fstyp
/ud_lib.c
56 cp ..
/fstyp
/ud_lib.c ud_lib.c
58 # for messaging catalog
62 # for messaging catalog
66 $(POFILE
): $(SRCS
) ud_lib.h
68 $(COMPILE.
cpp) $(SRCS
) > $(POFILE
).i
69 $(XGETTEXT
) $(XGETFLAGS
) $(POFILE
).i
70 sed
"/^domain/d" messages.po
> $@
71 $(RM
) $(POFILE
).i messages.po
74 rm -f labelit.o ud_lib.o
75 rm -f ud_lib.c ud_lib.h