android_external_minigbm/Makefile
Stéphane Marchesin 85afac436d Use libdir from the ebuild
Instead of overriding with our own, let's use the libdir passed down
from the ebuild.

BUG=none
TEST=emerge minigbm

Change-Id: Ic38fd538add6d4c85e502b9dc0feeabaa8378e2e
Reviewed-on: https://chromium-review.googlesource.com/218978
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
2014-09-19 02:31:33 +00:00

27 lines
677 B
Makefile

# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include common.mk
PC_DEPS = libdrm
PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS))
PC_LIBS := $(shell $(PKG_CONFIG) --libs $(PC_DEPS))
CPPFLAGS += -std=c99 -D_GNU_SOURCE=1
CFLAGS += -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align
CPPFLAGS += $(PC_CFLAGS)
LDLIBS += $(PC_LIBS)
LIBDIR ?= /usr/lib/
CC_LIBRARY(libgbm.so): $(C_OBJECTS)
all: CC_LIBRARY(libgbm.so)
clean: CLEAN(libgbm.so)
install: all
mkdir -p $(DESTDIR)/$(LIBDIR)
install -m 755 $(OUT)/libgbm.so $(DESTDIR)/$(LIBDIR)