0
|
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 "@(#)Makefile 1.14 05/06/08 SMI"
|
|
24 #
|
|
25 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
|
|
26 # Use is subject to license terms.
|
|
27 #
|
|
28 # cmd/fs.d/ufs/newfs/Makefile
|
|
29
|
|
30 #
|
|
31 # Copyright (c) 2007 NEC Corporation
|
|
32 #
|
|
33
|
|
34 FSTYPE= ufs
|
|
35 LIBPROG= newfs
|
|
36
|
|
37 OTHERINSTALL= $(ROOTUSRSBIN)/$(LIBPROG)
|
|
38 LINKVALUE= ../lib/fs/$(FSTYPE)/$(LIBPROG)
|
|
39
|
|
40 include ../../Makefile.fstype
|
|
41
|
|
42 CPPFLAGS += -I../../ -D_LARGEFILE64_SOURCE
|
|
43 LIBEFI = -lefi
|
|
44 LDLIBS += -ladm $(LIBEFI)
|
|
45
|
|
46 OBJS= $(LIBPROG).o $(FSLIB)
|
|
47 SRCS= $(LIBPROG).c $(FSLIBSRC)
|
|
48
|
|
49 $(ARM_BLD)CPPFLAGS += -DNO_SUPPORT_EFI
|
|
50 $(ARM_BLD)LIBEFI =
|
|
51
|
|
52 $(LIBPROG): $(OBJS)
|
|
53 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
|
|
54 $(POST_PROCESS)
|
|
55
|
|
56 lint: lint_SRCS
|
|
57
|
|
58 clean:
|
|
59 -$(RM) $(OBJS)
|
|
60
|
|
61 $(ROOTUSRSBIN)/$(LIBPROG):
|
|
62 -$(RM) $@; $(SYMLINK) $(LINKVALUE) $@
|
|
63
|
|
64 # for messaging catalog
|
|
65 #
|
|
66 POFILE= newfs.po
|
|
67
|
|
68 catalog: $(POFILE)
|
|
69
|
|
70 $(POFILE): $(SRCS)
|
|
71 $(RM) $@
|
|
72 $(COMPILE.cpp) $(SRCS) > $(POFILE).i
|
|
73 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
|
|
74 sed "/^domain/d" messages.po > $@
|
|
75 $(RM) $(POFILE).i messages.po
|