makefiles: Generate rules for installing IDL include files.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alexandre Julliard 2015-11-04 17:02:44 +09:00
parent 316448cd47
commit a1a0139d48
35 changed files with 211 additions and 146 deletions

View File

@ -1,25 +1,35 @@
IDL_SRCS = \ IDL_SRCS = \
access.idl \
activaut.idl \ activaut.idl \
activdbg.idl \ activdbg.idl \
activscp.idl \ activscp.idl \
amstream.idl \ amstream.idl \
amvideo.idl \ amvideo.idl \
asptlb.idl \ asptlb.idl \
asynot.idl \
asysta.idl \
atliface.idl \ atliface.idl \
audioclient.idl \ audioclient.idl \
audiopolicy.idl \ audiopolicy.idl \
austream.idl \ austream.idl \
axcore.idl \
axextend.idl \
bdaiface.idl \ bdaiface.idl \
binres.idl \
bits.idl \ bits.idl \
bits1_5.idl \ bits1_5.idl \
bits2_0.idl \ bits2_0.idl \
bits2_5.idl \ bits2_5.idl \
bits3_0.idl \ bits3_0.idl \
chprst.idl \
cmdbas.idl \
cmdtxt.idl \
comcat.idl \ comcat.idl \
commoncontrols.idl \ commoncontrols.idl \
control.idl \ control.idl \
cor.idl \ cor.idl \
cordebug.idl \ cordebug.idl \
crtrow.idl \
ctfutb.idl \ ctfutb.idl \
ctxtcall.idl \ ctxtcall.idl \
d2d1.idl \ d2d1.idl \
@ -30,7 +40,14 @@ IDL_SRCS = \
d3d11sdklayers.idl \ d3d11sdklayers.idl \
d3dcommon.idl \ d3dcommon.idl \
d3dx10core.idl \ d3dx10core.idl \
dbccmd.idl \
dbcses.idl \
dbdsad.idl \
dbinit.idl \
dbprop.idl \
dbs.idl \
ddstream.idl \ ddstream.idl \
devenum.idl \
devicetopology.idl \ devicetopology.idl \
dimm.idl \ dimm.idl \
dispex.idl \ dispex.idl \
@ -43,7 +60,9 @@ IDL_SRCS = \
dxgi.idl \ dxgi.idl \
dxgi1_2.idl \ dxgi1_2.idl \
dxva2api.idl \ dxva2api.idl \
dyngraph.idl \
endpointvolume.idl \ endpointvolume.idl \
errrec.idl \
exdisp.idl \ exdisp.idl \
fusion.idl \ fusion.idl \
gameux.idl \ gameux.idl \
@ -96,6 +115,7 @@ IDL_SRCS = \
oleacc.idl \ oleacc.idl \
oledb.idl \ oledb.idl \
oleidl.idl \ oleidl.idl \
opnrst.idl \
optary.idl \ optary.idl \
perhist.idl \ perhist.idl \
propidl.idl \ propidl.idl \
@ -103,12 +123,22 @@ IDL_SRCS = \
pstore.idl \ pstore.idl \
qedit.idl \ qedit.idl \
richole.idl \ richole.idl \
row.idl \
rowchg.idl \
rowpos.idl \
rowpsc.idl \
rstbas.idl \
rstinf.idl \
rstloc.idl \
rstnot.idl \
sensevts.idl \ sensevts.idl \
servprov.idl \ servprov.idl \
sesprp.idl \
shdeprecated.idl \ shdeprecated.idl \
shldisp.idl \ shldisp.idl \
shobjidl.idl \ shobjidl.idl \
shtypes.idl \ shtypes.idl \
srcrst.idl \
stdole2.idl \ stdole2.idl \
strmif.idl \ strmif.idl \
structuredquerycondition.idl \ structuredquerycondition.idl \
@ -125,6 +155,7 @@ IDL_SRCS = \
urlhist.idl \ urlhist.idl \
urlmon.idl \ urlmon.idl \
vmr9.idl \ vmr9.idl \
vmrender.idl \
vss.idl \ vss.idl \
wbemcli.idl \ wbemcli.idl \
wbemdisp.idl \ wbemdisp.idl \
@ -148,6 +179,8 @@ IDL_SRCS = \
xapo.idl \ xapo.idl \
xaudio2.idl \ xaudio2.idl \
xaudio2fx.idl \ xaudio2fx.idl \
xmldom.idl \
xmldso.idl \
xmllite.idl xmllite.idl
HEADER_SRCS = \ HEADER_SRCS = \
@ -639,55 +672,3 @@ HEADER_SRCS = \
XTEMPLATE_SRCS = \ XTEMPLATE_SRCS = \
rmxftmpl.x rmxftmpl.x
SRCDIR_INCLUDES = \
access.idl \
asynot.idl \
asysta.idl \
axcore.idl \
axextend.idl \
binres.idl \
chprst.idl \
cmdbas.idl \
cmdtxt.idl \
crtrow.idl \
dbccmd.idl \
dbcses.idl \
dbdsad.idl \
dbinit.idl \
dbprop.idl \
dbs.idl \
devenum.idl \
dyngraph.idl \
errrec.idl \
opnrst.idl \
row.idl \
rowchg.idl \
rowpos.idl \
rowpsc.idl \
rstbas.idl \
rstinf.idl \
rstloc.idl \
rstnot.idl \
sesprp.idl \
srcrst.idl \
vmrender.idl \
xmldom.idl \
xmldso.idl
install install-dev::
for f in $(SRCDIR_INCLUDES); do case $$f in \
wine/*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \
msvcrt/*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/$$f ;; \
*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/windows/$$f ;; \
esac; done
# Don't just do a rm -rf on $(includedir) -- don't want to wipe out
# anything extra the user may have put there.
uninstall::
for f in $(SRCDIR_INCLUDES); do case $$f in \
wine/*) $(RM) $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \
msvcrt/*) $(RM) $(DESTDIR)$(includedir)/$$f ;; \
*) $(RM) $(DESTDIR)$(includedir)/windows/$$f ;; \
esac; done
-rmdir $(DESTDIR)$(includedir)/windows/ddk $(DESTDIR)$(includedir)/windows $(DESTDIR)$(includedir)/msvcrt/sys $(DESTDIR)$(includedir)/msvcrt

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a8c-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a8c-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a96-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a96-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a95-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a95-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
#define CHARS_IN_GUID 39 #define CHARS_IN_GUID 39
cpp_quote("#define CHARS_IN_GUID 39") cpp_quote("#define CHARS_IN_GUID 39")

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
interface IAMAnalogVideoDecoder; interface IAMAnalogVideoDecoder;
interface IAMAnalogVideoEncoder; interface IAMAnalogVideoEncoder;
interface IAMAudioInputMixer; interface IAMAudioInputMixer;

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733ab1-2a1c-11ce-ade5-00aa0044773d), uuid(0c733ab1-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a93-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a93-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a63-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a63-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a27-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a27-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733ab2-2a1c-11ce-ade5-00aa0044773d), uuid(0c733ab2-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a1d-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a1d-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a5d-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a5d-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a7a-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a7a-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a8b-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a8b-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a8a-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a8a-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
typedef DWORD DBKIND; typedef DWORD DBKIND;
enum DBKINDENUM { enum DBKINDENUM {

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
import "oaidl.idl"; import "oaidl.idl";
cpp_quote("#define CDEF_CLASS_DEFAULT 0x0001") cpp_quote("#define CDEF_CLASS_DEFAULT 0x0001")

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
interface IPinConnection; interface IPinConnection;
interface IPinFlowControl; interface IPinFlowControl;
interface IGraphConfig; interface IGraphConfig;

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a67-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a67-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a69-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a69-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
local, local,
object, object,

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
local, local,
object, object,

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a94-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a94-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0997a571-126e-11d0-9f8a-00a0c9a0631e), uuid(0997a571-126e-11d0-9f8a-00a0c9a0631e),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
local, local,
object, object,

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a55-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a55-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
local, local,
object, object,

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a83-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a83-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a85-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a85-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
[ [
object, object,
uuid(0c733a1e-2a1c-11ce-ade5-00aa0044773d), uuid(0c733a1e-2a1c-11ce-ade5-00aa0044773d),

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
cpp_quote("#if 0") cpp_quote("#if 0")
typedef DWORD IDirectDrawSurface7; typedef DWORD IDirectDrawSurface7;
typedef DWORD IDirectDraw7; typedef DWORD IDirectDraw7;

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
#include <xmldomdid.h> #include <xmldomdid.h>
#include <idispids.h> #include <idispids.h>

View File

@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#if 0
#pragma makedep install
#endif
#include <idispids.h> #include <idispids.h>
#include <xmldsodid.h> #include <xmldsodid.h>

View File

@ -47,46 +47,10 @@ my %exported_wine_headers = (
"wine/svcctl.idl" => 1, "wine/svcctl.idl" => 1,
); );
my %private_idl_headers = (
"access.idl" => 1,
"asynot.idl" => 1,
"asysta.idl" => 1,
"axcore.idl" => 1,
"axextend.idl" => 1,
"binres.idl" => 1,
"chprst.idl" => 1,
"cmdbas.idl" => 1,
"cmdtxt.idl" => 1,
"crtrow.idl" => 1,
"dbccmd.idl" => 1,
"dbcses.idl" => 1,
"dbdsad.idl" => 1,
"dbinit.idl" => 1,
"dbprop.idl" => 1,
"dbs.idl" => 1,
"devenum.idl" => 1,
"dyngraph.idl" => 1,
"errrec.idl" => 1,
"opnrst.idl" => 1,
"row.idl" => 1,
"rowchg.idl" => 1,
"rowpos.idl" => 1,
"rowpsc.idl" => 1,
"rstbas.idl" => 1,
"rstinf.idl" => 1,
"rstloc.idl" => 1,
"rstnot.idl" => 1,
"srcrst.idl" => 1,
"sesprp.idl" => 1,
"vmrender.idl" => 1,
"xmldom.idl" => 1,
"xmldso.idl" => 1,
"wine/winedxgi.idl" => 1,
);
my %ignored_source_files = ( my %ignored_source_files = (
"dlls/wineps.drv/afm2c.c" => 1, "dlls/wineps.drv/afm2c.c" => 1,
"dlls/wineps.drv/mkagl.c" => 1, "dlls/wineps.drv/mkagl.c" => 1,
"include/config.h.in" => 1,
"programs/winetest/dist.rc" => 1, "programs/winetest/dist.rc" => 1,
"tools/makedep.c" => 1, "tools/makedep.c" => 1,
); );
@ -365,35 +329,22 @@ sub assign_sources_to_makefiles(@)
my $make = $makefiles{"$dir/Makefile"}; my $make = $makefiles{"$dir/Makefile"};
my $name = substr( $file, length($dir) + 1 ); my $name = substr( $file, length($dir) + 1 );
my %flags = get_makedep_flags( $file );
next if $file =~ /^include\/wine\// && !%flags && !$exported_wine_headers{$name};
${$make}{"=flags"}{"clean"} = 1 if $subdir; ${$make}{"=flags"}{"clean"} = 1 if $subdir;
if ($dir eq "include")
{
next if ($name =~ /\.in$/);
if ($name =~ /^wine\// && !$exported_wine_headers{$name})
{
if ($private_idl_headers{$name}) { push @{${$make}{"=IDL_SRCS"}}, $name; }
next;
}
if ($private_idl_headers{$name}) { push @{${$make}{"=SRCDIR_INCLUDES"}}, $name; }
elsif ($name =~ /\.h$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.x$/) { push @{${$make}{"=XTEMPLATE_SRCS"}}, $name; }
elsif ($name =~ /\.rh$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.inl$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.idl$/) { push @{${$make}{"=IDL_SRCS"}}, $name; }
else { die "unknown file $name in include dir"; }
}
else
{
if ($name =~ /\.m$/) { push @{${$make}{"=OBJC_SRCS"}}, $name; } if ($name =~ /\.m$/) { push @{${$make}{"=OBJC_SRCS"}}, $name; }
elsif ($name =~ /\.l$/) { push @{${$make}{"=LEX_SRCS"}}, $name; } elsif ($name =~ /\.l$/) { push @{${$make}{"=LEX_SRCS"}}, $name; }
elsif ($name =~ /\.y$/) { push @{${$make}{"=BISON_SRCS"}}, $name; } elsif ($name =~ /\.y$/) { push @{${$make}{"=BISON_SRCS"}}, $name; }
elsif ($name =~ /\.x$/) { push @{${$make}{"=XTEMPLATE_SRCS"}}, $name; }
elsif ($name =~ /\.rh$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.inl$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.svg$/) { push @{${$make}{"=SVG_SRCS"}}, $name; } elsif ($name =~ /\.svg$/) { push @{${$make}{"=SVG_SRCS"}}, $name; }
elsif ($name =~ /\.sfd$/) { push @{${$make}{"=FONT_SRCS"}}, $name; } elsif ($name =~ /\.sfd$/) { push @{${$make}{"=FONT_SRCS"}}, $name; }
elsif ($name =~ /\.c$/) elsif ($name =~ /\.c$/)
{ {
my %flags = get_makedep_flags( $file );
if (defined $flags{"implib"}) if (defined $flags{"implib"})
{ {
push @{${$make}{"=IMPLIB_SRCS"}}, $name; push @{${$make}{"=IMPLIB_SRCS"}}, $name;
@ -401,9 +352,14 @@ sub assign_sources_to_makefiles(@)
} }
push @{${$make}{"=C_SRCS"}}, $name; push @{${$make}{"=C_SRCS"}}, $name;
} }
elsif ($name =~ /\.h$/)
{
next if $dir ne "include";
push @{${$make}{"=HEADER_SRCS"}}, $name;
${${$make}{"=flags"}}{"install-dev"} = 1;
}
elsif ($name =~ /\.rc$/) elsif ($name =~ /\.rc$/)
{ {
my %flags = get_makedep_flags( $file );
${${$make}{"=flags"}}{"po"} = 1 if defined $flags{"po"}; ${${$make}{"=flags"}}{"po"} = 1 if defined $flags{"po"};
push @{${$make}{"=RC_SRCS"}}, $name; push @{${$make}{"=RC_SRCS"}}, $name;
} }
@ -414,8 +370,7 @@ sub assign_sources_to_makefiles(@)
} }
elsif ($name =~ /\.idl$/) elsif ($name =~ /\.idl$/)
{ {
my %flags = get_makedep_flags( $file ); die "no makedep flags specified in $file" unless %flags || $dir eq "include";
die "no makedep flags specified in $file" unless %flags;
push @{${$make}{"=IDL_SRCS"}}, $name; push @{${$make}{"=IDL_SRCS"}}, $name;
${${$make}{"=flags"}}{"clean"} = 1; ${${$make}{"=flags"}}{"clean"} = 1;
} }
@ -429,7 +384,6 @@ sub assign_sources_to_makefiles(@)
push @{${$make}{"=IN_SRCS"}}, $name; push @{${$make}{"=IN_SRCS"}}, $name;
} }
} }
}
# preserve shared source files from the parent makefile # preserve shared source files from the parent makefile
foreach my $file (@makefiles) foreach my $file (@makefiles)
@ -548,8 +502,6 @@ sub update_makefiles(@)
replace_makefile_variable( $file, "IN_SRCS" ); replace_makefile_variable( $file, "IN_SRCS" );
replace_makefile_variable( $file, "IMPLIB_SRCS" ); replace_makefile_variable( $file, "IMPLIB_SRCS" );
replace_makefile_variable( $file, "MANPAGES" ); replace_makefile_variable( $file, "MANPAGES" );
next unless $file eq "include/Makefile";
replace_makefile_variable( $file, "SRCDIR_INCLUDES" );
} }
push @lines, "dnl End of auto-generated output commands\n"; push @lines, "dnl End of auto-generated output commands\n";