summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdrm_omap
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libdrm_omap')
-rw-r--r--usr/src/lib/libdrm_omap/Makefile82
-rw-r--r--usr/src/lib/libdrm_omap/Makefile.com60
-rw-r--r--usr/src/lib/libdrm_omap/amd64/Makefile21
-rw-r--r--usr/src/lib/libdrm_omap/i386/Makefile20
4 files changed, 183 insertions, 0 deletions
diff --git a/usr/src/lib/libdrm_omap/Makefile b/usr/src/lib/libdrm_omap/Makefile
new file mode 100644
index 0000000..658c199
--- /dev/null
+++ b/usr/src/lib/libdrm_omap/Makefile
@@ -0,0 +1,82 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+#
+
+# include library definitions
+include ../Makefile.lib
+
+include $(SRC)/common/libdrm/Makefile.drm
+
+SUBDIRS = $(MACH)
+$(BUILD64)SUBDIRS += $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+lint := TARGET= lint
+
+DRM_HDRS= \
+ omap_drmif.h
+
+OMAP_HDRS= \
+ omap_drm.h
+
+ROOT_DRM_HDRS= $(DRM_HDRS:%=$(ROOTHDRDIR)/libdrm/%)
+ROOT_OMAP_HDRS= $(OMAP_HDRS:%=$(ROOTHDRDIR)/omap/%)
+
+.KEEP_STATE:
+
+install: all .WAIT $(SUBDIRS)
+
+all clean clobber lint: $(SUBDIRS)
+
+install_h: $(ROOT_DRM_HDRS) $(ROOT_OMAP_HDRS)
+
+# need to mkdir...
+$(ROOT_OMAP_HDRS) : $(ROOTHDRDIR)/omap
+$(ROOTHDRDIR)/omap :
+ $(INS.dir) $@
+
+check: $(CHECKHDRS)
+
+_msg: # no msgfiles here
+
+$(POFILE): pofile_MSGFILES
+
+# install rules for install_h target
+$(ROOTHDRDIR)/libdrm/%: $(LIBDRM_CMN_DIR)/omap/%
+ $(INS.file)
+
+$(ROOTHDRDIR)/omap/%: $(LIBDRM_CMN_DIR)/omap/%
+ $(INS.file)
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libdrm_omap/Makefile.com b/usr/src/lib/libdrm_omap/Makefile.com
new file mode 100644
index 0000000..46f17e4
--- /dev/null
+++ b/usr/src/lib/libdrm_omap/Makefile.com
@@ -0,0 +1,60 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+#
+
+LIBRARY= libdrm_omap.a
+VERS= .1
+
+# See common/libdrm/libdrm-*/omap/Makefile.in am__objects
+OBJECTS= \
+ omap_drm.o
+
+include ../../Makefile.lib
+include $(SRC)/common/libdrm/Makefile.drm
+
+LIBS = $(DYNLIB)
+PCS = $(LIBRARY:.a=.pc)
+
+MAPFILES=
+SRCDIR = $(LIBDRM_CMN_DIR)/omap
+SRCS = $(OBJECTS:%.o=$(SRCDIR)/%.c)
+
+CPPFLAGS += -I$(LIBDRM_CMN_DIR)/omap
+CPPFLAGS += -I$(LIBDRM_CMN_DIR)
+
+LDLIBS32 += -L$(ROOT)/usr/lib/xorg
+LDLIBS64 += -L$(ROOT)/usr/lib/xorg/$(MACH64)
+
+LDLIBS += -lpciaccess -ldrm -lc
+
+all : $(LIBS) $(PCS)
+
+lint :
+
+include ../../libdrm/Makefile.pc
+include ../../Makefile.targ
+
+.KEEP_STATE:
diff --git a/usr/src/lib/libdrm_omap/amd64/Makefile b/usr/src/lib/libdrm_omap/amd64/Makefile
new file mode 100644
index 0000000..547a7b3
--- /dev/null
+++ b/usr/src/lib/libdrm_omap/amd64/Makefile
@@ -0,0 +1,21 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+#
+
+include ../Makefile.com
+include ../../Makefile.lib.64
+
+DYNFLAGS += -R/usr/lib/xorg/$(MACH64)
+
+install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTPCS64)
diff --git a/usr/src/lib/libdrm_omap/i386/Makefile b/usr/src/lib/libdrm_omap/i386/Makefile
new file mode 100644
index 0000000..248b5e0
--- /dev/null
+++ b/usr/src/lib/libdrm_omap/i386/Makefile
@@ -0,0 +1,20 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+#
+
+include ../Makefile.com
+
+DYNFLAGS += -R/usr/lib/xorg
+
+install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTPCS)