Makefile.targ revision a799b1e741b6f59012a469e6b57c40cb8061127b
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# CDDL HEADER START
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# The contents of this file are subject to the terms of the
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Common Development and Distribution License (the "License").
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# You may not use this file except in compliance with the License.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# See the License for the specific language governing permissions
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# and limitations under the License.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# When distributing Covered Code, include this CDDL HEADER in each
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# If applicable, add the following below this CDDL HEADER, with the
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# fields enclosed by brackets "[]" replaced with your own identifying
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# information: Portions Copyright [yyyy] [name of copyright owner]
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# CDDL HEADER END
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Use is subject to license terms.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangPROG= $(SRCS:%.c=%)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangOBJS= $(SRCS:%.c=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangLINTFILE= $(SRCS:%.c=%.ln)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangPOFILES= $(SRCS:%.c=%.po)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangHDRDIR=../common
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangSRCDIR=../common
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangROOTHDRS= $(HDRS:%=$(ROOTUSRINCLDFWFLASH)/%)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangHDRSRCS= $(HDRS:%=$(HDRDIR)/%)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangCHECKHDRS= $(HDRSRCS:%.h=%.check)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(ROOTUSRSBIN)/$(PROG) := FILEMODE = 0555
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(ROOTUSRINCLDFWFLASH)/%.h := FILEMODE = 0644
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangCFLAGS += -D_POSIX_PTHREAD_SEMANTICS
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangLDLIBS += -ldevinfo -lumem -lscf
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(ROOTUSRINCLDFWFLASH)/%: $(HDRDIR)/%
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(PROG): install_h $(OBJS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDFLAGS) $(LDLIBS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(POST_PROCESS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang%.o: $(SRCDIR)/%.c
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(COMPILE.c) $(CFLAGS) -o $@ $<
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(RM) $(POFILE) $(POFILES) $(LINTFILE) $(PROG)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangclobber: clean
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(RM) $(OBJS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangcheck: $(CHECKHDRS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginstall: all $(ROOTUSRSBIN) $(ROOTUSRSBIN)/$(PROG)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginstall_h:$(ROOTUSRINCLDFWFLASH) $(ROOTHDRS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanglint: $(LINTFILE)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang_msg msg: $(POFILE)