gst-plugins-bad: rename package and update to 1.24.12
[oi-userland.git] / components / library / libusb / ugen / src / Makefile
blobc3fec0efae38fcd60a6a8f7ec5a8495daf1654c8
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
24 include ../../../../../../make-rules/shared-macros.mk
26 LIBNAME = libusbugen.so.1
27 SRCS = libusbugen.c
28 OBJS = $(SRCS:%.c=%.o)
30 MAPFILES = libusbugen.mapfile
32 CFLAGS += $(CC_PIC)
33 CFLAGS += -I.
34 CFLAGS += -D_REENTRANT -D_TS_ERRNO
35 LDFLAGS += $(MAPFILES:%=-Wl,-M%)
36 LIBS += -ldl -lc
38 all: $(LIBNAME)
40 $(LIBNAME): $(OBJS)
41 $(CC) $(LDFLAGS) -shared -Wl,-h$@ -o $@ $(OBJS) $(LIBS)
43 install: $(LIBNAME)
45 clean:
46 $(RM) $(TEST) $(LIBNAME) *.o