Makefile revision 7e7bd3dccbfe8f79e25e5c1554b5bc3a9aaca321
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa#
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa# CDDL HEADER START
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa#
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa# The contents of this file are subject to the terms of the
452917beccb615a9b87e602d53b66be2d1296c10Eugen Kuksa# Common Development and Distribution License (the "License").
08c6d1d6b43c2d652f7e1f40e5bb1dd1c0d81036Eugen Kuksa# You may not use this file except in compliance with the License.
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa#
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# or http://www.opensolaris.org/os/licensing.
452917beccb615a9b87e602d53b66be2d1296c10Eugen Kuksa# See the License for the specific language governing permissions
08c6d1d6b43c2d652f7e1f40e5bb1dd1c0d81036Eugen Kuksa# and limitations under the License.
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa#
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# When distributing Covered Code, include this CDDL HEADER in each
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
81da36894af70bbb8d8e24b004026ad4c5c1bc99Eugen Kuksa# If applicable, add the following below this CDDL HEADER, with the
81da36894af70bbb8d8e24b004026ad4c5c1bc99Eugen Kuksa# fields enclosed by brackets "[]" replaced with your own identifying
81da36894af70bbb8d8e24b004026ad4c5c1bc99Eugen Kuksa# information: Portions Copyright [yyyy] [name of copyright owner]
81da36894af70bbb8d8e24b004026ad4c5c1bc99Eugen Kuksa#
81da36894af70bbb8d8e24b004026ad4c5c1bc99Eugen Kuksa# CDDL HEADER END
452917beccb615a9b87e602d53b66be2d1296c10Eugen Kuksa#
08c6d1d6b43c2d652f7e1f40e5bb1dd1c0d81036Eugen Kuksa
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa#
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa# Use is subject to license terms.
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa#
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksa
0575355e90e95b4ad3b2907244139419df71b640henning muellerPROG= parted
82943dcc7f878756736a3f21a8100b389b94ba46Eugen Kuksa
a2b3d5bb602a9a0d970b6640948f1d7d75ce78bfEugen Kuksainclude ../Makefile.cmd
0575355e90e95b4ad3b2907244139419df71b640henning mueller
C99MODE= $(C99_ENABLE)
CERRWARN += -erroff=E_EXTERN_INLINE_UNDEFINED
CERRWARN += -erroff=E_ARG_INCOMPATIBLE_WITH_ARG
srcdir= .
CPPFLAGS += -I. \
-I../../lib/libparted/common/lib \
-I../../lib/libparted/common/include
ARFLAGS= cq
OBJS= command.o parted.o strlist.o table.o ui.o
SRCS= $(OBJS:%.o=$(srcdir)/%.c)
LDLIBS += ../../lib/libparted/i386/libparted.so.8
ROOTPROG= $(PROG:%=$(ROOTUSRSBIN)/%)
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTPROG)
clean:
$(RM) $(OBJS)
#
# This open source is exempted from lint
#
lint:
include ../Makefile.targ