blob: a6af89c5ef9bdfb10ba7fa1411beb3138da604e4 [file] [log] [blame]
Dennis Kempinbf37f5d2012-06-14 18:44:07 -07001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4include common.mk
5
Dennis Kempin107779a2012-06-15 16:27:12 -07006CFLAGS += -std=gnu99 -fvisibility=default
Dennis Kempinbf37f5d2012-06-14 18:44:07 -07007CPPFLAGS += -I$(SRC)/include
8
9CC_LIBRARY(src/libevdev.so.0): src/libevdev.o \
10 src/libevdev_mt.o \
11 src/libevdev_event.o
12
Dennis Kempin107779a2012-06-15 16:27:12 -070013CC_LIBRARY(src/libevdev_hollow.so.0): src/libevdev_mt.o \
14 src/libevdev_event.o
15
16install-lib: CC_LIBRARY(src/libevdev.so.0) CC_LIBRARY(src/libevdev_hollow.so.0)
Dennis Kempinbf37f5d2012-06-14 18:44:07 -070017 install -D -m 0755 src/libevdev.so.0 $(DESTDIR)$(LIBDIR)/libevdev.so.0
Dennis Kempin107779a2012-06-15 16:27:12 -070018 ln -f -s libevdev.so.0 $(DESTDIR)$(LIBDIR)/libevdev.so
19
20 install -D -m 0755 src/libevdev_hollow.so.0 \
21 $(DESTDIR)$(LIBDIR)/libevdev_hollow.so.0
22 ln -f -s libevdev_hollow.so.0 $(DESTDIR)$(LIBDIR)/libevdev_hollow.so