# Copyright (C) 2007-2009 Stefan Vigerske
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.

## $Id: Makefile.am 3099 2013-11-21 19:55:50Z stefan $

AUTOMAKE_OPTIONS = foreign

EXTRA_DIST = get.GLPK INSTALL.Glpk glpk.patch

lib_LTLIBRARIES = libcoinglpk.la

GLPKDIR = @GLPKDIR@

libcoinglpk_la_SOURCES = \
$(GLPKDIR)/src/glpapi01.c \
$(GLPKDIR)/src/glpapi02.c \
$(GLPKDIR)/src/glpapi03.c \
$(GLPKDIR)/src/glpapi04.c \
$(GLPKDIR)/src/glpapi05.c \
$(GLPKDIR)/src/glpapi06.c \
$(GLPKDIR)/src/glpapi07.c \
$(GLPKDIR)/src/glpapi08.c \
$(GLPKDIR)/src/glpapi09.c \
$(GLPKDIR)/src/glpapi10.c \
$(GLPKDIR)/src/glpapi11.c \
$(GLPKDIR)/src/glpapi12.c \
$(GLPKDIR)/src/glpapi13.c \
$(GLPKDIR)/src/glpapi14.c \
$(GLPKDIR)/src/glpapi15.c \
$(GLPKDIR)/src/glpapi16.c \
$(GLPKDIR)/src/glpapi17.c \
$(GLPKDIR)/src/glpapi18.c \
$(GLPKDIR)/src/glpapi19.c \
$(GLPKDIR)/src/glpapi20.c \
$(GLPKDIR)/src/glpapi21.c \
$(GLPKDIR)/src/glpavl.c \
$(GLPKDIR)/src/glpbfd.c \
$(GLPKDIR)/src/glpbfx.c \
$(GLPKDIR)/src/glpcpx.c \
$(GLPKDIR)/src/glpdmp.c \
$(GLPKDIR)/src/glpdmx.c \
$(GLPKDIR)/src/glpenv01.c \
$(GLPKDIR)/src/glpenv02.c \
$(GLPKDIR)/src/glpenv03.c \
$(GLPKDIR)/src/glpenv04.c \
$(GLPKDIR)/src/glpenv05.c \
$(GLPKDIR)/src/glpenv06.c \
$(GLPKDIR)/src/glpenv07.c \
$(GLPKDIR)/src/glpenv08.c \
$(GLPKDIR)/src/glpfhv.c \
$(GLPKDIR)/src/glpgmp.c \
$(GLPKDIR)/src/glphbm.c \
$(GLPKDIR)/src/glpini01.c \
$(GLPKDIR)/src/glpini02.c \
$(GLPKDIR)/src/glpios01.c \
$(GLPKDIR)/src/glpios02.c \
$(GLPKDIR)/src/glpios03.c \
$(GLPKDIR)/src/glpios04.c \
$(GLPKDIR)/src/glpios05.c \
$(GLPKDIR)/src/glpios06.c \
$(GLPKDIR)/src/glpios07.c \
$(GLPKDIR)/src/glpios08.c \
$(GLPKDIR)/src/glpios09.c \
$(GLPKDIR)/src/glpios10.c \
$(GLPKDIR)/src/glpios11.c \
$(GLPKDIR)/src/glpios12.c \
$(GLPKDIR)/src/glpipm.c \
$(GLPKDIR)/src/glplib01.c \
$(GLPKDIR)/src/glplib02.c \
$(GLPKDIR)/src/glplib03.c \
$(GLPKDIR)/src/glplpf.c \
$(GLPKDIR)/src/glplpx01.c \
$(GLPKDIR)/src/glplpx02.c \
$(GLPKDIR)/src/glplpx03.c \
$(GLPKDIR)/src/glpluf.c \
$(GLPKDIR)/src/glplux.c \
$(GLPKDIR)/src/glpmat.c \
$(GLPKDIR)/src/glpmpl01.c \
$(GLPKDIR)/src/glpmpl02.c \
$(GLPKDIR)/src/glpmpl03.c \
$(GLPKDIR)/src/glpmpl04.c \
$(GLPKDIR)/src/glpmpl05.c \
$(GLPKDIR)/src/glpmpl06.c \
$(GLPKDIR)/src/glpmps.c \
$(GLPKDIR)/src/glpnet01.c \
$(GLPKDIR)/src/glpnet02.c \
$(GLPKDIR)/src/glpnet03.c \
$(GLPKDIR)/src/glpnet04.c \
$(GLPKDIR)/src/glpnet05.c \
$(GLPKDIR)/src/glpnet06.c \
$(GLPKDIR)/src/glpnet07.c \
$(GLPKDIR)/src/glpnet08.c \
$(GLPKDIR)/src/glpnet09.c \
$(GLPKDIR)/src/glpnpp01.c \
$(GLPKDIR)/src/glpnpp02.c \
$(GLPKDIR)/src/glpnpp03.c \
$(GLPKDIR)/src/glpnpp04.c \
$(GLPKDIR)/src/glpnpp05.c \
$(GLPKDIR)/src/glpnpp06.c \
$(GLPKDIR)/src/glpqmd.c \
$(GLPKDIR)/src/glprgr.c \
$(GLPKDIR)/src/glprng01.c \
$(GLPKDIR)/src/glprng02.c \
$(GLPKDIR)/src/glpscf.c \
$(GLPKDIR)/src/glpscl.c \
$(GLPKDIR)/src/glpsdf.c \
$(GLPKDIR)/src/glpspm.c \
$(GLPKDIR)/src/glpspx01.c \
$(GLPKDIR)/src/glpspx02.c \
$(GLPKDIR)/src/glpsql.c \
$(GLPKDIR)/src/glpssx01.c \
$(GLPKDIR)/src/glpssx02.c \
$(GLPKDIR)/src/amd/amd_1.c \
$(GLPKDIR)/src/amd/amd_2.c \
$(GLPKDIR)/src/amd/amd_aat.c \
$(GLPKDIR)/src/amd/amd_control.c \
$(GLPKDIR)/src/amd/amd_defaults.c \
$(GLPKDIR)/src/amd/amd_dump.c \
$(GLPKDIR)/src/amd/amd_info.c \
$(GLPKDIR)/src/amd/amd_order.c \
$(GLPKDIR)/src/amd/amd_postorder.c \
$(GLPKDIR)/src/amd/amd_post_tree.c \
$(GLPKDIR)/src/amd/amd_preprocess.c \
$(GLPKDIR)/src/amd/amd_valid.c \
$(GLPKDIR)/src/colamd/colamd.c \
$(GLPKDIR)/src/minisat/minisat.c \
$(GLPKDIR)/src/zlib/adler32.c \
$(GLPKDIR)/src/zlib/compress.c \
$(GLPKDIR)/src/zlib/crc32.c \
$(GLPKDIR)/src/zlib/deflate.c \
$(GLPKDIR)/src/zlib/gzclose.c \
$(GLPKDIR)/src/zlib/gzlib.c \
$(GLPKDIR)/src/zlib/gzread.c \
$(GLPKDIR)/src/zlib/gzwrite.c \
$(GLPKDIR)/src/zlib/infback.c \
$(GLPKDIR)/src/zlib/inffast.c \
$(GLPKDIR)/src/zlib/inflate.c \
$(GLPKDIR)/src/zlib/inftrees.c \
$(GLPKDIR)/src/zlib/trees.c \
$(GLPKDIR)/src/zlib/uncompr.c \
$(GLPKDIR)/src/zlib/zio.c \
$(GLPKDIR)/src/zlib/zutil.c

DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`

AM_CPPFLAGS = \
  -I`$(CYGPATH_W) $(srcdir)/$(GLPKDIR)/src` \
  -I`$(CYGPATH_W) $(srcdir)/$(GLPKDIR)/src/amd` \
  -I`$(CYGPATH_W) $(srcdir)/$(GLPKDIR)/src/colamd` \
  -I`$(CYGPATH_W) $(srcdir)/$(GLPKDIR)/src/minisat` \
  -I$(GLPKDIR)

if DEPENDENCY_LINKING
libcoinglpk_la_LIBADD = $(GLPK_PCLIBS)
endif

libcoinglpk_la_LDFLAGS = $(LT_LDFLAGS)

thirdpartyincludedir = $(includedir)/coin/ThirdParty
thirdpartyinclude_HEADERS = $(GLPKDIR)/src/glpk.h $(GLPKDIR)/src/amd/amd.h

pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = coinglpk.pc

test:
	@echo "No test available for Glpk."

########################################################################
#                         Maintainer Stuff                             #
########################################################################

CLEANFILES =

# Files that are generated and should be cleaned with make distclean
DISTCLEANFILES = $(MAKEOKFILE)

include BuildTools/Makemain.inc
