components/libusb/ugen/src/Makefile
changeset 229 1fd565334dfc
child 1394 5f86498eee95
equal deleted inserted replaced
228:491af2bffe0f 229:1fd565334dfc
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 include ../../../../../make-rules/shared-macros.mk
       
    25 
       
    26 LIBNAME =	libusbugen.so.1
       
    27 SRCS =		libusbugen.c
       
    28 OBJS =		$(SRCS:%.c=%.o)
       
    29 
       
    30 MAPFILES =	libusbugen.mapfile
       
    31 
       
    32 CFLAGS +=	$(CC_PIC)
       
    33 CFLAGS +=	-I.
       
    34 CFLAGS +=	-D_REENTRANT -D_TS_ERRNO
       
    35 LDFLAGS +=	$(MAPFILES:%=-M %)
       
    36 LIBS +=		-ldl -lc
       
    37 
       
    38 all:	$(LIBNAME)
       
    39 
       
    40 $(LIBNAME):	$(OBJS)
       
    41 	$(LD) $(LDFLAGS) -G -h $@ -o $@ $(OBJS) $(LIBS)
       
    42 
       
    43 install:	$(LIBNAME)
       
    44 
       
    45 clean:
       
    46 	$(RM) $(TEST) $(LIBNAME) *.o