From 117436e08e36ea45c157a74f53c948c1f93ef772 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 1 May 2003 00:39:29 +0000 Subject: [PATCH] Moved rules for building shared libraries into a global Makelib.rules file. --- configure | 10 +++++-- configure.ac | 4 +++ libs/.cvsignore | 1 + libs/Makelib.rules.in | 58 ++++++++++++++++++++++++++++++++++++++++ libs/unicode/Makefile.in | 49 +++------------------------------ libs/wine/Makefile.in | 49 +++------------------------------ 6 files changed, 77 insertions(+), 94 deletions(-) create mode 100644 libs/Makelib.rules.in diff --git a/configure b/configure index ef4fdcd0c97..d052d5ff754 100755 --- a/configure +++ b/configure @@ -309,7 +309,7 @@ ac_includes_default="\ #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL LIBPTHREAD build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS' -ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES' +ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES' # Initialize some variables set by options. ac_init_help= @@ -16070,10 +16070,13 @@ MAKE_DLL_RULES=dlls/Makedll.rules MAKE_TEST_RULES=dlls/Maketest.rules +MAKE_LIB_RULES=libs/Makelib.rules + + MAKE_PROG_RULES=programs/Makeprog.rules - ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile" + ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile" cat >confcache <<\_ACEOF @@ -16606,6 +16609,7 @@ do "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; + "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; @@ -17009,6 +17013,8 @@ s,@MAKE_RULES@,,;t t s,@MAKE_DLL_RULES@,,;t t /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES s,@MAKE_TEST_RULES@,,;t t +/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES +s,@MAKE_LIB_RULES@,,;t t /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES s,@MAKE_PROG_RULES@,,;t t CEOF diff --git a/configure.ac b/configure.ac index 7cd3a37919e..a24e6dd0f88 100644 --- a/configure.ac +++ b/configure.ac @@ -1349,6 +1349,9 @@ AC_SUBST_FILE(MAKE_DLL_RULES) MAKE_TEST_RULES=dlls/Maketest.rules AC_SUBST_FILE(MAKE_TEST_RULES) +MAKE_LIB_RULES=libs/Makelib.rules +AC_SUBST_FILE(MAKE_LIB_RULES) + MAKE_PROG_RULES=programs/Makeprog.rules AC_SUBST_FILE(MAKE_PROG_RULES) @@ -1356,6 +1359,7 @@ AC_CONFIG_FILES([ Make.rules dlls/Makedll.rules dlls/Maketest.rules +libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile diff --git a/libs/.cvsignore b/libs/.cvsignore index f3c7a7c5da6..a7a16821493 100644 --- a/libs/.cvsignore +++ b/libs/.cvsignore @@ -1 +1,2 @@ Makefile +Makelib.rules diff --git a/libs/Makelib.rules.in b/libs/Makelib.rules.in new file mode 100644 index 00000000000..08b32c8b2fa --- /dev/null +++ b/libs/Makelib.rules.in @@ -0,0 +1,58 @@ +# Global rules for building shared libraries -*-Makefile-*- +# +# Each individual makefile should define the following variables: +# LIBRARY : name of the library being built (without the lib prefix) +# SOVERSION : the .so file version +# +# plus all variables required by the global Make.rules.in +# + +DEFS = @DLLFLAGS@ $(EXTRADEFS) +LIBEXT = @LIBEXT@ +LIBNAME = lib$(LIBRARY) +DEFNAME = $(LIBRARY).def +SONAME = $(LIBNAME).so.$(SOVERSION) +MODULE = $(LIBNAME).$(LIBEXT) + +all: $(MODULE) $(MODULE:.dll=.a) + +@MAKE_RULES@ + +$(LIBNAME).so.$(SOVERSION): $(OBJS) Makefile.in + $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@ + +$(LIBNAME).so: $(LIBNAME).so.$(SOVERSION) + $(RM) $@ && $(LN_S) $(LIBNAME).so.$(SOVERSION) $@ + +$(LIBNAME).a: $(DEFNAME) + $(DLLTOOL) -l $@ -d $(SRCDIR)/$(DEFNAME) + +$(LIBNAME).dll: $(OBJS) $(DEFNAME) Makefile.in + $(DLLWRAP) --def $(SRCDIR)/$(DEFNAME) -o $@ $(OBJS) $(EXTRALIBS) + +.PHONY: install-lib-so install-lib-dll install-dev-so install-dev-dll + +install-lib-so: $(LIBNAME).so.$(SOVERSION) dummy + $(MKINSTALLDIRS) $(libdir) + $(INSTALL_PROGRAM) $(LIBNAME).so.$(SOVERSION) $(libdir)/$(LIBNAME).so.$(SOVERSION) + +install-lib-dll: $(LIBNAME).dll dummy + $(MKINSTALLDIRS) $(libdir) + $(INSTALL_DATA) $(LIBNAME).dll $(libdir)/$(LIBNAME).dll + +install-dev-so: dummy + $(MKINSTALLDIRS) $(libdir) + cd $(libdir) && $(RM) $(LIBNAME).so && $(LN_S) $(LIBNAME).so.$(SOVERSION) $(LIBNAME).so + +install-dev-dll: $(LIBNAME).a dummy + $(MKINSTALLDIRS) $(libdir) + $(INSTALL_DATA) $(LIBNAME).a $(libdir)/$(LIBNAME).a + +install install-lib:: $(LIBEXT:%=install-lib-%) +install install-dev:: $(LIBEXT:%=install-dev-%) + +uninstall:: + $(RM) $(libdir)/$(LIBNAME).a $(libdir)/$(LIBNAME).dll $(libdir)/$(LIBNAME).so $(libdir)/$(LIBNAME).so.$(SOVERSION) + +clean:: + $(RM) $(LIBNAME).so.$(SOVERSION) $(LIBNAME).dll diff --git a/libs/unicode/Makefile.in b/libs/unicode/Makefile.in index 522cc6664bf..b1753fef8cd 100644 --- a/libs/unicode/Makefile.in +++ b/libs/unicode/Makefile.in @@ -1,12 +1,10 @@ -DEFS = @DLLFLAGS@ -D__WINESRC__ -DNO_LIBWINE_PORT TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ -LIBEXT = @LIBEXT@ +LIBRARY = wine_unicode SOVERSION = 1 -SONAME = libwine_unicode.so.$(SOVERSION) -MODULE = libwine_unicode.$(LIBEXT) +EXTRADEFS = -D__WINESRC__ -DNO_LIBWINE_PORT CODEPAGES = \ 037 \ @@ -81,47 +79,6 @@ C_SRCS = \ wctype.c \ $(CODEPAGES:%=c_%.c) -all: $(MODULE) $(MODULE:.dll=.a) - -@MAKE_RULES@ - -libwine_unicode.so.$(SOVERSION): $(OBJS) Makefile.in - $(LDSHARED) $(OBJS) -o $@ - -libwine_unicode.so: libwine_unicode.so.$(SOVERSION) - $(RM) $@ && $(LN_S) libwine_unicode.so.$(SOVERSION) $@ - -libwine_unicode.a: wine_unicode.def - $(DLLTOOL) -l $@ -d $(SRCDIR)/wine_unicode.def - -libwine_unicode.dll: $(OBJS) wine_unicode.def Makefile.in - $(DLLWRAP) --def $(SRCDIR)/wine_unicode.def -o $@ $(OBJS) - -.PHONY: install-lib-so install-lib-dll install-dev-so install-dev-dll - -install-lib-so: libwine_unicode.so.$(SOVERSION) dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_PROGRAM) libwine_unicode.so.$(SOVERSION) $(libdir)/libwine_unicode.so.$(SOVERSION) - -install-lib-dll: libwine_unicode.dll dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_DATA) libwine_unicode.dll $(libdir)/libwine_unicode.dll - -install-dev-so: dummy - $(MKINSTALLDIRS) $(libdir) - cd $(libdir) && $(RM) libwine_unicode.so && $(LN_S) libwine_unicode.so.$(SOVERSION) libwine_unicode.so - -install-dev-dll: libwine_unicode.a dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_DATA) libwine_unicode.a $(libdir)/libwine_unicode.a - -install install-lib:: $(LIBEXT:%=install-lib-%) -install install-dev:: $(LIBEXT:%=install-dev-%) - -uninstall:: - $(RM) $(libdir)/libwine_unicode.a $(libdir)/libwine_unicode.dll $(libdir)/libwine_unicode.so $(libdir)/libwine_unicode.so.$(SOVERSION) - -clean:: - $(RM) libwine_unicode.so.$(SOVERSION) libwine_unicode.dll +@MAKE_LIB_RULES@ ### Dependencies: diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index 46e597b4150..f3b1cd18b6a 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -1,12 +1,10 @@ -DEFS = @DLLFLAGS@ -D__WINESRC__ -DDLLDIR="\"$(dlldir)\"" TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ -LIBEXT = @LIBEXT@ +LIBRARY = wine SOVERSION = 1 -SONAME = libwine.so.$(SOVERSION) -MODULE = libwine.$(LIBEXT) +EXTRADEFS = -D__WINESRC__ -DDLLDIR="\"$(dlldir)\"" EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@ C_SRCS = \ @@ -16,47 +14,6 @@ C_SRCS = \ ldt.c \ loader.c -all: $(MODULE) $(MODULE:.dll=.a) - -@MAKE_RULES@ - -libwine.so.$(SOVERSION): $(OBJS) Makefile.in - $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@ - -libwine.so: libwine.so.$(SOVERSION) - $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@ - -libwine.a: wine.def - $(DLLTOOL) -l $@ -d $(SRCDIR)/wine.def - -libwine.dll: $(OBJS) wine.def Makefile.in - $(DLLWRAP) --def $(SRCDIR)/wine.def -o $@ $(OBJS) $(EXTRALIBS) - -.PHONY: install-lib-so install-lib-dll install-dev-so install-dev-dll - -install-lib-so: libwine.so.$(SOVERSION) dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION) - -install-lib-dll: libwine.dll dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_DATA) libwine.dll $(libdir)/libwine.dll - -install-dev-so: dummy - $(MKINSTALLDIRS) $(libdir) - cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so - -install-dev-dll: libwine.a dummy - $(MKINSTALLDIRS) $(libdir) - $(INSTALL_DATA) libwine.a $(libdir)/libwine.a - -install install-lib:: $(LIBEXT:%=install-lib-%) -install install-dev:: $(LIBEXT:%=install-dev-%) - -uninstall:: - $(RM) $(libdir)/libwine.a $(libdir)/libwine.dll $(libdir)/libwine.so $(libdir)/libwine.so.$(SOVERSION) - -clean:: - $(RM) libwine.so.$(SOVERSION) libwine.dll +@MAKE_LIB_RULES@ ### Dependencies: