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# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26FSTYPE= udfs 27LIBPROG= labelit 28SRCS= labelit.c ud_lib.c 29ATTMK= $(LIBPROG) 30 31include ../../Makefile.fstype 32 33LDLIBS += -ladm 34CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 35 36LINTFLAGS += -xerroff=E_STATIC_UNUSED 37LINTFLAGS64 += -xerroff=E_STATIC_UNUSED 38 39CERRWARN += -_gcc=-Wno-unused-function 40CERRWARN += -_gcc=-Wno-uninitialized 41 42labelit : labelit.o ud_lib.o 43 $(LINK.c) -o $@ labelit.o ud_lib.o $(LDLIBS) 44 $(POST_PROCESS) 45 46labelit.o : labelit.c ud_lib.h 47 48ud_lib.o : ud_lib.c ud_lib.h 49 50ud_lib.h : ../fstyp/ud_lib.h 51 rm -f ud_lib.h 52 cp ../fstyp/ud_lib.h ud_lib.h 53 54ud_lib.c : ../fstyp/ud_lib.c 55 rm -f ud_lib.c 56 cp ../fstyp/ud_lib.c ud_lib.c 57 58# for messaging catalog 59# 60POFILE= labelit.po 61 62# for messaging catalog 63# 64catalog: $(POFILE) 65 66$(POFILE): $(SRCS) 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 72 73clean : 74 rm -f labelit.o ud_lib.o 75 rm -f ud_lib.c ud_lib.h 76 77lint: 78 rm -f ud_lib.h 79 cp ../fstyp/ud_lib.h ud_lib.h 80 cp ../fstyp/ud_lib.c ud_lib.c 81 $(LINT.c) -mu $(SRCS) 82 83putback: 84 -cstyle -p labelit.c 85 -keywords labelit.c 86 -keywords Makefile 87