Code

Added missing includes identified by strict standard checks.
[libjunos.git] / src / Makefile.am
1 AM_CFLAGS = @STRICT_CFLAGS@
3 include_HEADERS = junos.h libjunos_features.h
4 lib_LTLIBRARIES = libjunos.la
6 BUILT_SOURCES = libjunos_features.h
8 libjunos_la_SOURCES = junos.c junos.h \
9                 libjunos_features.h \
10                 access_ssh.c \
11                 netrc.c \
12                 strbuf.c
13 libjunos_la_CFLAGS = $(AM_CFLAGS) \
14                 @LIBSSH2_CFLAGS@ \
15                 @LIBXML2_CFLAGS@
16 libjunos_la_LDFLAGS = $(AM_LDFLAGS) -version-info 0:0:0 \
17                 @LIBSSH2_LIBS@ \
18                 @LIBXML2_LIBS@
20 bin_PROGRAMS = junosc
22 junosc_SOURCES = junosc.c junos.h
23 junosc_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\""
24 junosc_LDADD = libjunos.la
26 libjunos_features.h: libjunos_features.h.in ../version
27         source ../version; sed \
28             -e "s/@LIBJUNOS_VERSION_MAJOR@/$$VERSION_MAJOR/g" \
29             -e "s/@LIBJUNOS_VERSION_MINOR@/$$VERSION_MINOR/g" \
30             -e "s/@LIBJUNOS_VERSION_PATCH@/$$VERSION_PATCH/g" \
31             -e "s/@LIBJUNOS_VERSION_EXTRA@/$$VERSION_EXTRA/g" \
32             -e "s/@LIBJUNOS_VERSION_STRING@/$$VERSION_STRING/g" \
33             libjunos_features.h.in > libjunos_features.h
35 .PHONY: FORCE