Makefile revision 5680
6322N/A#
6322N/A# CDDL HEADER START
6322N/A#
6322N/A# The contents of this file are subject to the terms of the
6322N/A# Common Development and Distribution License (the "License").
6322N/A# You may not use this file except in compliance with the License.
6322N/A#
6322N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6322N/A# or http://www.opensolaris.org/os/licensing.
6322N/A# See the License for the specific language governing permissions
6322N/A# and limitations under the License.
6322N/A#
6322N/A# When distributing Covered Code, include this CDDL HEADER in each
6322N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6322N/A# If applicable, add the following below this CDDL HEADER, with the
6322N/A# fields enclosed by brackets "[]" replaced with your own identifying
6322N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6322N/A#
6322N/A# CDDL HEADER END
6322N/A#
6322N/A
6322N/A#
6322N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6322N/A#
6322N/A
6322N/ALIBNAME = libusb.so.1
6322N/A
6322N/Aall: $(LIBNAME)
6322N/A
6322N/Ainclude ../../../../../make-rules/shared-macros.mk
6322N/A
6322N/ASRCS = wr_libusb.c
6322N/AOBJS = $(SRCS:%.c=%.o)
6322N/A
6322N/ATEST = testlibusb
6322N/A
6322N/AMAPFILES = libusb.mapfile
6322N/A
6322N/ACFLAGS += $(CC_PIC)
6322N/ACFLAGS += -I.
6322N/ACFLAGS += -D_REENTRANT -D_TS_ERRNO
6322N/ALDFLAGS += $(MAPFILES:%=-M %)
6322N/ALIBS += -ldl -lc
6322N/A
6322N/A$(LIBNAME): $(OBJS)
6322N/A $(LD) $(LDFLAGS) -G -h $@ -o $@ $(OBJS) $(LIBS)
6322N/A
6572N/Ainstall: $(LIBNAME)
6572N/A
6572N/A$(TEST): $(TEST:%=%.o)
6322N/A $(CC) -o $@ $< -lusb
6322N/A
6322N/Acheck: all $(TEST)
6322N/A LD_LIBRARY_PATH=. ./$(TEST)
6322N/A
6322N/Aclean:
6322N/A $(RM) $(TEST) $(LIBNAME) *.o
6322N/A