Makefile revision c26dc428cee0f025b14a5ad03a7722f2a52f8383
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER START
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# The contents of this file are subject to the terms of the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Common Development and Distribution License (the "License").
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You may not use this file except in compliance with the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b2bd54c98edb185a3985410367754ab33217362bnicholes# or http://www.opensolaris.org/os/licensing.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# See the License for the specific language governing permissions
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and limitations under the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# When distributing Covered Code, include this CDDL HEADER in each
9b2bd54c98edb185a3985410367754ab33217362bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If applicable, add the following below this CDDL HEADER, with the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
9b2bd54c98edb185a3985410367754ab33217362bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER END
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Use is subject to license terms.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesHDRS = libfdisk.h
9b2bd54c98edb185a3985410367754ab33217362bnicholesROOTHDRDIR= $(ROOT)/usr/include
9b2bd54c98edb185a3985410367754ab33217362bnicholesROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCHECKDIRS= $(HDRS:%.h=%.check)
9b2bd54c98edb185a3985410367754ab33217362bnicholesHDRDIR = ./
be06f010941d039a422f1bbd7e321a1a0e92e291bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(ROOTHDRDIR)/%: %
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(INS.file)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesall := TARGET = all
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall_h:= TARGET = install_h
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall_h: $(ROOTHDRS)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesLIBRARY= libfdisk.a
9b2bd54c98edb185a3985410367754ab33217362bnicholesVERS= .1
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesPICS= pics/libfdisk.o
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholespics/%.o: %.c
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(COMPILE.c) -o $@ $<
9b2bd54c98edb185a3985410367754ab33217362bnicholes $(POST_PROCESS_O)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesOBJECTS= \
9b2bd54c98edb185a3985410367754ab33217362bnicholeslibfdisk.o
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# include library definitions
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../Makefile.lib
be06f010941d039a422f1bbd7e321a1a0e92e291bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# install this library in the root filesystem
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../Makefile.rootfs
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesSRCDIR = .
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesC99MODE= $(C99_DISABLE)
be06f010941d039a422f1bbd7e321a1a0e92e291bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesMAPFILES += mapfile-vers
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCPPFLAGS += -I.
9b2bd54c98edb185a3985410367754ab33217362bnicholesLDLIBS += -lc
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesi386_CFLAGS += -D_LARGEFILE64_SOURCE
be06f010941d039a422f1bbd7e321a1a0e92e291bnicholesi386_CFLAGS += -D_FILE_OFFSET_BITS=64
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes.KEEP_STATE:
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesLIBS= $(DYNLIB) $(LINTLIB)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesall: $(LIBS)
be06f010941d039a422f1bbd7e321a1a0e92e291bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholeslint: lintcheck
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# include library targets
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../Makefile.targ
9b2bd54c98edb185a3985410367754ab33217362bnicholes