modified: src1/input.c
[GalaxyCodeBases.git] / c_cpp / lib / htslib / config.mk.in
blob55da9c019efdc250810a5b03c5b134c6efdd692a
1 # Optional configure Makefile overrides for htslib.
3 # Copyright (C) 2015-2017 Genome Research Ltd.
5 # Author: John Marshall <jm18@sanger.ac.uk>
7 # Permission is hereby granted, free of charge, to any person obtaining a copy
8 # of this software and associated documentation files (the "Software"), to deal
9 # in the Software without restriction, including without limitation the rights
10 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 # copies of the Software, and to permit persons to whom the Software is
12 # furnished to do so, subject to the following conditions:
14 # The above copyright notice and this permission notice shall be included in
15 # all copies or substantial portions of the Software.
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 # DEALINGS IN THE SOFTWARE.
25 # This is @configure_input@
27 # If you use configure, this file overrides variables and augments rules
28 # in the Makefile to reflect your configuration choices. If you don't run
29 # configure, the main Makefile contains suitable conservative defaults.
31 prefix = @prefix@
32 exec_prefix = @exec_prefix@
33 bindir = @bindir@
34 includedir = @includedir@
35 libdir = @libdir@
36 libexecdir = @libexecdir@
37 datarootdir = @datarootdir@
38 mandir = @mandir@
40 CC = @CC@
41 RANLIB = @RANLIB@
43 CPPFLAGS = @CPPFLAGS@
44 CFLAGS = @CFLAGS@
45 LDFLAGS = @LDFLAGS@
46 LIBS = @LIBS@
48 PLATFORM = @PLATFORM@
49 PLUGIN_EXT = @PLUGIN_EXT@
51 # Lowercase here indicates these are "local" to config.mk
52 plugin_OBJS =
53 noplugin_LDFLAGS =
54 noplugin_LIBS =
56 # ifeq/.../endif, +=, and target-specific variables are GNU Make-specific.
57 # If you don't have GNU Make, comment out this conditional and note that
58 # to enable libcurl you will need to implement the following elsewhere.
59 ifeq "libcurl-@libcurl@" "libcurl-enabled"
61 LIBCURL_LIBS = -lcurl
63 plugin_OBJS += hfile_libcurl.o
65 hfile_libcurl$(PLUGIN_EXT): LIBS += $(LIBCURL_LIBS)
67 noplugin_LIBS += $(LIBCURL_LIBS)
69 endif
71 ifeq "gcs-@gcs@" "gcs-enabled"
72 plugin_OBJS += hfile_gcs.o
73 endif
75 ifeq "s3-@s3@" "s3-enabled"
76 plugin_OBJS += hfile_s3.o
78 CRYPTO_LIBS = @CRYPTO_LIBS@
79 noplugin_LIBS += $(CRYPTO_LIBS)
80 hfile_s3$(PLUGIN_EXT): LIBS += $(CRYPTO_LIBS)
81 endif
83 ifeq "plugins-@enable_plugins@" "plugins-yes"
85 plugindir = @plugindir@
86 pluginpath = @pluginpath@
88 LIBHTS_OBJS += plugin.o
89 PLUGIN_OBJS += $(plugin_OBJS)
91 plugin.o plugin.pico: CPPFLAGS += -DPLUGINPATH=\"$(pluginpath)\"
93 # When built as separate plugins, these record their version themselves.
94 hfile_gcs.o hfile_gcs.pico: version.h
95 hfile_libcurl.o hfile_libcurl.pico: version.h
96 hfile_s3.o hfile_s3.pico: version.h
98 # Windows DLL plugins depend on the import library, built as a byproduct.
99 $(plugin_OBJS:.o=.cygdll): cyghts-$(LIBHTS_SOVERSION).dll
101 else
103 LIBHTS_OBJS += $(plugin_OBJS)
104 LDFLAGS += $(noplugin_LDFLAGS)
105 LIBS += $(noplugin_LIBS)
107 endif