Commit 6be39b60 authored by Alexandre Julliard's avatar Alexandre Julliard

Take advantage of the new winegcc -B support.

parent 2d52cfa9
...@@ -36,7 +36,7 @@ all: $(TESTPROGRAM) ...@@ -36,7 +36,7 @@ all: $(TESTPROGRAM)
# Rules for .so main module # Rules for .so main module
$(MODULE).so: $(OBJS) $(RC_SRCS:.rc=.res) $(IMPORTLIBS) Makefile.in $(MODULE).so: $(OBJS) $(RC_SRCS:.rc=.res) $(IMPORTLIBS) Makefile.in
WINEBUILD=$(WINEBUILD) $(WINEGCC) -mconsole $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(LIBPORT) -L$(DLLDIR) -L$(LIBDIR) $(ALL_LIBS) $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mconsole $(OBJS) $(RC_SRCS:.rc=.res) -o $@ $(LIBPORT) -L$(DLLDIR) -L$(LIBDIR) $(ALL_LIBS)
# Rules for .exe main module # Rules for .exe main module
......
...@@ -24,7 +24,7 @@ all: $(MODULE)$(DLLEXT) $(BASEMODULE)$(EXEEXT) ...@@ -24,7 +24,7 @@ all: $(MODULE)$(DLLEXT) $(BASEMODULE)$(EXEEXT)
# Rules for .so main module # Rules for .so main module
$(MODULE).so: $(ALL_OBJS) $(RC_SRCS:.rc=.res) Makefile.in $(MODULE).so: $(ALL_OBJS) $(RC_SRCS:.rc=.res) Makefile.in
WINEBUILD=$(WINEBUILD) $(WINEGCC) $(APPMODE) $(ALL_OBJS) $(RC_SRCS:.rc=.res) -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS) $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild $(APPMODE) $(ALL_OBJS) $(RC_SRCS:.rc=.res) -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
$(BASEMODULE): $(WINEWRAPPER) $(BASEMODULE): $(WINEWRAPPER)
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@ $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
......
...@@ -18,13 +18,13 @@ C_SRCS = \ ...@@ -18,13 +18,13 @@ C_SRCS = \
all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT)) all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT))
aviinfo.exe.so: aviinfo.o aviinfo.exe.so: aviinfo.o
WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 $(ALL_LIBS) -lc $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 $(ALL_LIBS)
aviplay.exe.so: aviplay.o aviplay.exe.so: aviplay.o
WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw $(ALL_LIBS) -lc $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 $(ALL_LIBS)
icinfo.exe.so: icinfo.o icinfo.exe.so: icinfo.o
WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 $(ALL_LIBS) -lc $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 $(ALL_LIBS)
aviinfo.exe: aviinfo.o aviinfo.exe: aviinfo.o
$(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS) $(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS)
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = clock.exe MODULE = clock.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 kernel32
LICENSELANG = En LICENSELANG = En
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = cmdlgtst.exe MODULE = cmdlgtst.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comdlg32 user32 gdi32 kernel32
C_SRCS = \ C_SRCS = \
cmdlgtst.c cmdlgtst.c
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = control.exe MODULE = control.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = shell32 user32 kernel32
C_SRCS = control.c C_SRCS = control.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = expand.exe MODULE = expand.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = lz32 IMPORTS = lz32 kernel32
C_SRCS = expand.c C_SRCS = expand.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = notepad.exe MODULE = notepad.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = msvcrt IMPORTS = comdlg32 shell32 user32 gdi32 msvcrt advapi32 kernel32
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
EXTRADEFS = -DNO_LIBWINE_PORT EXTRADEFS = -DNO_LIBWINE_PORT
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = progman.exe MODULE = progman.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = shell32 comdlg32 user32 gdi32 kernel32
LICENSELANG = En LICENSELANG = En
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = regedit.exe MODULE = regedit.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = msvcrt IMPORTS = msvcrt advapi32 kernel32
DELAYIMPORTS = shell32 comdlg32 comctl32 user32 gdi32 DELAYIMPORTS = shell32 comdlg32 comctl32 user32 gdi32
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
EXTRADEFS = -DNO_LIBWINE_PORT EXTRADEFS = -DNO_LIBWINE_PORT
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = regsvr32.exe MODULE = regsvr32.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = \ C_SRCS = \
regsvr32.c regsvr32.c
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = rpcss.exe MODULE = rpcss.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = \ C_SRCS = \
epmap_server.c \ epmap_server.c \
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = rundll32.exe MODULE = rundll32.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = user32 kernel32
C_SRCS = \ C_SRCS = \
rundll32.c rundll32.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = start.exe MODULE = start.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = shell32 IMPORTS = shell32 user32 kernel32
C_SRCS = start.c C_SRCS = start.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = uninstaller.exe MODULE = uninstaller.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = gdi32 IMPORTS = user32 gdi32 advapi32 kernel32
C_SRCS = \ C_SRCS = \
main.c main.c
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = view.exe MODULE = view.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comdlg32 user32 gdi32 kernel32
C_SRCS = \ C_SRCS = \
init.c \ init.c \
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wcmd.exe MODULE = wcmd.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = shell32 IMPORTS = shell32 user32 kernel32
C_SRCS = \ C_SRCS = \
batch.c \ batch.c \
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wineboot.exe MODULE = wineboot.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = advapi32 kernel32
C_SRCS = \ C_SRCS = \
wineboot.c wineboot.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winebrowser.exe MODULE = winebrowser.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = shell32 IMPORTS = shell32 user32 advapi32 kernel32
C_SRCS = \ C_SRCS = \
main.c main.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winecfg.exe MODULE = winecfg.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comctl32 IMPORTS = comdlg32 comctl32 user32 advapi32
C_SRCS = \ C_SRCS = \
appdefaults.c \ appdefaults.c \
......
...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@ ...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wineconsole.exe MODULE = wineconsole.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = ntdll IMPORTS = advapi32 kernel32 ntdll
DELAYIMPORTS = comctl32 user32 gdi32 DELAYIMPORTS = comctl32 user32 gdi32
C_SRCS = \ C_SRCS = \
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winedbg.exe MODULE = winedbg.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = ntdll IMPORTS = advapi32 kernel32 ntdll
DELAYIMPORTS = user32 DELAYIMPORTS = user32
C_SRCS = \ C_SRCS = \
......
...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@ ...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winefile.exe MODULE = winefile.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comctl32 ole32 IMPORTS = shell32 comctl32 ole32 user32 gdi32 kernel32
EXTRALIBS = -luuid EXTRALIBS = -luuid
C_SRCS = \ C_SRCS = \
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winemenubuilder.exe MODULE = winemenubuilder.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = ole32 IMPORTS = shell32 ole32 user32 advapi32 kernel32
EXTRALIBS = -luuid EXTRALIBS = -luuid
C_SRCS = \ C_SRCS = \
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winemine.exe MODULE = winemine.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = user32 gdi32 advapi32 kernel32
C_SRCS = \ C_SRCS = \
dialog.c \ dialog.c \
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winepath.exe MODULE = winepath.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = winepath.c C_SRCS = winepath.c
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winetest.exe MODULE = winetest.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comctl32 wsock32 IMPORTS = comctl32 user32 wsock32
C_SRCS = \ C_SRCS = \
gui.c \ gui.c \
......
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winevdm.exe MODULE = winevdm.exe
APPMODE = -mconsole APPMODE = -mconsole
IMPORTS = winedos IMPORTS = winedos kernel32
C_SRCS = \ C_SRCS = \
winevdm.c winevdm.c
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winhelp.exe MODULE = winhelp.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 kernel32
PROGRAMS = hlp2sgml PROGRAMS = hlp2sgml
C_SRCS = \ C_SRCS = \
......
...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winver.exe MODULE = winver.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = shell32 kernel32
C_SRCS = winver.c C_SRCS = winver.c
......
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