xref: /potrace-1.14/src/Makefile.am (revision b3fce824)
1## Copyright (C) 2001-2017 Peter Selinger.
2## This file is part of Potrace. It is free software and it is covered
3## by the GNU General Public License. See the file COPYING for details.
4
5## Process this file with automake to produce Makefile.in
6
7AM_CFLAGS = $(CADD)
8
9#----------------------------------------------------------------------
10# programs:
11
12bin_PROGRAMS = potrace mkbitmap
13EXTRA_PROGRAMS = potracelib_demo
14
15potrace_SOURCES = main.c main.h bitmap_io.c bitmap_io.h backend_eps.c	\
16 backend_eps.h flate.c flate.h lists.h greymap.c greymap.h render.c	\
17 render.h backend_pgm.c backend_pgm.h backend_svg.c backend_svg.h	\
18 backend_xfig.c backend_xfig.h backend_dxf.c backend_dxf.h		\
19 backend_pdf.c backend_pdf.h backend_geojson.c backend_geojson.h	\
20 lzw.c lzw.h bitops.h auxiliary.h potracelib.h bitmap.h curve.h		\
21 platform.h progress.h progress_bar.c progress_bar.h bbox.c bbox.h	\
22 trans.c trans.h
23potrace_LDADD = libpotrace.la @EXTRA_OBJS@ -lm @EXTRA_LIBS@
24potrace_DEPENDENCIES = libpotrace.la @EXTRA_OBJS@
25
26mkbitmap_SOURCES = mkbitmap.c bitmap_io.c bitmap_io.h greymap.c	\
27 greymap.h platform.h bitmap.h potracelib.h bitops.h
28mkbitmap_LDADD = @EXTRA_OBJS@ -lm
29mkbitmap_DEPENDENCIES = @EXTRA_OBJS@
30
31potracelib_demo_SOURCES = potracelib_demo.c
32potracelib_demo_LDADD = libpotrace.la -lm
33potracelib_demo_DEPENDENCIES = libpotrace.la
34
35#----------------------------------------------------------------------
36# Potrace library:
37
38libsources = curve.c curve.h trace.c trace.h decompose.c		\
39 decompose.h potracelib.c potracelib.h lists.h auxiliary.h bitmap.h	\
40 progress.h
41
42lib_LTLIBRARIES = $(INSTLIBS)
43EXTRA_LTLIBRARIES = libpotrace.la
44libpotrace_la_SOURCES = $(libsources)
45libpotrace_la_LDFLAGS = -version-info 0:4:0 -rpath '$(libdir)' \
46 -export-symbols $(srcdir)/libpotrace-export.sym -no-undefined
47libpotrace_la_LIBADD = -lm
48MOSTLYCLEANFILES = libpotrace.la
49
50# header files to install
51include_HEADERS = $(INSTHEADERS)
52EXTRA_HEADERS = potracelib.h
53
54#----------------------------------------------------------------------
55# other stuff to distribute
56
57EXTRA_DIST = getopt.c getopt1.c getopt.h libpotrace-export.sym
58