dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / fs.d / udfs / labelit / Makefile
blobbc717c1e781fec57dbbd5788552549d4553e19f6
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 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2017 Joyent, Inc.
28 FSTYPE= udfs
29 LIBPROG= labelit
30 SRCS= labelit.c ud_lib.c
31 ATTMK= $(LIBPROG)
33 include ../../Makefile.fstype
35 LDLIBS += -ladm
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)
44 $(POST_PROCESS)
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
51 rm -f ud_lib.h
52 cp ../fstyp/ud_lib.h ud_lib.h
54 ud_lib.c : ../fstyp/ud_lib.c
55 rm -f ud_lib.c
56 cp ../fstyp/ud_lib.c ud_lib.c
58 # for messaging catalog
60 POFILE= labelit.po
62 # for messaging catalog
64 catalog: $(POFILE)
66 $(POFILE): $(SRCS) ud_lib.h
67 $(RM) $@
68 $(COMPILE.cpp) $(SRCS) > $(POFILE).i
69 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
70 sed "/^domain/d" messages.po > $@
71 $(RM) $(POFILE).i messages.po
73 clean :
74 rm -f labelit.o ud_lib.o
75 rm -f ud_lib.c ud_lib.h
77 putback:
78 -cstyle -p labelit.c
79 -keywords labelit.c
80 -keywords Makefile