Build all the programs with winegcc.

This commit is contained in:
Alexandre Julliard 2004-03-02 21:00:00 +00:00
parent 9a8d951232
commit 6621b2d213
29 changed files with 54 additions and 81 deletions

View File

@ -15,21 +15,16 @@ ALL_OBJS = $(OBJS) $(MODULE).dbg.o
ALL_LIBS = $(LIBWINE) $(EXTRALIBS) $(LIBPORT) $(LDFLAGS) $(LIBS) ALL_LIBS = $(LIBWINE) $(EXTRALIBS) $(LIBPORT) $(LDFLAGS) $(LIBS)
BASEMODULE = $(MODULE:.exe=) BASEMODULE = $(MODULE:.exe=)
TESTIMPORTS = $(DELAYIMPORTS) $(IMPORTS) TESTIMPORTS = $(DELAYIMPORTS) $(IMPORTS)
RUNTESTFLAGS= -q -P wine -T $(TOPOBJDIR) $(PLTESTPROGRAM:%=-p %) RUNTESTFLAGS= -q -P wine -T $(TOPOBJDIR)
@MAKE_RULES@ @MAKE_RULES@
all: $(MODULE)$(DLLEXT) $(BASEMODULE)$(EXEEXT) 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:%=--mode %) $(RC_SRCS:.rc=.res) $(ALL_OBJS) -L$(DLLDIR) $(DELAYIMPORTS:%=-d%) $(IMPORTS:%=-l%)
# Rules for .so main module # Rules for .so main module
$(MODULE).so: $(MODULE).spec.o $(ALL_OBJS) Makefile.in $(MODULE).so: $(ALL_OBJS) $(RC_SRCS:.rc=.res) Makefile.in
$(LDDLL) $(MODULE).spec.o $(ALL_OBJS) -o $@ -L$(DLLDIR) $(ALL_LIBS) -lc WINEBUILD=$(WINEBUILD) $(WINEGCC) $(APPMODE) $(ALL_OBJS) $(RC_SRCS:.rc=.res) -o $@ -L$(DLLDIR) $(DELAYIMPORTS:%=-Wb,-d%) $(IMPORTS:%=-l%) $(ALL_LIBS) -lc
$(BASEMODULE): $(WINEWRAPPER) $(BASEMODULE): $(WINEWRAPPER)
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@ $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
@ -37,7 +32,7 @@ $(BASEMODULE): $(WINEWRAPPER)
# Rules for .exe main module # Rules for .exe main module
$(MODULE): $(ALL_OBJS) $(RCOBJS) Makefile.in $(MODULE): $(ALL_OBJS) $(RCOBJS) Makefile.in
$(CC) $(ALL_OBJS) $(RCOBJS) -o $@ $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(ALL_LIBS) $(CC) $(APPMODE) $(ALL_OBJS) $(RCOBJS) -o $@ $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(ALL_LIBS)
# Rules for testing # Rules for testing

View File

