apply Jeff's link-following change
[iwhd.git] / Makefile.am
blob60dce9a0dad209814a950e0d4a5bc91589d1c0b0
1 # Copyright (C) 2010 Red Hat, Inc.
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 AM_CFLAGS = -W -Wall -Wextra -Wno-unused -Wformat-security \
17   -Wp,-D_FORTIFY_SOURCE=2 -O2 -fdiagnostics-show-option
19 AM_CPPFLAGS     = -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
21 iwhd_YFLAGS = -d
23 SUBDIRS = t
24 ACLOCAL_AMFLAGS = -I ax
26 bin_PROGRAMS = iwhd
27 EXTRA_DIST = iwhd-qparser.h
28 BUILT_SOURCES = iwhd-qparser.h qlexer.c
30 # iwhd is short for Image WareHouse Daemon.
32 iwhd_SOURCES = \
33   auto.c        \
34   backend.c     \
35   backend.h     \
36   iwh.h         \
37   meta.cpp      \
38   meta.h        \
39   mpipe.c       \
40   mpipe.h       \
41   replica.c     \
42   replica.h     \
43   qparser.y     \
44   query.h       \
45   rest.c        \
46   setup.c       \
47   setup.h       \
48   state_defs.h  \
49   template.c    \
50   template.h
52 EXTRA_iwhd_SOURCES = qlexer.l
54 iwhd_CPPFLAGS   = $(HAIL_CFLAGS)
55 iwhd_LDADD =            \
56   -lmongoclient         \
57   $(BOOST_SYSTEM_LIB)   \
58   $(BOOST_THREAD_LIB)   \
59   $(CRYPTO_LIB)         \
60   $(CURL_LIB)           \
61   $(JANSSON_LIB)        \
62   $(UHTTPD_LIB)         \
63   $(PTHREAD_LIB)        \
64   $(XML2_LIB)           \
65   $(GLIB2_LIB)          \
66   $(HAIL_LIBS)
68 MOSTLYCLEANFILES = qlexer.c
69 MAINTAINERCLEANFILES = qlexer.c
70 EXTRA_DIST += qlexer.c