mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:03:36 +03:00
src/Makefile.am: build static lib for unit tests if enabled
This commit is contained in:
parent
2de20dd9a1
commit
683f2b8323
3 changed files with 21 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
|||
-I$(top_srcdir)/include \
|
||||
-I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/tests/libtest \
|
||||
-I$(top_builddir)/ares \
|
||||
-I$(top_srcdir)/ares
|
||||
|
|
@ -49,6 +50,7 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
|||
-I$(top_srcdir)/include \
|
||||
-I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/tests/libtest
|
||||
endif
|
||||
|
||||
|
|
@ -57,8 +59,13 @@ EXTRA_DIST = Makefile.inc
|
|||
# Prevent LIBS from being used for all link targets
|
||||
LIBS = $(BLANK_AT_MAKETIME)
|
||||
|
||||
LDADD = $(top_builddir)/lib/libcurlu.la @LDFLAGS@ @LIBCURL_LIBS@
|
||||
DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
|
||||
LDADD = $(top_builddir)/src/libcurltool.la \
|
||||
$(top_builddir)/lib/libcurlu.la \
|
||||
@LDFLAGS@ @LIBCURL_LIBS@
|
||||
|
||||
DEPENDENCIES = $(top_builddir)/src/libcurltool.la \
|
||||
$(top_builddir)/lib/libcurlu.la
|
||||
|
||||
AM_CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
|
||||
|
||||
# Makefile.inc provides neat definitions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue