Added a make rules file for static import libraries.

This commit is contained in:
Alexandre Julliard 2005-08-25 12:14:13 +00:00
parent 71ae2d7bed
commit 633b12d5dc
10 changed files with 58 additions and 100 deletions

10
configure vendored

File diff suppressed because one or more lines are too long

View File

@ -1447,6 +1447,9 @@ AC_SUBST_FILE(MAKE_RULES)
MAKE_DLL_RULES=dlls/Makedll.rules MAKE_DLL_RULES=dlls/Makedll.rules
AC_SUBST_FILE(MAKE_DLL_RULES) AC_SUBST_FILE(MAKE_DLL_RULES)
MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
AC_SUBST_FILE(MAKE_IMPLIB_RULES)
MAKE_TEST_RULES=dlls/Maketest.rules MAKE_TEST_RULES=dlls/Maketest.rules
AC_SUBST_FILE(MAKE_TEST_RULES) AC_SUBST_FILE(MAKE_TEST_RULES)
@ -1459,6 +1462,7 @@ AC_SUBST_FILE(MAKE_PROG_RULES)
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Make.rules Make.rules
dlls/Makedll.rules dlls/Makedll.rules
dlls/Makeimplib.rules
dlls/Maketest.rules dlls/Maketest.rules
libs/Makelib.rules libs/Makelib.rules
programs/Makeprog.rules programs/Makeprog.rules

View File

@ -1,3 +1,4 @@
Makedll.rules Makedll.rules
Makefile Makefile
Makeimplib.rules
Maketest.rules Maketest.rules

39
dlls/Makeimplib.rules.in Normal file
View File

@ -0,0 +1,39 @@
# Global rules for building a static import library -*-Makefile-*-
#
# Each individual makefile should define the following variables:
# MODULE : name of the main module being built
#
# plus all variables required by the global Make.rules.in
#
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS) $(EXTRADEFS)
@MAKE_RULES@
all: $(MODULE)
# Rules for .a library
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
# Rules for installation
install install-dev:: $(MODULE)
$(MKINSTALLDIRS) $(dlldir)
$(INSTALL_DATA) $(MODULE) $(dlldir)/$(MODULE)
uninstall::
[ ! -d $(dlldir) ] || (cd $(dlldir) && $(RM) $(MODULE))
# Misc. rules
.PHONY: man doc-html doc-sgml
man doc-html doc-sgml:
# End of global library rules

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -12,19 +9,6 @@ C_SRCS = \
EXTRA_OBJS = $(MODULE).dbg.o EXTRA_OBJS = $(MODULE).dbg.o
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man:
doc-html:
doc-sgml:
### Dependencies: ### Dependencies:

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -12,19 +9,6 @@ C_SRCS = \
EXTRA_OBJS = $(MODULE).dbg.o EXTRA_OBJS = $(MODULE).dbg.o
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man:
doc-html:
doc-sgml:
### Dependencies: ### Dependencies:

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -12,19 +9,6 @@ C_SRCS = \
dx9guid.c \ dx9guid.c \
dxguid.c dxguid.c
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man:
doc-html:
doc-sgml:
### Dependencies: ### Dependencies:

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -10,19 +7,6 @@ MODULE = libstrmiids.a
C_SRCS = \ C_SRCS = \
strmiids.c strmiids.c
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man:
doc-html:
doc-sgml:
### Dependencies: ### Dependencies:

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -10,19 +7,6 @@ MODULE = libuuid.a
C_SRCS = \ C_SRCS = \
uuid.c uuid.c
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man:
doc-html:
doc-sgml:
### Dependencies: ### Dependencies:

View File

@ -1,6 +1,3 @@
DLLDEFS = @DLLDEFS@
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(DLLDEFS)
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
@ -12,15 +9,6 @@ C_SRCS = \
exe_main.c \ exe_main.c \
exe_wmain.c exe_wmain.c
all: $(MODULE) @MAKE_IMPLIB_RULES@
@MAKE_RULES@
$(MODULE): $(OBJS) Makefile.in
$(RM) $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
man doc-html doc-sgml:
### Dependencies: ### Dependencies: