summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 12ebf1a014288b198aab78039a1d6c4c31890bf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
###########################################################################
## Copyright (C) 2008 Tavian Barnes <tavianator@gmail.com>               ##
##                                                                       ##
## This file is part of The FPFD Library Build Suite.                    ##
##                                                                       ##
## The FPFD Library Build Suite is free software; you can redistribute   ##
## it and/or modify it under the terms of the GNU General Public License ##
## as published by the Free Software Foundation; either version 3 of the ##
## License, or (at your option) any later version.                       ##
##                                                                       ##
## The FPFD Library Build Suite is distributed in the hope that it will  ##
## be useful, but WITHOUT ANY WARRANTY; without even the implied         ##
## warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See ##
## the GNU General Public License for more details.                      ##
##                                                                       ##
## You should have received a copy of the GNU General Public License     ##
## along with this program.  If not, see <http://www.gnu.org/licenses/>. ##
###########################################################################

lib_LTLIBRARIES = libsandglass.la

nobase_include_HEADERS = sandglass.h

libsandglass_la_SOURCES    = sandglass.h                                       \
                             sandglass-impl.h                                  \
                             sandglass.c                                       \
                             timespec.c

if TSC
  libsandglass_la_SOURCES += tsc.c
endif

if X86
  libsandglass_la_SOURCES += x86/tsc-x86.s
endif

if X86_64
  libsandglass_la_SOURCES += x86_64/tsc-x86_64.s
endif

libsandglass_la_LDFLAGS    = -version-info 2:0:0
libsandglass_la_LIBADD     = -lrt

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsandglass.pc