Commit 41f36c49 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Support non-standard import lib names in the global dll rules.

parent 51d3d620
......@@ -15,7 +15,7 @@ MINGWAR = @MINGWAR@
DEFS = -D__WINESRC__ $(EXTRADEFS)
BASEMODULE = $(MODULE:%.dll=%)
MAINSPEC = $(BASEMODULE).spec
SPEC_DEF = lib$(BASEMODULE).def
SPEC_DEF = $(BASEMODULE).def
WIN16_FILES = $(SPEC_SRCS16:.spec=.spec.o) $(C_SRCS16:.c=.o) $(EXTRA_OBJS16)
ALL_OBJS = @WIN16_FILES@ $(OBJS) $(RC_SRCS:.rc=.res)
ALL_LIBS = $(EXTRALIBS) $(LIBPORT) $(LDFLAGS) $(LIBS)
......@@ -47,15 +47,15 @@ all implib: $(IMPORTLIBFILE) $(IMPLIB_SRCS:%=__static_implib__%)
$(IMPLIB_SRCS:%=__static_implib__%): $(STATICIMPLIB)
lib$(BASEMODULE).def: $(MAINSPEC)
$(SPEC_DEF) $(IMPORTLIB:%=lib%.def): $(MAINSPEC)
$(WINEBUILD) -w --def -o $@ --export $(SRCDIR)/$(MAINSPEC)
lib$(BASEMODULE).def.a: $(IMPLIB_OBJS)
$(IMPORTLIB:%=lib%.def.a): $(IMPLIB_OBJS)
$(RM) $@
$(AR) $(ARFLAGS) $@ $(IMPLIB_OBJS)
$(RANLIB) $@
lib$(BASEMODULE).a: $(SPEC_DEF) $(IMPLIB_OBJS)
$(IMPORTLIB:%=lib%.a): $(SPEC_DEF) $(IMPLIB_OBJS)
$(DLLTOOL) -k -l $@ -d $(SPEC_DEF)
$(MINGWAR) rs $@ $(IMPLIB_OBJS)
......@@ -106,7 +106,7 @@ uninstall::
# Misc. rules
clean::
$(RM) $(SPEC_DEF)
$(RM) $(SPEC_DEF) $(IMPORTLIBFILE)
$(SPEC_DEF) $(SPEC_SRCS16:.spec=.spec.o): $(WINEBUILD)
......
......@@ -11,13 +11,4 @@ C_SRCS = \
@MAKE_DLL_RULES@
libd3dx9.def: $(MAINSPEC)
$(WINEBUILD) -w --def -o $@ --export $(SRCDIR)/$(MAINSPEC)
libd3dx9.a: $(SPEC_DEF)
$(DLLTOOL) -k -l $@ -d $(SPEC_DEF)
clean::
$(RM) $(IMPORTLIBFILE)
@DEPENDENCIES@ # everything below this line is overwritten by make depend
......@@ -15,13 +15,4 @@ RC_SRCS = winspool.rc
@MAKE_DLL_RULES@
libwinspool.def: $(MAINSPEC)
$(WINEBUILD) -w --def -o $@ --export $(SRCDIR)/$(MAINSPEC)
libwinspool.a: $(SPEC_DEF)
$(DLLTOOL) -k -l $@ -d $(SPEC_DEF)
clean::
$(RM) $(IMPORTLIBFILE)
@DEPENDENCIES@ # everything below this line is overwritten by make depend
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