File: Makefile.am

package info (click to toggle)
openfortivpn 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 448 kB
  • sloc: ansic: 4,645; sh: 105; makefile: 39; python: 23
file content (36 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# http://mij.oltrelinux.com/devel/autoconf-automake/

bin_PROGRAMS = openfortivpn
openfortivpn_SOURCES = src/config.c src/config.h src/hdlc.c src/hdlc.h \
		       src/http.c src/http.h src/io.c src/io.h src/ipv4.c \
		       src/ipv4.h src/log.c src/log.h src/tunnel.c \
		       src/tunnel.h src/main.c src/ssl.h src/xml.c \
		       src/xml.h src/userinput.c src/userinput.h
openfortivpn_CFLAGS = -Wall --pedantic -std=gnu99
openfortivpn_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" \
			-DPPP_PATH=\"@PPP_PATH@\" \
			-DNETSTAT_PATH=\"@NETSTAT_PATH@\"

openfortivpn_CPPFLAGS += $(OPENSSL_CFLAGS) $(LIBSYSTEMD_CFLAGS)
openfortivpn_LDADD = $(OPENSSL_LIBS) $(LIBSYSTEMD_LIBS)

DISTCHECK_CONFIGURE_FLAGS = CFLAGS=-Werror

confdir=$(sysconfdir)/openfortivpn
datadir=$(prefix)/share/openfortivpn
data_DATA=etc/openfortivpn/config.template

install-data-hook:
	chmod 0600 $(DESTDIR)$(datadir)/config.template ; \
	if ! test -e $(DESTDIR)$(sysconfdir)/openfortivpn/config ; then \
		mkdir -p $(DESTDIR)$(sysconfdir)/openfortivpn ; \
		cp -a $(DESTDIR)$(datadir)/config.template \
			 $(DESTDIR)$(sysconfdir)/openfortivpn/config ; \
	fi

dist_man_MANS = doc/openfortivpn.1

doc/openfortivpn.1: $(srcdir)/doc/openfortivpn.1.in
	mkdir -p doc; sed -e 's|[@]SYSCONFDIR[@]|$(sysconfdir)|g;s|[@]DATADIR[@]|$(datadir)|g;' $(srcdir)/doc/openfortivpn.1.in >$@

EXTRA_DIST = LICENSE README.md doc/openfortivpn.1.in $(data_DATA)