diff --git a/dlls/Maketest.rules.in b/dlls/Maketest.rules.in index abf106ac7a4..569f4bbf967 100644 --- a/dlls/Maketest.rules.in +++ b/dlls/Maketest.rules.in @@ -36,7 +36,7 @@ all: $(TESTPROGRAM) # Rule for main module spec file $(MODULE).spec.c: $(RC_SRCS:.rc=.res) $(OBJS) $(IMPORTLIBS) $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe $(MODULE) --exe-mode cui $(RC_SRCS:.rc=.res) $(OBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) + $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe $(MODULE) --mode cui $(RC_SRCS:.rc=.res) $(OBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) # Rules for .so main module diff --git a/programs/Makeprog.rules.in b/programs/Makeprog.rules.in index 67e08be24bb..74f4cf56abd 100644 --- a/programs/Makeprog.rules.in +++ b/programs/Makeprog.rules.in @@ -24,7 +24,7 @@ all: $(MODULE)$(DLLEXT) $(BASEMODULE)$(EXEEXT) # Rule for main module spec file $(MODULE).spec.c: $(RC_SRCS:.rc=.res) $(ALL_OBJS) $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe $(MODULE) $(APPMODE:%=--exe-mode %) $(RC_SRCS:.rc=.res) $(ALL_OBJS) -L$(DLLDIR) $(DELAYIMPORTS:%=-d%) $(IMPORTS:%=-l%) + $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe $(MODULE) $(APPMODE:%=--mode %) $(RC_SRCS:.rc=.res) $(ALL_OBJS) -L$(DLLDIR) $(DELAYIMPORTS:%=-d%) $(IMPORTS:%=-l%) # Rules for .so main module diff --git a/programs/avitools/Makefile.in b/programs/avitools/Makefile.in index f6ab98554f2..636f442d297 100644 --- a/programs/avitools/Makefile.in +++ b/programs/avitools/Makefile.in @@ -18,13 +18,13 @@ C_SRCS = \ all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT)) aviinfo.exe.spec.c: aviinfo.o $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviinfo.exe --exe-mode gui aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 + $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviinfo.exe --mode gui aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 aviplay.exe.spec.c: aviplay.o $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviplay.exe --exe-mode gui aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 + $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviplay.exe --mode gui aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 icinfo.exe.spec.c: icinfo.o $(WINEBUILD) - $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe icinfo.exe --exe-mode gui icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 + $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe icinfo.exe --mode gui icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 aviinfo.exe.so: aviinfo.o aviinfo.exe.spec.o $(LDDLL) -o $@ aviinfo.o aviinfo.exe.spec.o $(ALL_LIBS) -lc diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index 615089c3f66..edddd7c5bb1 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -118,7 +118,7 @@ static const char usage_str[] = " -K FLAGS Compiler flags (only -KPIC is supported)\n" " -l --library=LIB Import the specified library\n" " -L --library-path=DIR Look for imports libraries in DIR\n" -" -m --exe-mode=MODE Set the executable mode (cui|gui|cuiw|guiw)\n" +" -m --mode=MODE Set the binary mode (cui|gui|cuiw|guiw|native)\n" " -M --main-module=MODULE Set the name of the main module for a Win16 dll\n" " -N --dll-name=DLLNAME Set the DLL name (default: from input file name)\n" " -o --output=NAME Set the output file name (default: stdout)\n" @@ -167,7 +167,8 @@ static const struct option long_options[] = { "kill-at", 0, 0, 'k' }, { "library", 1, 0, 'l' }, { "library-path", 1, 0, 'L' }, - { "exe-mode", 1, 0, 'm' }, + { "mode", 1, 0, 'm' }, + { "exe-mode", 1, 0, 'm' }, /* for backwards compatibility */ { "main-module", 1, 0, 'M' }, { "dll-name", 1, 0, 'N' }, { "output", 1, 0, 'o' }, diff --git a/tools/winebuild/winebuild.man.in b/tools/winebuild/winebuild.man.in index 2e8a203d4cb..d7cb76a932c 100644 --- a/tools/winebuild/winebuild.man.in +++ b/tools/winebuild/winebuild.man.in @@ -132,8 +132,8 @@ Specify that we are building a 16-bit dll, that will ultimately be linked together with the 32-bit dll specified in \fImodule\fR. Only meaningful in \fB--spec\fR mode. .TP -.BI \-m,\ --exe-mode= mode -Set the executable mode, which can be one of the following: +.BI \-m,\ --mode= mode +Set the executable or dll mode, which can be one of the following: .br .B cui for a command line ASCII executable, @@ -154,8 +154,6 @@ A command line executable entry point is a normal C \fBmain\fR function. A graphical executable has a \fBWinMain\fR entry point instead. The ASCII/Unicode distinction applies to the strings that are passed to the entry point. -.br -This option is only meaningful in \fB--exe\fR mode. .TP .BI \-N,\ --dll-name= dllname Set the internal name of the module. It is only used in Win16