Commit e2d96342 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Use the defined external lib variables also when building the libs themselves.

parent d461cca1
......@@ -429,6 +429,7 @@ SOURCES = \
mimeole.idl \
minidumpapiset.h \
minmax.h \
minschannel.h \
mlang.idl \
mmc.idl \
mmddk.h \
......
EXTLIB = libfaudio.a
EXTRAINCL = -I$(srcdir)/include
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
EXTRADEFS = -DFAUDIO_WIN32_PLATFORM -DHAVE_WMADEC -DNDEBUG
C_SRCS = \
......
EXTLIB = libgsm.a
EXTRAINCL = -I$(srcdir)/inc
EXTRAINCL = $(GSM_PE_CFLAGS)
EXTRADEFS = -DWAV49
C_SRCS = \
......
EXTLIB = libjxr.a
EXTRAINCL = -I$(srcdir)/jxrgluelib -I$(srcdir)/image/sys -DDISABLE_PERF_MEASUREMENT
EXTRAINCL = $(JXR_PE_CFLAGS)
EXTRADEFS = -DDISABLE_PERF_MEASUREMENT
C_SRCS = \
image/decode/JXRTranscode.c \
......
EXTLIB = liblcms2.a
EXTRAINCL = -I$(srcdir)/include
EXTRAINCL = $(LCMS2_PE_CFLAGS)
C_SRCS = \
src/cmsalpha.c \
......
EXTLIB = libmpg123.a
EXTRAINCL = -I$(srcdir)/src -I$(srcdir)/src/compat -I$(srcdir)/src/libmpg123
EXTRAINCL = -I$(srcdir)/src -I$(srcdir)/src/compat $(MPG123_PE_CFLAGS)
EXTRADEFS = -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT -DNO_CATCHSIGNAL -DMPG123_NO_LARGENAME
C_SRCS = \
......
EXTLIB = libtiff.a
EXTRAINCL = -I$(srcdir)/libtiff $(JPEG_PE_CFLAGS) $(ZLIB_PE_CFLAGS)
EXTRAINCL = $(TIFF_PE_CFLAGS) $(JPEG_PE_CFLAGS) $(ZLIB_PE_CFLAGS)
C_SRCS = \
libtiff/tif_aux.c \
......
EXTLIB = libvkd3d.a
EXTRAINCL = -I$(srcdir)/include -I$(srcdir)/include/private -I$(srcdir)/libs/vkd3d -I$(srcdir)/libs/vkd3d-shader
EXTRAINCL = $(VKD3D_PE_CFLAGS) -I$(srcdir)/include/private -I$(srcdir)/libs/vkd3d -I$(srcdir)/libs/vkd3d-shader
EXTRADEFS = \
-DWINE_NO_NAMELESS_EXTENSION \
-DCONST_VTABLE \
......
......@@ -4152,10 +4152,20 @@ static void load_sources( struct makefile *make )
value = get_expanded_make_var_array( make, "EXTRAINCL" );
for (i = 0; i < value.count; i++)
{
if (!strncmp( value.str[i], "-I", 2 ))
strarray_add_uniq( &make->include_paths, value.str[i] + 2 );
{
const char *dir = value.str[i] + 2;
if (!strncmp( dir, "./", 2 ))
{
dir += 2;
while (*dir == '/') dir++;
}
strarray_add_uniq( &make->include_paths, dir );
}
else if (!strncmp( value.str[i], "-D", 2 ) || !strncmp( value.str[i], "-U", 2 ))
strarray_add_uniq( &make->define_args, value.str[i] );
}
strarray_addall( &make->define_args, get_expanded_make_var_array( make, "EXTRADEFS" ));
strarray_add( &make->include_args, strmake( "-I%s", obj_dir_path( make, "" )));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment