From 2294d3f4b7b3a65d16241c701d3b0fc93dea7e26 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 26 Sep 2013 12:29:34 +0200 Subject: Clean up and update build system files --- src/Makefile.am | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index ae0b2d5..4316454 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,11 +1,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -AM_CFLAGS = $(LIBIRECOVERY_CFLAGS) -AM_LDFLAGS = $(LIBIRECOVERY_LDFLAGS) -AM_LIBS = $(LIBIRECOVERY_LIBS) +AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusb_CFLAGS) +AM_LDFLAGS = $(libusb_LIBS) $(LIBIRECOVERYLDFLAGS) lib_LTLIBRARIES = libirecovery.la -libirecovery_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIRECOVERY_SO_VERSION) -no-undefined $(AM_LIBS) -libirecovery_la_SOURCES = \ - libirecovery.c +libirecovery_la_CFLAGS = $(AM_CFLAGS) +libirecovery_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIRECOVERY_SO_VERSION) -no-undefined +libirecovery_la_SOURCES = libirecovery.c +if WIN32 +libirecovery_la_LDFLAGS += -avoid-version +endif \ No newline at end of file -- cgit v1.1-32-gdbae