From fb147c5f6570a971ae25d07c74f94f6d2fdcb130 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 17 Sep 2009 03:18:34 +0000 Subject: Add build system. --- src/Makefile.am | 32 ++++++++++++++++++++++++++++++++ src/sandglass.c | 1 + src/sandglass.h | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/Makefile.am create mode 100644 src/sandglass.c (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..4fc85ab --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,32 @@ +########################################################################### +## Copyright (C) 2008 Tavian Barnes ## +## ## +## 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 . ## +########################################################################### + +lib_LTLIBRARIES = libsandglass.la + +nobase_include_HEADERS = sandglass.h + +libsandglass_la_SOURCES = sandglass.h sandglass.c + +if X86 + libsandglass_la_SOURCES += x86/tsc-x86.s +endif + +if X86_64 + libsandglass_la_SOURCES += x86_64/tsc-x86_64.s +endif diff --git a/src/sandglass.c b/src/sandglass.c new file mode 100644 index 0000000..d547897 --- /dev/null +++ b/src/sandglass.c @@ -0,0 +1 @@ +#include "sandglass.h" diff --git a/src/sandglass.h b/src/sandglass.h index 412f5e3..a9e99e5 100644 --- a/src/sandglass.h +++ b/src/sandglass.h @@ -82,7 +82,7 @@ struct sandglass_attributes_t sandglass_incrementation_t incrementation; sandglass_resolution_t resolution; }; -typedef struct sandglass_attributes_t sandglass_attributes_t +typedef struct sandglass_attributes_t sandglass_attributes_t; struct sandglass_t { -- cgit v1.2.3