| 1 |
19 |
jeremybenn |
# Makefile.am -- automake configuration file for argtable2
|
| 2 |
|
|
#
|
| 3 |
|
|
# Copyright (C) 1998-2001,2003-2008 Stewart Heitmann
|
| 4 |
|
|
# Copyright (C) 1989-1994, 1996-1999,2001,2003 Free Software Foundation, Inc.
|
| 5 |
|
|
# Copyright (C) 2008 Embecosm Limited
|
| 6 |
|
|
#
|
| 7 |
|
|
# argtable was written by Stewart Heitmann
|
| 8 |
|
|
#
|
| 9 |
|
|
# This file is part of the argtable2 library, which in turn is part of the
|
| 10 |
|
|
# OpenRISC 1000 Architectural Simulator
|
| 11 |
|
|
#
|
| 12 |
|
|
# This program is free software; you can redistribute it and/or modify it
|
| 13 |
|
|
# under the terms of the GNU General Public License as published by the Free
|
| 14 |
|
|
# Software Foundation; either version 3 of the License, or (at your option)
|
| 15 |
|
|
# any later version.
|
| 16 |
|
|
#
|
| 17 |
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
| 18 |
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
| 19 |
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
| 20 |
|
|
# more details.
|
| 21 |
|
|
#
|
| 22 |
|
|
# You should have received a copy of the GNU General Public License along
|
| 23 |
|
|
# with this program. If not, see .
|
| 24 |
|
|
|
| 25 |
|
|
# This is the source sub-directory of argtable2. The header comment and the
|
| 26 |
|
|
# change to make the library and header non-installed were added by Jeremy
|
| 27 |
|
|
# Bennett to facilitate use in Or1ksim, the
|
| 28 |
|
|
# OpenRISC 1000 Architectural Simulator
|
| 29 |
|
|
|
| 30 |
|
|
noinst_LTLIBRARIES = libargtable2.la
|
| 31 |
|
|
|
| 32 |
|
|
libargtable2_la_SOURCES = argtable2.c arg_end.c arg_rem.c arg_lit.c arg_int.c arg_dbl.c \
|
| 33 |
|
|
arg_str.c arg_file.c
|
| 34 |
|
|
|
| 35 |
|
|
libargtable2_la_CFLAGS = $(DEBUGFLAGS)
|
| 36 |
|
|
|
| 37 |
|
|
#libtool library versioning uses current:revision:age where
|
| 38 |
|
|
# current = most recent interface number
|
| 39 |
|
|
# revision = minor version of current interface
|
| 40 |
|
|
# age = how many previous interfaces this version supports (first=current-age)
|
| 41 |
|
|
# argtable versions prior to 2.4 did not use libtool versions thus
|
| 42 |
|
|
# argtable-2.4 is 0:0:0
|
| 43 |
|
|
# argtable-2.5 is 1:0:1 (interface 1 is back-compatible with interface 0, ie:argtable-2.4)
|
| 44 |
|
|
# argtable-2.6 is 1:1:1 (this code is identical to argtable2-5)
|
| 45 |
|
|
# argtable-2.7 is 1:2:1 (some minor bug fixes, interface is unchanged)
|
| 46 |
|
|
# argtable-2.8 is 1:3:1 (some minor bug fixes, interface is unchanged)
|
| 47 |
|
|
# argtable-2.9 is 1:4:1 (makefile bug fix only, src code is identical to argtable-2.8)
|
| 48 |
|
|
libargtable2_la_LDFLAGS = -version-info 1:4:1
|
| 49 |
|
|
|
| 50 |
|
|
noinst_HEADERS = argtable2.h
|
| 51 |
|
|
|
| 52 |
|
|
# If the system provides getopt_long then we use it,
|
| 53 |
|
|
# otherwise we compile in the version supplied with argtable.
|
| 54 |
|
|
if !USE_SYS_GETOPTLONG
|
| 55 |
|
|
libargtable2_la_SOURCES += getopt.c getopt1.c getopt.h
|
| 56 |
|
|
endif
|
| 57 |
|
|
|
| 58 |
|
|
# If the system provides regex then we may compile arg_rex
|
| 59 |
|
|
# otherwise we must omit it.
|
| 60 |
|
|
if USE_ARGREX
|
| 61 |
|
|
libargtable2_la_SOURCES += arg_rex.c
|
| 62 |
|
|
endif
|
| 63 |
|
|
|
| 64 |
|
|
# If the system provides strptime then we may compile arg_date
|
| 65 |
|
|
# otherwise we must omit it.
|
| 66 |
|
|
if USE_ARGDATE
|
| 67 |
|
|
libargtable2_la_SOURCES += arg_date.c
|
| 68 |
|
|
endif
|
| 69 |
|
|
|
| 70 |
|
|
|