mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:50:21 +00:00
makefiles: Support non-standard import lib names in the global dll rules.
This commit is contained in:
parent
51d3d620cf
commit
41f36c49e0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue