mirror of
https://github.com/reactos/wine.git
synced 2025-02-01 01:32:34 +00:00
Moved the wpp library from tools/ to libs/.
Create symlinks to the various libraries in the libs directory.
This commit is contained in:
parent
117436e08e
commit
e1a9b10f51
@ -68,6 +68,7 @@ WIDL = $(TOOLSDIR)/tools/widl/widl
|
|||||||
WRCFLAGS = --nostdinc $(INCLUDES) $(EXTRAWRCFLAGS)
|
WRCFLAGS = --nostdinc $(INCLUDES) $(EXTRAWRCFLAGS)
|
||||||
LDPATH = @LDPATH@
|
LDPATH = @LDPATH@
|
||||||
DLLDIR = $(TOPOBJDIR)/dlls
|
DLLDIR = $(TOPOBJDIR)/dlls
|
||||||
|
LIBDIR = $(TOPOBJDIR)/libs
|
||||||
LIBPORT = -L$(TOPOBJDIR)/libs/port -lwine_port
|
LIBPORT = -L$(TOPOBJDIR)/libs/port -lwine_port
|
||||||
LIBUNICODE = -L$(TOPOBJDIR)/libs/unicode -lwine_unicode
|
LIBUNICODE = -L$(TOPOBJDIR)/libs/unicode -lwine_unicode
|
||||||
LIBUUID = -L$(TOPOBJDIR)/libs/uuid -lwine_uuid
|
LIBUUID = -L$(TOPOBJDIR)/libs/uuid -lwine_uuid
|
||||||
|
@ -1500,6 +1500,7 @@ libs/port/Makefile
|
|||||||
libs/unicode/Makefile
|
libs/unicode/Makefile
|
||||||
libs/uuid/Makefile
|
libs/uuid/Makefile
|
||||||
libs/wine/Makefile
|
libs/wine/Makefile
|
||||||
|
libs/wpp/Makefile
|
||||||
miscemu/Makefile
|
miscemu/Makefile
|
||||||
programs/Makefile
|
programs/Makefile
|
||||||
programs/avitools/Makefile
|
programs/avitools/Makefile
|
||||||
@ -1537,7 +1538,6 @@ tools/winapi/Makefile
|
|||||||
tools/winebuild/Makefile
|
tools/winebuild/Makefile
|
||||||
tools/winedump/Makefile
|
tools/winedump/Makefile
|
||||||
tools/wmc/Makefile
|
tools/wmc/Makefile
|
||||||
tools/wpp/Makefile
|
|
||||||
tools/wrc/Makefile])
|
tools/wrc/Makefile])
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -8,22 +8,58 @@ SUBDIRS = \
|
|||||||
port \
|
port \
|
||||||
unicode \
|
unicode \
|
||||||
uuid \
|
uuid \
|
||||||
wine
|
wine \
|
||||||
|
wpp
|
||||||
|
|
||||||
INSTALLSUBDIRS = \
|
INSTALLSUBDIRS = \
|
||||||
unicode \
|
unicode \
|
||||||
uuid \
|
uuid \
|
||||||
wine
|
wine
|
||||||
|
|
||||||
|
SYMLINKS = \
|
||||||
|
libwine.$(LIBEXT) \
|
||||||
|
libwine_port.a \
|
||||||
|
libwine_unicode.$(LIBEXT) \
|
||||||
|
libwine_uuid.a \
|
||||||
|
libwpp.a
|
||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
all: $(SUBDIRS)
|
ALL_SYMLINKS = $(SYMLINKS) $(SYMLINKS:.so=.so.1) $(SYMLINKS:.dll=.a)
|
||||||
|
|
||||||
|
all: $(SUBDIRS) $(ALL_SYMLINKS)
|
||||||
|
|
||||||
install-lib:: $(INSTALLSUBDIRS:%=%/__install-lib__)
|
install-lib:: $(INSTALLSUBDIRS:%=%/__install-lib__)
|
||||||
install-dev:: $(INSTALLSUBDIRS:%=%/__install-dev__)
|
install-dev:: $(INSTALLSUBDIRS:%=%/__install-dev__)
|
||||||
|
|
||||||
# Inter-dll dependencies
|
clean::
|
||||||
|
$(RM) $(ALL_SYMLINKS)
|
||||||
|
|
||||||
wine wine/__install__ wine/__install-lib__: port
|
# Symlinks
|
||||||
|
|
||||||
|
libwine.so libwine.so.1 libwine.dll libwine.a: wine/libwine.$(LIBEXT)
|
||||||
|
$(RM) $@ && $(LN_S) wine/$@ $@
|
||||||
|
|
||||||
|
libwine_unicode.so libwine_unicode.so.1 libwine_unicode.dll libwine_unicode.a: unicode/libwine_unicode.$(LIBEXT)
|
||||||
|
$(RM) $@ && $(LN_S) unicode/$@ $@
|
||||||
|
|
||||||
|
libwine_port.a: port/libwine_port.a
|
||||||
|
$(RM) $@ && $(LN_S) port/$@ $@
|
||||||
|
|
||||||
|
libwine_uuid.a: uuid/libwine_uuid.a
|
||||||
|
$(RM) $@ && $(LN_S) uuid/$@ $@
|
||||||
|
|
||||||
|
libwpp.a: wpp/libwpp.a
|
||||||
|
$(RM) $@ && $(LN_S) wpp/$@ $@
|
||||||
|
|
||||||
|
# Directory dependencies
|
||||||
|
|
||||||
|
wine/libwine.$(LIBEXT): wine
|
||||||
|
unicode/libwine_unicode.$(LIBEXT): unicode
|
||||||
|
port/libwine_port.a: port
|
||||||
|
uuid/libwine_uuid.a: uuid
|
||||||
|
wpp/libwpp.a: wpp
|
||||||
|
|
||||||
|
wine wine/__install__ wine/__install-lib__: libwine_port.a
|
||||||
|
|
||||||
### Dependencies:
|
### Dependencies:
|
||||||
|
@ -4,7 +4,7 @@ SRCDIR = @srcdir@
|
|||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
LEXOPT = -Cf #-w -b
|
LEXOPT = -Cf #-w -b
|
||||||
YACCOPT = #-v
|
YACCOPT = #-v
|
||||||
MODULE = none
|
MODULE = libwpp.a
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
preproc.c \
|
preproc.c \
|
||||||
@ -13,11 +13,11 @@ C_SRCS = \
|
|||||||
EXTRA_SRCS = ppy.y ppl.l
|
EXTRA_SRCS = ppy.y ppl.l
|
||||||
EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
|
EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
|
||||||
|
|
||||||
all: libwpp.a
|
all: $(MODULE)
|
||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
libwpp.a: $(OBJS)
|
$(MODULE): $(OBJS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
$(AR) $@ $(OBJS)
|
$(AR) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
@ -26,7 +26,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "wpp_private.h"
|
#include "wpp_private.h"
|
||||||
#include "wpp.h"
|
#include "wine/wpp.h"
|
||||||
|
|
||||||
int ppdebug;
|
int ppdebug;
|
||||||
|
|
@ -24,7 +24,6 @@ SUBDIRS = \
|
|||||||
winebuild \
|
winebuild \
|
||||||
winedump \
|
winedump \
|
||||||
wmc \
|
wmc \
|
||||||
wpp \
|
|
||||||
wrc
|
wrc
|
||||||
|
|
||||||
INSTALLSUBDIRS = $(SUBDIRS)
|
INSTALLSUBDIRS = $(SUBDIRS)
|
||||||
@ -37,8 +36,6 @@ all: $(PROGRAMS) $(SUBDIRS)
|
|||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
widl wrc: wpp
|
|
||||||
|
|
||||||
makedep: makedep.o
|
makedep: makedep.o
|
||||||
$(CC) $(CFLAGS) -o makedep makedep.o
|
$(CC) $(CFLAGS) -o makedep makedep.o
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
|||||||
LEXOPT = -Cf #-w -b
|
LEXOPT = -Cf #-w -b
|
||||||
YACCOPT = #-v
|
YACCOPT = #-v
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
EXTRALIBS = -L$(TOPOBJDIR)/tools/wpp -lwpp
|
|
||||||
|
|
||||||
PROGRAMS = widl$(EXEEXT)
|
PROGRAMS = widl$(EXEEXT)
|
||||||
MODULE = none
|
MODULE = none
|
||||||
@ -23,8 +22,8 @@ all: $(PROGRAMS)
|
|||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
widl$(EXEEXT): $(OBJS) $(TOPOBJDIR)/tools/wpp/libwpp.a
|
widl$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
|
||||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
|
$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_port $(LEXLIB) $(LDFLAGS)
|
||||||
|
|
||||||
y.tab.c y.tab.h: parser.y
|
y.tab.c y.tab.h: parser.y
|
||||||
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
|
||||||
|
@ -48,7 +48,7 @@ uuid {hexd}{8}-{hexd}{4}-{hexd}{4}-{hexd}{4}-{hexd}{12}
|
|||||||
#include "widl.h"
|
#include "widl.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "../wpp/wpp.h"
|
#include "wine/wpp.h"
|
||||||
|
|
||||||
#include "y.tab.h"
|
#include "y.tab.h"
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "proxy.h"
|
#include "proxy.h"
|
||||||
#include "../wpp/wpp.h"
|
#include "wine/wpp.h"
|
||||||
|
|
||||||
/* future options to reserve characters for: */
|
/* future options to reserve characters for: */
|
||||||
/* a = alignment of structures */
|
/* a = alignment of structures */
|
||||||
|
@ -64,9 +64,9 @@ topdir=`cd "$topdir" && pwd`
|
|||||||
|
|
||||||
if [ -n "$LD_LIBRARY_PATH" ]
|
if [ -n "$LD_LIBRARY_PATH" ]
|
||||||
then
|
then
|
||||||
LD_LIBRARY_PATH="$topdir/dlls:$topdir/libs/wine:$topdir/libs/unicode:$LD_LIBRARY_PATH"
|
LD_LIBRARY_PATH="$topdir/dlls:$topdir/libs:$LD_LIBRARY_PATH"
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH="$topdir/dlls:$topdir/libs/wine:$topdir/libs/unicode"
|
LD_LIBRARY_PATH="$topdir/dlls:$topdir/libs"
|
||||||
fi
|
fi
|
||||||
WINEDLLPATH="$topdir/dlls:$topdir/programs"
|
WINEDLLPATH="$topdir/dlls:$topdir/programs"
|
||||||
WINESERVER="$topdir/server/wineserver"
|
WINESERVER="$topdir/server/wineserver"
|
||||||
|
@ -6,7 +6,6 @@ VPATH = @srcdir@
|
|||||||
LEXOPT = -Cf #-w -b
|
LEXOPT = -Cf #-w -b
|
||||||
YACCOPT = #-v
|
YACCOPT = #-v
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
EXTRALIBS = -L$(TOPOBJDIR)/tools/wpp -lwpp
|
|
||||||
|
|
||||||
PROGRAMS = wrc$(EXEEXT)
|
PROGRAMS = wrc$(EXEEXT)
|
||||||
MODULE = none
|
MODULE = none
|
||||||
@ -27,8 +26,8 @@ all: $(PROGRAMS)
|
|||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
wrc$(EXEEXT): $(OBJS) $(TOPOBJDIR)/tools/wpp/libwpp.a
|
wrc$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
|
||||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(LIBUNICODE) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
|
$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_unicode -lwine_port $(LEXLIB) $(LDFLAGS)
|
||||||
|
|
||||||
y.tab.c y.tab.h: parser.y
|
y.tab.c y.tab.h: parser.y
|
||||||
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "newstruc.h"
|
#include "newstruc.h"
|
||||||
#include "dumpres.h"
|
#include "dumpres.h"
|
||||||
#include "../wpp/wpp.h"
|
#include "wine/wpp.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#include "genres.h"
|
#include "genres.h"
|
||||||
#include "newstruc.h"
|
#include "newstruc.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "../wpp/wpp.h"
|
#include "wine/wpp.h"
|
||||||
|
|
||||||
#ifndef INCLUDEDIR
|
#ifndef INCLUDEDIR
|
||||||
#define INCLUDEDIR "/usr/local/include/wine"
|
#define INCLUDEDIR "/usr/local/include/wine"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user