xref: /titanic_51/usr/src/lib/libfdisk/i386/Makefile (revision aa1b14e7d68925d80eebf0ce8ed0b9cc55246546)
1*aa1b14e7SSheshadri Vasudevan#
2*aa1b14e7SSheshadri Vasudevan# CDDL HEADER START
3*aa1b14e7SSheshadri Vasudevan#
4*aa1b14e7SSheshadri Vasudevan# The contents of this file are subject to the terms of the
5*aa1b14e7SSheshadri Vasudevan# Common Development and Distribution License (the "License").
6*aa1b14e7SSheshadri Vasudevan# You may not use this file except in compliance with the License.
7*aa1b14e7SSheshadri Vasudevan#
8*aa1b14e7SSheshadri Vasudevan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*aa1b14e7SSheshadri Vasudevan# or http://www.opensolaris.org/os/licensing.
10*aa1b14e7SSheshadri Vasudevan# See the License for the specific language governing permissions
11*aa1b14e7SSheshadri Vasudevan# and limitations under the License.
12*aa1b14e7SSheshadri Vasudevan#
13*aa1b14e7SSheshadri Vasudevan# When distributing Covered Code, include this CDDL HEADER in each
14*aa1b14e7SSheshadri Vasudevan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*aa1b14e7SSheshadri Vasudevan# If applicable, add the following below this CDDL HEADER, with the
16*aa1b14e7SSheshadri Vasudevan# fields enclosed by brackets "[]" replaced with your own identifying
17*aa1b14e7SSheshadri Vasudevan# information: Portions Copyright [yyyy] [name of copyright owner]
18*aa1b14e7SSheshadri Vasudevan#
19*aa1b14e7SSheshadri Vasudevan# CDDL HEADER END
20*aa1b14e7SSheshadri Vasudevan#
21*aa1b14e7SSheshadri Vasudevan#
22*aa1b14e7SSheshadri Vasudevan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*aa1b14e7SSheshadri Vasudevan# Use is subject to license terms.
24*aa1b14e7SSheshadri Vasudevan#
25*aa1b14e7SSheshadri Vasudevan#
26*aa1b14e7SSheshadri Vasudevan
27*aa1b14e7SSheshadri VasudevanHDRS =          libfdisk.h
28*aa1b14e7SSheshadri VasudevanROOTHDRDIR=     $(ROOT)/usr/include
29*aa1b14e7SSheshadri VasudevanROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
30*aa1b14e7SSheshadri VasudevanCHECKDIRS=	$(HDRS:%.h=%.check)
31*aa1b14e7SSheshadri VasudevanHDRDIR =        ./
32*aa1b14e7SSheshadri Vasudevan
33*aa1b14e7SSheshadri Vasudevan$(ROOTHDRDIR)/%: %
34*aa1b14e7SSheshadri Vasudevan        $(INS.file)
35*aa1b14e7SSheshadri Vasudevan
36*aa1b14e7SSheshadri Vasudevanall :=		TARGET = all
37*aa1b14e7SSheshadri Vasudevaninstall_h:=	TARGET = install_h
38*aa1b14e7SSheshadri Vasudevan
39*aa1b14e7SSheshadri Vasudevaninstall_h: $(ROOTHDRS)
40*aa1b14e7SSheshadri Vasudevan
41*aa1b14e7SSheshadri VasudevanLIBRARY= libfdisk.a
42*aa1b14e7SSheshadri VasudevanVERS= .1
43*aa1b14e7SSheshadri Vasudevan
44*aa1b14e7SSheshadri VasudevanPICS=   pics/libfdisk.o
45*aa1b14e7SSheshadri Vasudevan
46*aa1b14e7SSheshadri Vasudevanpics/%.o: %.c
47*aa1b14e7SSheshadri Vasudevan	$(COMPILE.c) -o $@ $<
48*aa1b14e7SSheshadri Vasudevan	$(POST_PROCESS_O)
49*aa1b14e7SSheshadri Vasudevan
50*aa1b14e7SSheshadri VasudevanOBJECTS= \
51*aa1b14e7SSheshadri Vasudevanlibfdisk.o
52*aa1b14e7SSheshadri Vasudevan
53*aa1b14e7SSheshadri Vasudevan# include library definitions
54*aa1b14e7SSheshadri Vasudevaninclude ../../Makefile.lib
55*aa1b14e7SSheshadri Vasudevan
56*aa1b14e7SSheshadri Vasudevan# install this library in the root filesystem
57*aa1b14e7SSheshadri Vasudevaninclude ../../Makefile.rootfs
58*aa1b14e7SSheshadri Vasudevan
59*aa1b14e7SSheshadri VasudevanSRCDIR =	.
60*aa1b14e7SSheshadri Vasudevan
61*aa1b14e7SSheshadri VasudevanC99MODE=	$(C99_DISABLE)
62*aa1b14e7SSheshadri Vasudevan
63*aa1b14e7SSheshadri VasudevanMAPFILES += mapfile-vers
64*aa1b14e7SSheshadri Vasudevan
65*aa1b14e7SSheshadri VasudevanCPPFLAGS += -I.
66*aa1b14e7SSheshadri VasudevanLDLIBS += -lc
67*aa1b14e7SSheshadri Vasudevan
68*aa1b14e7SSheshadri Vasudevani386_CFLAGS += -D_LARGEFILE64_SOURCE
69*aa1b14e7SSheshadri Vasudevani386_CFLAGS += -D_FILE_OFFSET_BITS=64
70*aa1b14e7SSheshadri Vasudevan
71*aa1b14e7SSheshadri Vasudevan.KEEP_STATE:
72*aa1b14e7SSheshadri Vasudevan
73*aa1b14e7SSheshadri VasudevanLIBS=	$(DYNLIB) $(LINTLIB)
74*aa1b14e7SSheshadri Vasudevan
75*aa1b14e7SSheshadri Vasudevanall: $(LIBS)
76*aa1b14e7SSheshadri Vasudevan
77*aa1b14e7SSheshadri Vasudevanlint: lintcheck
78*aa1b14e7SSheshadri Vasudevan
79*aa1b14e7SSheshadri Vasudevaninstall: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
80*aa1b14e7SSheshadri Vasudevan
81*aa1b14e7SSheshadri Vasudevan
82*aa1b14e7SSheshadri Vasudevan# include library targets
83*aa1b14e7SSheshadri Vasudevaninclude ../../Makefile.targ
84