List 16-bit spec files explicitly to avoid problems with some versions

of make.
This commit is contained in:
Alexandre Julliard 2003-03-23 20:00:02 +00:00
parent 9e4fc4c9b6
commit e048adab83
29 changed files with 99 additions and 35 deletions

View File

@ -10,7 +10,6 @@
# C_SRCS : C sources for the module # C_SRCS : C sources for the module
# C_SRCS16 : 16-bit C sources for the module # C_SRCS16 : 16-bit C sources for the module
# RC_SRCS : resource source files # RC_SRCS : resource source files
# SPEC_SRCS : interface definition files
# EXTRA_SRCS : extra source files for make depend # EXTRA_SRCS : extra source files for make depend
# EXTRA_OBJS : extra object files # EXTRA_OBJS : extra object files
# IMPORTS : dlls to import # IMPORTS : dlls to import
@ -154,7 +153,7 @@ $(MODULE).dbg.c: $(C_SRCS) $(C_SRCS16) $(WINEBUILD)
# Rule to rebuild the tools # Rule to rebuild the tools
$(MAKEDEP) $(WIDL) $(WINEBUILD) $(WMC) $(WRC): $(MAKEDEP):
cd $(TOOLSDIR)/tools && $(MAKE) `basename $@` cd $(TOOLSDIR)/tools && $(MAKE) `basename $@`
# Rules for makefile # Rules for makefile
@ -163,28 +162,6 @@ Makefile: Makefile.in $(TOPSRCDIR)/configure
@echo Makefile is older than $?, please rerun $(TOPSRCDIR)/configure @echo Makefile is older than $?, please rerun $(TOPSRCDIR)/configure
@exit 1 @exit 1
# Rules for auto documentation
$(SUBDIRS:%=%/__man__): dummy
cd `dirname $@` && $(MAKE) man
man: $(C_SRCS) $(SUBDIRS:%=%/__man__)
$(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man$(api_manext) && $(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -S$(api_manext) $(DIVINCL) $(MAINSPEC:%=-w %) $(SPEC_SRCS:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_html__): dummy
cd `dirname $@` && $(MAKE) doc-html
doc-html: $(C_SRCS) $(SUBDIRS:%=%/__doc_html__)
$(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html && $(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPOBJDIR) $(DIVINCL) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_sgml__): dummy
cd `dirname $@` && $(MAKE) doc-sgml
doc-sgml: $(C_SRCS) $(SUBDIRS:%=%/__doc_sgml__)
$(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide && $(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPOBJDIR) $(DIVINCL) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS:%=-w %) $(C_SRCS) $(C_SRCS16)
.PHONY: man doc-html doc-sgml $(SUBDIRS:%=%/__man__) $(SUBDIRS:%=%/__doc_html__) $(SUBDIRS:%=%/__doc_sgml__)
# Rule for linting # Rule for linting
$(MODULE).ln : $(LINTS) $(MODULE).ln : $(LINTS)
@ -274,8 +251,6 @@ $(SUBDIRS:%=%/__crosstest__): dummy
# Misc. rules # Misc. rules
$(SPEC_SRCS:.spec=.spec.c): $(WINEBUILD)
$(RC_SRCS:.rc=.res): $(WRC) $(RC_SRCS:.rc=.res): $(WRC)
$(RC_SRCS16:.rc=.res): $(WRC) $(RC_SRCS16:.rc=.res): $(WRC)

View File

@ -133,7 +133,7 @@ tags ctags:
manpages: manpages:
$(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done cd dlls && $(MAKE) man
htmlpages: htmlpages:
$(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html

View File

@ -4,17 +4,16 @@
# MODULE : name of the main module being built # MODULE : name of the main module being built
# ALTNAMES : alternate names for this dll (optional) # ALTNAMES : alternate names for this dll (optional)
# EXTRALIBS : extra libraries to link in (optional) # EXTRALIBS : extra libraries to link in (optional)
# SPEC_SRCS16 : interface definition files for 16-bit dlls (optional)
# #
# plus all variables required by the global Make.rules.in # plus all variables required by the global Make.rules.in
# #
DEFS = @DLLFLAGS@ -D__WINESRC__ $(EXTRADEFS) DEFS = @DLLFLAGS@ -D__WINESRC__ $(EXTRADEFS)
DLLEXT = @DLLEXT@ DLLEXT = @DLLEXT@
ALTSPECS = $(ALTNAMES:%.dll=%)
SPEC_SRCS = $(ALTSPECS:%=%.spec)
MAINSPEC = $(MODULE:%.dll=%).spec MAINSPEC = $(MODULE:%.dll=%).spec
SPEC_DEF = $(MAINSPEC).def SPEC_DEF = $(MAINSPEC).def
WIN16_FILES = $(SPEC_SRCS:.spec=.spec.o) $(C_SRCS16:.c=.o) $(EXTRA_OBJS16) WIN16_FILES = $(SPEC_SRCS16:.spec=.spec.o) $(C_SRCS16:.c=.o) $(EXTRA_OBJS16)
ALL_OBJS = @WIN16_FILES@ $(OBJS) $(MODULE).dbg.o ALL_OBJS = @WIN16_FILES@ $(OBJS) $(MODULE).dbg.o
ALL_LIBS = $(LIBWINE) $(EXTRALIBS) $(LIBPORT) $(LIBS) ALL_LIBS = $(LIBWINE) $(EXTRALIBS) $(LIBPORT) $(LIBS)
IMPORTLIBS = $(DELAYIMPORTS:%=$(DLLDIR)/lib%.$(IMPLIBEXT)) $(IMPORTS:%=$(DLLDIR)/lib%.$(IMPLIBEXT)) IMPORTLIBS = $(DELAYIMPORTS:%=$(DLLDIR)/lib%.$(IMPLIBEXT)) $(IMPORTS:%=$(DLLDIR)/lib%.$(IMPLIBEXT))
@ -66,6 +65,28 @@ check test:: $(SUBDIRS:%=%/__test__)
crosstest:: $(SUBDIRS:%=%/__crosstest__) crosstest:: $(SUBDIRS:%=%/__crosstest__)
# Rules for auto documentation
$(SUBDIRS:%=%/__man__): dummy
cd `dirname $@` && $(MAKE) man
man: $(C_SRCS) $(SUBDIRS:%=%/__man__)
$(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -S$(api_manext) $(DIVINCL) $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_html__): dummy
cd `dirname $@` && $(MAKE) doc-html
doc-html: $(C_SRCS) $(SUBDIRS:%=%/__doc_html__)
$(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPOBJDIR) $(DIVINCL) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_sgml__): dummy
cd `dirname $@` && $(MAKE) doc-sgml
doc-sgml: $(C_SRCS) $(SUBDIRS:%=%/__doc_sgml__)
$(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPOBJDIR) $(DIVINCL) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
.PHONY: man doc-html doc-sgml $(SUBDIRS:%=%/__man__) $(SUBDIRS:%=%/__doc_html__) $(SUBDIRS:%=%/__doc_sgml__)
# Sanity check # Sanity check
Makedll.rules: $(TOPSRCDIR)/dlls/Makedll.rules.in $(TOPSRCDIR)/configure Makedll.rules: $(TOPSRCDIR)/dlls/Makedll.rules.in $(TOPSRCDIR)/configure
@ -90,4 +111,8 @@ install:: install_lib @WIN16_INSTALL@
uninstall:: uninstall::
$(RM) $(dlldir)/$(MODULE)$(DLLEXT) $(ALTNAMES:%=$(dlldir)/%$(DLLEXT)) $(RM) $(dlldir)/$(MODULE)$(DLLEXT) $(ALTNAMES:%=$(dlldir)/%$(DLLEXT))
# Misc. rules
$(SPEC_SRCS16:.spec=.spec.c): $(WINEBUILD)
# End of global dll rules # End of global dll rules

View File

@ -10,6 +10,8 @@ EXTRALIBS = $(LIBUUID)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
acmstream.c \ acmstream.c \
api.c \ api.c \

View File

@ -10,6 +10,8 @@ EXTRALIBS = $(LIBUUID)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
cdlg32.c \ cdlg32.c \
colordlg.c \ colordlg.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = ctl3d.dll ctl3dv2.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = ctl3d32.c C_SRCS = ctl3d32.c
C_SRCS16 = ctl3d.c C_SRCS16 = ctl3d.c

View File

@ -12,6 +12,11 @@ EXTRALIBS = $(LIBUNICODE)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = \
dispdib.spec \
gdi.exe.spec \
wing.spec
C_SRCS = \ C_SRCS = \
$(TOPOBJDIR)/graphics/bitblt.c \ $(TOPOBJDIR)/graphics/bitblt.c \
$(TOPOBJDIR)/graphics/dispdib.c \ $(TOPOBJDIR)/graphics/dispdib.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = imm.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
imm.c imm.c

View File

@ -9,6 +9,16 @@ ALTNAMES = krnl386.exe comm.dll stress.dll system.dll toolhelp.dll windebug.dll
LDIMPORTS = ntdll.dll LDIMPORTS = ntdll.dll
DLLMAIN = MAIN_KernelInit DLLMAIN = MAIN_KernelInit
SPEC_SRCS16 = \
comm.spec \
krnl386.exe.spec \
stress.spec \
system.spec \
toolhelp.spec \
win87em.spec \
windebug.spec \
wprocs.spec
C_SRCS = \ C_SRCS = \
$(TOPOBJDIR)/ole/ole2nls.c \ $(TOPOBJDIR)/ole/ole2nls.c \
comm.c \ comm.c \

View File

@ -10,6 +10,8 @@ EXTRALIBS = $(LIBUNICODE)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = lzexpand_main.c C_SRCS = lzexpand_main.c
C_SRCS16 = lzexpand16.c C_SRCS16 = lzexpand16.c

View File

@ -9,6 +9,8 @@ ALTNAMES = msacm.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
driver.c \ driver.c \
filter.c \ filter.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = msvideo.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
mciwnd.c \ mciwnd.c \
msvideo_main.c \ msvideo_main.c \

View File

@ -11,6 +11,8 @@ EXTRALIBS = $(LIBUUID)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
antimoniker.c \ antimoniker.c \
bindctx.c \ bindctx.c \

View File

@ -12,6 +12,8 @@ EXTRALIBS = $(LIBUNICODE) $(LIBUUID) @GIFLIB@ @JPEGLIB@
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
connpt.c \ connpt.c \
dispatch.c \ dispatch.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = olecli.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
olecli_main.c olecli_main.c

View File

@ -9,6 +9,8 @@ ALTNAMES = olesvr.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
olesvr_main.c olesvr_main.c

View File

@ -9,6 +9,8 @@ ALTNAMES = rasapi16.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = rasapi.c C_SRCS = rasapi.c
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@

View File

@ -11,6 +11,8 @@ EXTRALIBS = $(LIBUNICODE)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
devinst.c \ devinst.c \
dirid.c \ dirid.c \

View File

@ -12,6 +12,8 @@ EXTRALIBS = $(LIBUUID) $(LIBUNICODE)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
brsfolder.c \ brsfolder.c \
changenotify.c \ changenotify.c \

View File

@ -12,6 +12,13 @@ DLLMAIN = UserClientDllInitialize
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = \
ddeml.spec \
display.spec \
keyboard.spec \
mouse.spec \
user.exe.spec
C_SRCS = \ C_SRCS = \
$(TOPOBJDIR)/controls/button.c \ $(TOPOBJDIR)/controls/button.c \
$(TOPOBJDIR)/controls/combo.c \ $(TOPOBJDIR)/controls/combo.c \

View File

@ -10,6 +10,8 @@ EXTRALIBS = $(LIBUNICODE)
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
info.c \ info.c \
install.c \ install.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = w32sys.dll win32s16.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
w32skernel.c \ w32skernel.c \
w32sys.c w32sys.c

View File

@ -9,6 +9,8 @@ ALTNAMES = winaspi.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
aspi.c \ aspi.c \
winaspi32.c winaspi32.c

View File

@ -10,6 +10,8 @@ EXTRAINCL = @FREETYPEINCL@
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = wineps16.drv.spec
FONTMETRICS = \ FONTMETRICS = \
AvantGarde_Book \ AvantGarde_Book \
AvantGarde_BookOblique \ AvantGarde_BookOblique \

View File

@ -10,6 +10,8 @@ ALTNAMES = mmsystem.dll sound.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
driver.c \ driver.c \
joystick.c \ joystick.c \

View File

@ -9,6 +9,8 @@ ALTNAMES = winnls.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
winnls.c winnls.c

View File

@ -10,6 +10,8 @@ ALTNAMES = winsock.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
async.c \ async.c \
socket.c socket.c

View File

@ -9,6 +9,8 @@ ALTNAMES = wintab.dll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
SPEC_SRCS16 = $(ALTNAMES:.dll=.spec)
C_SRCS = \ C_SRCS = \
context.c \ context.c \
manager.c manager.c

View File

@ -6,8 +6,6 @@ MODULE = wine
IMPORTS = ntdll IMPORTS = ntdll
LDIMPORTS = ntdll.dll LDIMPORTS = ntdll.dll
SPEC_SRCS = wine.spec
C_SRCS = \ C_SRCS = \
main.c main.c
@ -15,13 +13,13 @@ all: $(MODULE)
@MAKE_RULES@ @MAKE_RULES@
ALL_OBJS = $(SPEC_SRCS:.spec=.spec.o) $(OBJS) ALL_OBJS = $(MODULE).spec.o $(OBJS)
$(MODULE): $(ALL_OBJS) $(MODULE): $(ALL_OBJS)
$(CC) -o $@ $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBPORT) $(LIBS) $(LDFLAGS) $(CC) -o $@ $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBPORT) $(LIBS) $(LDFLAGS)
wine.spec.c: $(WINEBUILD) $(MODULE).spec.c: $(WINEBUILD)
$(LDPATH) $(WINEBUILD) $(DEFS) -o $@ --exe wine --exe-mode gui --entry wine_initial_task -L$(DLLDIR) $(IMPORTS:%=-l%) $(LDPATH) $(WINEBUILD) $(DEFS) -o $@ --exe $(MODULE) --exe-mode gui --entry wine_initial_task -L$(DLLDIR) $(IMPORTS:%=-l%)
install:: $(MODULE) install:: $(MODULE)
$(MKINSTALLDIRS) $(bindir) $(MKINSTALLDIRS) $(bindir)