@ -17,32 +17,23 @@ C_SRCS = \
all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT)) all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT))
aviinfo.exe.spec.c: aviinfo.o $(WINEBUILD) aviinfo.exe.so: aviinfo.o
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviinfo.exe --mode gui aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 $(ALL_LIBS) -lc
aviplay.exe.spec.c: aviplay.o $(WINEBUILD) aviplay.exe.so: aviplay.o
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviplay.exe --mode gui aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw $(ALL_LIBS) -lc
icinfo.exe.spec.c: icinfo.o $(WINEBUILD) icinfo.exe.so: icinfo.o
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe icinfo.exe --mode gui icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 WINEBUILD=$(WINEBUILD) $(WINEGCC) -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 $(ALL_LIBS) -lc
aviinfo.exe.so: aviinfo.o aviinfo.exe.spec.o
$(LDDLL) -o $@ aviinfo.o aviinfo.exe.spec.o $(ALL_LIBS) -lc
aviplay.exe.so: aviplay.o aviplay.exe.spec.o
$(LDDLL) -o $@ aviplay.o aviplay.exe.spec.o $(ALL_LIBS) -lc
icinfo.exe.so: icinfo.o icinfo.exe.spec.o
$(LDDLL) -o $@ icinfo.o icinfo.exe.spec.o $(ALL_LIBS) -lc
aviinfo.exe: aviinfo.o aviinfo.exe: aviinfo.o
$(CC) -o $@ aviinfo.o -lavifil32 -lkernel32 $(ALL_LIBS) $(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS)
aviplay.exe: aviplay.o aviplay.exe: aviplay.o
$(CC) -o $@ aviplay.o -lavifil32 -lddraw -lkernel32 $(ALL_LIBS) $(CC) -o $@ aviplay.o -lavifil32 -lddraw $(ALL_LIBS)
icinfo.exe: icinfo.o icinfo.exe: icinfo.o
$(CC) -o $@ icinfo.o -lmsvfw32 -lkernel32 $(ALL_LIBS) $(CC) -o $@ icinfo.o -lmsvfw32 $(ALL_LIBS)
$(PROGRAMS:.exe=): $(WINEWRAPPER) $(PROGRAMS:.exe=): $(WINEWRAPPER)
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@ $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = clock.exe MODULE = clock.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 kernel32
LICENSELANG = En LICENSELANG = En

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = cmdlgtst.exe MODULE = cmdlgtst.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 user32 gdi32 kernel32
C_SRCS = \ C_SRCS = \
cmdlgtst.c cmdlgtst.c

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = control.exe MODULE = control.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = shell32 user32 kernel32
C_SRCS = control.c C_SRCS = control.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = expand.exe MODULE = expand.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = lz32 kernel32 IMPORTS = lz32
C_SRCS = expand.c C_SRCS = expand.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = notepad.exe MODULE = notepad.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 msvcrt advapi32 kernel32 IMPORTS = msvcrt
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
EXTRADEFS = -DNO_LIBWINE_PORT EXTRADEFS = -DNO_LIBWINE_PORT

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = progman.exe MODULE = progman.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = shell32 comdlg32 user32 gdi32 kernel32
LICENSELANG = En LICENSELANG = En

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = regedit.exe MODULE = regedit.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = msvcrt advapi32 kernel32 IMPORTS = msvcrt
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

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = regsvr32.exe MODULE = regsvr32.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = \ C_SRCS = \
regsvr32.c regsvr32.c

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = rpcss.exe MODULE = rpcss.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = \ C_SRCS = \
epmap_server.c \ epmap_server.c \

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = rundll32.exe MODULE = rundll32.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = user32 kernel32
C_SRCS = \ C_SRCS = \
rundll32.c rundll32.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = start.exe MODULE = start.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = shell32 user32 kernel32 IMPORTS = shell32
C_SRCS = start.c C_SRCS = start.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = uninstaller.exe MODULE = uninstaller.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = user32 gdi32 advapi32 kernel32 IMPORTS = gdi32
C_SRCS = \ C_SRCS = \
main.c main.c

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = view.exe MODULE = view.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 user32 gdi32 kernel32
C_SRCS = \ C_SRCS = \
init.c \ init.c \

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wcmd.exe MODULE = wcmd.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = shell32 user32 kernel32 IMPORTS = shell32
C_SRCS = \ C_SRCS = \
batch.c \ batch.c \

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wineboot.exe MODULE = wineboot.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = advapi32 kernel32
C_SRCS = \ C_SRCS = \
wineboot.c wineboot.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winebrowser.exe MODULE = winebrowser.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = shell32 user32 advapi32 kernel32 IMPORTS = shell32
C_SRCS = \ C_SRCS = \
main.c main.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winecfg.exe MODULE = winecfg.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 comctl32 user32 advapi32 IMPORTS = comctl32
C_SRCS = \ C_SRCS = \
appdefaults.c \ appdefaults.c \

View File

@ -4,8 +4,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = wineconsole.exe MODULE = wineconsole.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = advapi32 kernel32 ntdll IMPORTS = ntdll
DELAYIMPORTS = comctl32 user32 gdi32 DELAYIMPORTS = comctl32 user32 gdi32
C_SRCS = \ C_SRCS = \

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winedbg.exe MODULE = winedbg.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = advapi32 kernel32 ntdll IMPORTS = ntdll
DELAYIMPORTS = user32 DELAYIMPORTS = user32
C_SRCS = \ C_SRCS = \

View File

@ -4,8 +4,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winefile.exe MODULE = winefile.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = shell32 comctl32 ole32 user32 gdi32 kernel32 IMPORTS = comctl32 ole32
EXTRALIBS = -luuid EXTRALIBS = -luuid
C_SRCS = \ C_SRCS = \

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winemenubuilder.exe MODULE = winemenubuilder.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = shell32 ole32 user32 advapi32 kernel32 IMPORTS = ole32
EXTRALIBS = -luuid EXTRALIBS = -luuid
C_SRCS = \ C_SRCS = \

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winemine.exe MODULE = winemine.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = user32 gdi32 advapi32 kernel32
C_SRCS = \ C_SRCS = \
dialog.c \ dialog.c \

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winepath.exe MODULE = winepath.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = winepath.c C_SRCS = winepath.c

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winetest.exe MODULE = winetest.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comctl32 user32 wsock32 IMPORTS = comctl32 wsock32
C_SRCS = \ C_SRCS = \
gui.c \ gui.c \

View File

@ -3,8 +3,8 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winevdm.exe MODULE = winevdm.exe
APPMODE = cui APPMODE = -mconsole
IMPORTS = winedos kernel32 IMPORTS = winedos
C_SRCS = \ C_SRCS = \
winevdm.c winevdm.c

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winhelp.exe MODULE = winhelp.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 kernel32
PROGRAMS = hlp2sgml PROGRAMS = hlp2sgml
C_SRCS = \ C_SRCS = \

View File

@ -3,8 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winver.exe MODULE = winver.exe
APPMODE = gui APPMODE = -mwindows
IMPORTS = shell32 kernel32
C_SRCS = winver.c C_SRCS = winver.c