summaryrefslogtreecommitdiff
path: root/genqrcode/Makefile.am
blob: d631b6dfe68ea18b2e46412c6792b601757ece41 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS=-I m4

SUBDIRS = .

if BUILD_TESTS
SUBDIRS += tests
endif

lib_LTLIBRARIES = libqrencode.la

libqrencode_la_SOURCES = qrencode.c qrencode_inner.h \
						 qrinput.c qrinput.h \
						 bitstream.c bitstream.h \
						 qrspec.c qrspec.h \
						 rsecc.c rsecc.h \
						 split.c split.h \
						 mask.c mask.h \
						 mqrspec.c mqrspec.h \
						 mmask.c mmask.h

libqrencode_la_LDFLAGS = -version-number $(MAJOR_VERSION):$(MINOR_VERSION):$(MICRO_VERSION)

include_HEADERS = qrencode.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libqrencode.pc
noinst_DATA = README
README_markdown_optional := $(wildcard README.md)
README: $(README_markdown_optional)
	    $(if $(README_markdown_optional), ./makeREADME.sh)

EXTRA_DIST = libqrencode.pc.in autogen.sh configure.ac acinclude.m4 \
			 Makefile.am tests/Makefile.am \
			 qrencode.1.in Doxyfile \
			 CMakeLists.txt cmake/FindIconv.cmake 

if BUILD_TOOLS
bin_PROGRAMS = qrencode
qrencode_SOURCES = qrenc.c
qrencode_CFLAGS = $(png_CFLAGS)
qrencode_LDADD = libqrencode.la $(png_LIBS)
man1_MANS = qrencode.1
endif

if MINGW
libqrencode_la_LDFLAGS += -no-undefined -avoid-version -Wl,--nxcompat -Wl,--dynamicbase
endif