2000-02-18 03:38:33 +08:00
|
|
|
#
|
|
|
|
# Makefile.in
|
|
|
|
#
|
|
|
|
# This file is part of a free library for the Win32 API.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
|
|
|
|
# start config section
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
SUBDIRS := ddk directx
|
|
|
|
subdirs := ddk directx
|
2002-10-15 03:59:04 +08:00
|
|
|
|
|
|
|
host_alias = @host@
|
|
|
|
build_alias = @build@
|
|
|
|
target_alias = @target@
|
2006-08-30 21:04:41 +08:00
|
|
|
with_cross_host = @with_cross_host@
|
2000-02-18 03:38:33 +08:00
|
|
|
prefix = @prefix@
|
2001-04-25 11:51:06 +08:00
|
|
|
includedir:=@includedir@
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
exec_prefix = @exec_prefix@
|
2001-09-05 04:56:23 +08:00
|
|
|
libdir:=@libdir@
|
2000-02-18 03:38:33 +08:00
|
|
|
bindir = @bindir@
|
2000-12-12 02:14:15 +08:00
|
|
|
ifeq ($(target_alias),$(host_alias))
|
|
|
|
ifeq ($(build_alias),$(host_alias))
|
|
|
|
tooldir:=$(exec_prefix)
|
|
|
|
else
|
|
|
|
tooldir:=$(exec_prefix)/$(target_alias)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
tooldir:=$(exec_prefix)/$(target_alias)
|
|
|
|
endif
|
2000-02-18 03:38:33 +08:00
|
|
|
datadir = @datadir@
|
|
|
|
infodir = @infodir@
|
2001-03-02 04:32:34 +08:00
|
|
|
ifneq (,$(findstring cygwin,$(target_alias)))
|
2001-09-14 01:45:55 +08:00
|
|
|
inst_includedir:=$(tooldir)/include/w32api
|
|
|
|
inst_libdir:=$(tooldir)/lib/w32api
|
2001-09-13 20:06:28 +08:00
|
|
|
else
|
2006-09-12 08:29:04 +08:00
|
|
|
ifneq (,$(with_cross_host))
|
2006-08-30 21:04:41 +08:00
|
|
|
inst_includedir:=$(tooldir)/include/w32api
|
|
|
|
inst_libdir:=$(tooldir)/lib
|
|
|
|
else
|
2001-04-25 11:51:06 +08:00
|
|
|
inst_includedir:=$(includedir)
|
|
|
|
inst_libdir:=$(libdir)
|
2001-03-02 04:32:34 +08:00
|
|
|
endif
|
2006-08-30 21:04:41 +08:00
|
|
|
endif
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
mkinstalldirs = mkdir -p
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CC_FOR_TARGET = $(CC)
|
|
|
|
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
DLLTOOL_FLAGS = --as=$(AS) -k
|
|
|
|
AS = @AS@
|
|
|
|
AS_FOR_TARGET = $(AS_FOR_TARGET)
|
|
|
|
WINDRES = @WINDRES@
|
|
|
|
|
|
|
|
# Depending on if we build as part of winsup or mingw we need to
|
|
|
|
# add additional include paths in order to get the correct headers
|
|
|
|
# from the C library.
|
|
|
|
BUILDENV = @BUILDENV@
|
|
|
|
|
|
|
|
ifeq ($(BUILDENV), cygwin)
|
|
|
|
# winsup/include
|
|
|
|
# winsup/../newlib/libc/include
|
|
|
|
# winsup/../newlib/libc/sys/cygwin
|
|
|
|
EXTRA_INCLUDES = -I$(srcdir)/../../include -I$(srcdir)/../../../newlib/libc/include -I$(srcdir)/../../../newlib/libc/sys/cygwin
|
|
|
|
endif
|
|
|
|
ifeq ($(BUILDENV), mingw)
|
|
|
|
EXTRA_INCLUDES = -I$(srcdir)/../../mingw/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
INCLUDES = -I$(srcdir)/../include $(EXTRA_INCLUDES)
|
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
ALL_CFLAGS = $(CFLAGS) $(INCLUDES)
|
|
|
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
AR = @AR@
|
|
|
|
LD = @LD@
|
|
|
|
|
2002-10-15 03:59:04 +08:00
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
AS="$(AS)" \
|
|
|
|
CC="$(CC)" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
CFLAGS="$(CFLAGS)" \
|
|
|
|
CXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
AR="$(AR)" \
|
|
|
|
RANLIB="$(RANLIB)" \
|
|
|
|
LD="$(LD)" \
|
|
|
|
DLLTOOL="$(DLLTOOL)" \
|
|
|
|
TAR="$(TAR)" \
|
|
|
|
TARFLAGS="$(TARFLAGS)" \
|
|
|
|
TARFILEEXT="$(TARFILEEXT)" \
|
|
|
|
WINDRES="$(WINDRES)"
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
# end config section
|
|
|
|
|
|
|
|
# headers
|
|
|
|
|
|
|
|
HEADERS = $(notdir $(wildcard $(srcdir)/../include/*.h))
|
2002-05-28 21:20:28 +08:00
|
|
|
GL_HEADERS = $(notdir $(wildcard $(srcdir)/../include/GL/*.h))
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
# libraries
|
|
|
|
|
|
|
|
DEF_FILES = $(notdir $(wildcard $(srcdir)/*.def))
|
2003-11-27 10:14:37 +08:00
|
|
|
MRI_FILES = $(notdir $(wildcard $(srcdir)/*.mri))
|
2000-02-18 03:38:33 +08:00
|
|
|
IMPLIBS = $(addprefix lib,$(subst .def,.a,$(DEF_FILES)))
|
2003-11-27 10:14:37 +08:00
|
|
|
MIMPLIBS = $(addprefix lib,$(subst .mri,.a,$(MRI_FILES)))
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
EXTRA_LIBS=libuuid.a libscrnsave.a libscrnsavw.a liblargeint.a
|
2003-11-27 10:14:37 +08:00
|
|
|
LIBS = $(IMPLIBS) $(MIMPLIBS) $(EXTRA_LIBS)
|
2006-06-10 19:45:41 +08:00
|
|
|
UUID_OBJS = mshtml-uuid.o msxml-uuid.o unknwn-uuid.o \
|
2006-06-08 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/Makefile.in: Add objsafe-uuid oaidl-uuid docobj-uuid comcat-uuid
exdisp-uuid mlang-uuid objidl-uuid as sources and objects.
* lib/uuid.c (CATID_Control, CATID_DocObject, CATID_Insertable,
CATID_PersistsToPropertyBag, CATID_PersistsToStorage, CATID_PersistsToStream,
CATID_PersistsToStreamInit, CATID_Printable, CATID_Programmable,
CLSID_CMultiLanguage, CLSID_StdComponentCategoriesMgr, CLSID_WebBrowser,
DIID_DWebBrowserEvents, DIID_DWebBrowserEvents2, IID_IAdviseSink,
IID_IAdviseSink2, IID_IBindCtx, IID_ICatInformation, IID_ICatRegister,
IID_IClassActivator, IID_IContinueCallback, IID_ICreateErrorInfo,
IID_IDataAdviseHolder, IID_IDataObject, IID_IEnumCATEGORYINFO,
IID_IEnumGUID, IID_IEnumOleDocumentViews, IID_IErrorInfo,
IID_IExternalConnection, IID_IFillLockBytes, IID_ILockBytes, IID_IMalloc,
IID_IMarshal, IID_IMessageFilter, IID_IMoniker, IID_IObjectSafety,
IID_IOleCommandTarget, IID_IOleDocument, IID_IOleDocumentSite,
IID_IOleDocumentView, IID_IPSFactoryBuffer, IID_IPersist,
IID_IPersistFile, IID_IPersistStorage, IID_IPersistStream, IID_IPrint,
IID_IProgressNotify, IID_IPropertySetStorage, IID_IPropertyStorage,
IID_IROTData, IID_IRootStorage, IID_IRpcChannelBuffer,
IID_IRpcProxyBuffer, IID_IRpcStubBuffer, IID_IRunnableObject,
IID_IRunningObjectTable, IID_ISequentialStream, IID_IStdMarshalInfo,
IID_IStorage, IID_IStream, IID_ISupportErrorInfo, IID_IWebBrowser,
IID_IWebBrowser2, IID_IWebBrowserApp): Remove. Moved to new files.
* lib/comcat-uuid.c: New file.
* lib/docobj-uuid.c: New File.
* lib/exdisp-uuid.c: New file.
* lib/mlang-uuid.c: New file.
* lib/oaidl-uuid.c: New file.
* lib/objidl-uuid.c: New file.
* lib/objsafe-uuid.c: New file.
2006-06-09 05:16:20 +08:00
|
|
|
servprov-uuid.o oleidl-uuid.o oleacc-uuid.o ocidl-uuid.o \
|
|
|
|
objsafe-uuid.o oaidl-uuid.o docobj-uuid.o comcat-uuid.o \
|
2006-06-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/Makefile.in: Add cguid-uuid and olectlid-uuid as sources and
objects.
* lib/uuid.c (CLSID_CColorPropPage, CLSID_CFontPropPage,
CLSID_CPicturePropPage, CLSID_Picture_Dib, CLSID_Picture_Metafile,
CLSID_StdFont, CLSID_StdPicture, GUID_NULL, IID_ICreateTypeInfo,
IID_ICreateTypeInfo2, IID_ICreateTypeLib, IID_ICreateTypeLib2, IID_IDebug,
IID_IDebugStream, IID_IDispatch, IID_IEnumFORMATETC,IID_IEnumMoniker,
IID_IEnumOLEVERB, IID_IEnumSTATDATA, IID_IEnumSTATSTG, IID_IEnumString,
IID_IEnumUnknown, IID_IEnumVARIANT, IID_IOleLink, IID_IPSFactory,
IID_IRpcChannel, IID_IRpcProxy, IID_IRpcStub, IID_ITypeInfo,
IID_ITypeInfo2, IID_ITypeLib, IID_ITypeLib2): Remove. Moved to relevant
files.
* lib/oaidl-uuid.c (IID_ICreateTypeInfo, IID_ICreateTypeInfo2,
IID_ICreateTypeLib, IID_ICreateTypeLib2, IID_ITypeInfo, IID_ITypeInfo2,
IID_ITypeLib, IID_ITypeLib2, IID_IEnumVARIANT): Define.
* lib/cguid-uuid.c: New file.
* lib/olectlid-uuid.c: New file.
2006-06-10 07:53:06 +08:00
|
|
|
exdisp-uuid.o mlang-uuid.o objidl-uuid.o cguid-uuid.o \
|
2006-06-11 04:48:15 +08:00
|
|
|
olectlid-uuid.o ativscp-uuid.o urlmon-uuid.o hlink-uuid.o \
|
2008-01-29 Brandon Sneed <nivenh@sourceware.org>
* include/winnt.h (SYSTEM_POWER_CONDITION): typedef.
* include/winuser.h (PBT_POWERSETTINGCHANGE, DEVICE_NOTIFY_WINDOW_HANDLE,
DEVICE_NOTIFY_SERVICE_HANDLE): define.
* include/winuser.h (LPCGUID, HPOWERNOTIFY, POWERBROADCAST_SETTING): typedefs.
* include/winuser.h (GUID_POWERSCHEME_PERSONALITY, GUID_MIN_POWER_SAVINGS,
GUID_MAX_POWER_SAVINGS, GUID_TYPICAL_POWER_SAVINGS, GUID_ACDC_POWER_SOURCE,
GUID_BATTERY_PERCENTAGE_REMAINING, GUID_IDLE_BACKGROUND_TASK,
GUID_SYSTEM_AWAYMODE, GUID_MONITOR_POWER_ON): added externs for GUIDs.
* include/winuser.h (RegisterPowerSettingNotification,
UnregisterPowerSettingNotification): Add prototypes.
* lib/user32.def: Added imports for the above prototypes.
* lib/Makefile.in: Added build support for power-uuid.c.
* lib/power-uuid.c: New file containing power GUID definitions.
2008-01-30 05:18:49 +08:00
|
|
|
hlguids-uuid.o extras-uuid.o devguid.o power-uuid.o
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
EXTRA_OBJS = shell32.o scrnsave.o scrnsavw.o largeint.o \
|
2006-11-02 08:54:46 +08:00
|
|
|
$(UUID_OBJS) ws2_32.o
|
2006-06-10 19:45:41 +08:00
|
|
|
UUID_SOURCES = mshtml-uuid.c msxml-uuid.c unknwn-uuid.c \
|
2006-06-08 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/Makefile.in: Add objsafe-uuid oaidl-uuid docobj-uuid comcat-uuid
exdisp-uuid mlang-uuid objidl-uuid as sources and objects.
* lib/uuid.c (CATID_Control, CATID_DocObject, CATID_Insertable,
CATID_PersistsToPropertyBag, CATID_PersistsToStorage, CATID_PersistsToStream,
CATID_PersistsToStreamInit, CATID_Printable, CATID_Programmable,
CLSID_CMultiLanguage, CLSID_StdComponentCategoriesMgr, CLSID_WebBrowser,
DIID_DWebBrowserEvents, DIID_DWebBrowserEvents2, IID_IAdviseSink,
IID_IAdviseSink2, IID_IBindCtx, IID_ICatInformation, IID_ICatRegister,
IID_IClassActivator, IID_IContinueCallback, IID_ICreateErrorInfo,
IID_IDataAdviseHolder, IID_IDataObject, IID_IEnumCATEGORYINFO,
IID_IEnumGUID, IID_IEnumOleDocumentViews, IID_IErrorInfo,
IID_IExternalConnection, IID_IFillLockBytes, IID_ILockBytes, IID_IMalloc,
IID_IMarshal, IID_IMessageFilter, IID_IMoniker, IID_IObjectSafety,
IID_IOleCommandTarget, IID_IOleDocument, IID_IOleDocumentSite,
IID_IOleDocumentView, IID_IPSFactoryBuffer, IID_IPersist,
IID_IPersistFile, IID_IPersistStorage, IID_IPersistStream, IID_IPrint,
IID_IProgressNotify, IID_IPropertySetStorage, IID_IPropertyStorage,
IID_IROTData, IID_IRootStorage, IID_IRpcChannelBuffer,
IID_IRpcProxyBuffer, IID_IRpcStubBuffer, IID_IRunnableObject,
IID_IRunningObjectTable, IID_ISequentialStream, IID_IStdMarshalInfo,
IID_IStorage, IID_IStream, IID_ISupportErrorInfo, IID_IWebBrowser,
IID_IWebBrowser2, IID_IWebBrowserApp): Remove. Moved to new files.
* lib/comcat-uuid.c: New file.
* lib/docobj-uuid.c: New File.
* lib/exdisp-uuid.c: New file.
* lib/mlang-uuid.c: New file.
* lib/oaidl-uuid.c: New file.
* lib/objidl-uuid.c: New file.
* lib/objsafe-uuid.c: New file.
2006-06-09 05:16:20 +08:00
|
|
|
servprov-uuid.c oleidl-uuid.c oleacc-uuid.c ocidl-uuid.c \
|
|
|
|
objsafe-uuid.c oaidl-uuid.c docobj-uuid.c comcat-uuid.c \
|
2006-06-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/Makefile.in: Add cguid-uuid and olectlid-uuid as sources and
objects.
* lib/uuid.c (CLSID_CColorPropPage, CLSID_CFontPropPage,
CLSID_CPicturePropPage, CLSID_Picture_Dib, CLSID_Picture_Metafile,
CLSID_StdFont, CLSID_StdPicture, GUID_NULL, IID_ICreateTypeInfo,
IID_ICreateTypeInfo2, IID_ICreateTypeLib, IID_ICreateTypeLib2, IID_IDebug,
IID_IDebugStream, IID_IDispatch, IID_IEnumFORMATETC,IID_IEnumMoniker,
IID_IEnumOLEVERB, IID_IEnumSTATDATA, IID_IEnumSTATSTG, IID_IEnumString,
IID_IEnumUnknown, IID_IEnumVARIANT, IID_IOleLink, IID_IPSFactory,
IID_IRpcChannel, IID_IRpcProxy, IID_IRpcStub, IID_ITypeInfo,
IID_ITypeInfo2, IID_ITypeLib, IID_ITypeLib2): Remove. Moved to relevant
files.
* lib/oaidl-uuid.c (IID_ICreateTypeInfo, IID_ICreateTypeInfo2,
IID_ICreateTypeLib, IID_ICreateTypeLib2, IID_ITypeInfo, IID_ITypeInfo2,
IID_ITypeLib, IID_ITypeLib2, IID_IEnumVARIANT): Define.
* lib/cguid-uuid.c: New file.
* lib/olectlid-uuid.c: New file.
2006-06-10 07:53:06 +08:00
|
|
|
exdisp-uuid.c mlang-uuid.c objidl-uuid.c cguid-uuid.c \
|
2006-06-11 04:48:15 +08:00
|
|
|
olectlid-uuid.c ativscp-uuid.c urlmon-uuid.c hlink-uuid.c \
|
2008-01-29 Brandon Sneed <nivenh@sourceware.org>
* include/winnt.h (SYSTEM_POWER_CONDITION): typedef.
* include/winuser.h (PBT_POWERSETTINGCHANGE, DEVICE_NOTIFY_WINDOW_HANDLE,
DEVICE_NOTIFY_SERVICE_HANDLE): define.
* include/winuser.h (LPCGUID, HPOWERNOTIFY, POWERBROADCAST_SETTING): typedefs.
* include/winuser.h (GUID_POWERSCHEME_PERSONALITY, GUID_MIN_POWER_SAVINGS,
GUID_MAX_POWER_SAVINGS, GUID_TYPICAL_POWER_SAVINGS, GUID_ACDC_POWER_SOURCE,
GUID_BATTERY_PERCENTAGE_REMAINING, GUID_IDLE_BACKGROUND_TASK,
GUID_SYSTEM_AWAYMODE, GUID_MONITOR_POWER_ON): added externs for GUIDs.
* include/winuser.h (RegisterPowerSettingNotification,
UnregisterPowerSettingNotification): Add prototypes.
* lib/user32.def: Added imports for the above prototypes.
* lib/Makefile.in: Added build support for power-uuid.c.
* lib/power-uuid.c: New file containing power GUID definitions.
2008-01-30 05:18:49 +08:00
|
|
|
hlguids-uuid.c extras-uuid.c devguid.c power-uuid.c
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
SOURCES = scrnsave.c shell32.c largeint.c $(UUID_SOURCES)\
|
2006-11-02 08:54:46 +08:00
|
|
|
res.rc test.c ws2_32.c
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2003-11-27 10:14:37 +08:00
|
|
|
DISTFILES = Makefile.in $(DEF_FILES) $(MRI_FILES) $(SOURCES)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2001-11-05 04:38:00 +08:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
# targets
|
2006-10-27 09:02:29 +08:00
|
|
|
all: $(EXTRA_OBJS) $(LIBS) ddk directx
|
2002-10-15 03:59:04 +08:00
|
|
|
|
|
|
|
%-subdirs:
|
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
|
|
|
|
done
|
|
|
|
|
|
|
|
ddk:
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) -C $@
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
directx:
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) -C $@
|
|
|
|
|
2002-09-06 11:24:06 +08:00
|
|
|
TEST_OPTIONS = $(ALL_CFLAGS) -DWINVER=0x0666 \
|
|
|
|
-Wall -pedantic -Wsystem-headers -c $(srcdir)/test.c -o test.o
|
2004-03-30 06:39:46 +08:00
|
|
|
.PHONY: test ddk directx
|
2000-02-18 03:38:33 +08:00
|
|
|
test:
|
|
|
|
@echo "Testing w32api..."
|
|
|
|
@for lang in c c++ objective-c ; do \
|
|
|
|
echo "$$lang..."; \
|
|
|
|
$(CC) -x$$lang $(TEST_OPTIONS) ; \
|
|
|
|
echo "$$lang UNICODE..."; \
|
|
|
|
$(CC) -x$$lang -DUNICODE $(TEST_OPTIONS) ; \
|
|
|
|
done
|
|
|
|
@echo "windres..."
|
|
|
|
@$(WINDRES) --include-dir $(INCDIR) -i $(srcdir)/res.rc -o test.o
|
|
|
|
@echo "windres UNICODE..."
|
|
|
|
@$(WINDRES) --define UNICODE --include-dir $(INCDIR) -i $(srcdir)/res.rc -o test.o
|
|
|
|
@rm -f test.o
|
|
|
|
|
|
|
|
scrnsavw.o: scrnsave.c
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -DUNICODE -o $@ $<
|
|
|
|
|
|
|
|
# make rules
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o .def .a
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -o $@ $<
|
|
|
|
|
2003-03-30 05:31:15 +08:00
|
|
|
libuuid.a : $(UUID_OBJS)
|
|
|
|
$(AR) rc $@ $(UUID_OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2003-11-27 10:14:37 +08:00
|
|
|
# libvfw32.a contains import stubs for 3 dll's. Using an MRI script
|
|
|
|
# seems to be the simplest way to combine them into one archive.
|
|
|
|
# NB: With older dlltool, the object file members will not have unique
|
|
|
|
# names.
|
2003-11-28 07:34:18 +08:00
|
|
|
libvfw32.a : vfw32.mri libmsvfw32.a libavifil32.a libavicap32.a
|
2003-11-27 10:14:37 +08:00
|
|
|
rm -f $@
|
2003-11-28 07:34:18 +08:00
|
|
|
$(AR) -M < ${word 1,$^}
|
2003-11-27 10:14:37 +08:00
|
|
|
$(RANLIB) $@
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
lib%.a : %.def %.o
|
|
|
|
$(DLLTOOL) $(DLLTOOL_FLAGS) --output-lib $@ --def $(srcdir)/$*.def
|
|
|
|
$(AR) r $@ $*.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
lib%.a: %.def
|
|
|
|
$(DLLTOOL) $(DLLTOOL_FLAGS) --output-lib $@ --def $<
|
|
|
|
|
|
|
|
lib%.a: %.o
|
|
|
|
$(AR) rc $@ $*.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2002-11-26 02:14:25 +08:00
|
|
|
.PHONY: install install-libraries install-headers install-ddk
|
2000-10-20 12:39:21 +08:00
|
|
|
# install headers and libraries in a target specified directory.
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
install: install-libraries install-headers install-ddk install-directx
|
2000-10-20 12:39:21 +08:00
|
|
|
|
|
|
|
install-libraries: all
|
2001-04-25 11:51:06 +08:00
|
|
|
$(mkinstalldirs) $(inst_libdir)
|
2000-10-20 12:39:21 +08:00
|
|
|
for i in $(LIBS); do \
|
2001-04-25 11:51:06 +08:00
|
|
|
$(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \
|
2000-10-20 12:39:21 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
install-headers:
|
2001-04-25 11:51:06 +08:00
|
|
|
$(mkinstalldirs) $(inst_includedir)
|
2000-10-20 12:39:21 +08:00
|
|
|
for i in $(HEADERS); do \
|
2001-04-25 11:51:06 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/../include/$$i $(inst_includedir)/$$i ; \
|
2000-10-20 12:39:21 +08:00
|
|
|
done
|
2002-05-28 21:20:28 +08:00
|
|
|
$(mkinstalldirs) $(inst_includedir)/GL
|
|
|
|
for i in $(GL_HEADERS); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/../include/GL/$$i $(inst_includedir)/GL/$$i ; \
|
|
|
|
done
|
2000-10-20 12:39:21 +08:00
|
|
|
|
2002-10-15 03:59:04 +08:00
|
|
|
install-ddk: install-libraries install-headers
|
2003-03-11 22:44:58 +08:00
|
|
|
cd ddk && $(MAKE) install $(FLAGS_TO_PASS)
|
2002-10-15 03:59:04 +08:00
|
|
|
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
install-directx: install-libraries install-headers
|
|
|
|
cd directx && $(MAKE) install $(FLAGS_TO_PASS)
|
|
|
|
|
2001-02-13 03:45:33 +08:00
|
|
|
# uninstall headers and libraries from a target specified directory
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
uninstall: uninstall-ddk uninstall-directx uninstall-libraries uninstall-headers
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
uninstall-libraries:
|
|
|
|
@for i in $(LIBS); do \
|
2001-04-25 11:51:06 +08:00
|
|
|
rm -f $(inst_libdir)/$$i ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
2001-04-25 11:51:06 +08:00
|
|
|
rmdir $(inst_libdir)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
uninstall-headers:
|
|
|
|
@for i in $(HEADERS); do \
|
2001-04-25 11:51:06 +08:00
|
|
|
rm -r $(inst_includedir)/$$i ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
2001-04-25 11:51:06 +08:00
|
|
|
rmdir $(inst_includedir)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2002-11-26 02:14:25 +08:00
|
|
|
uninstall-ddk:
|
|
|
|
cd ddk && $(MAKE) -C uninstall $(FLAGS_TO_PASS)
|
2001-02-13 03:45:33 +08:00
|
|
|
|
2004-03-27 Filip Navara <xnavara@volny.cz>
* include/directx: New subdir.
* lib/directx: Ditto.
* include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h,
dxerr9.h): New files.
* lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def,
d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def,
dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c,
dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def,
dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def,
dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c,
dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def,
strmiids.c, test.c): Ditto.
* lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c,
dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
2004-03-27 10:25:37 +08:00
|
|
|
uninstall-directx:
|
|
|
|
cd directx && $(MAKE) -C uninstall $(FLAGS_TO_PASS)
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
dist:
|
|
|
|
mkdir $(distdir)/include
|
|
|
|
chmod 755 $(distdir)/include
|
|
|
|
@for i in $(HEADERS); do \
|
|
|
|
cp -p $(srcdir)/../include/$$i $(distdir)/include/$$i ; \
|
|
|
|
done
|
2002-11-26 02:14:25 +08:00
|
|
|
mkdir $(distdir)/include/GL
|
|
|
|
@for i in $(GL_HEADERS); do \
|
|
|
|
cp -p $(srcdir)/../include/GL/$$i $(distdir)/include/GL/$$i ; \
|
|
|
|
done
|
2000-02-18 03:38:33 +08:00
|
|
|
mkdir $(distdir)/lib
|
|
|
|
chmod 755 $(distdir)/lib
|
|
|
|
@for i in $(DISTFILES); do \
|
|
|
|
cp -p $(srcdir)/$$i $(distdir)/lib/$$i ; \
|
|
|
|
done
|
2002-11-26 02:14:25 +08:00
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
(cd $$i; $(MAKE) distdir=../$(distdir) dist); \
|
|
|
|
done
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
Makefile: Makefile.in ../config.status ../configure
|
|
|
|
cd ..; $(SHELL) config.status
|
|
|
|
|
|
|
|
# clean
|
|
|
|
|
|
|
|
mostlyclean:
|
|
|
|
rm -f *~ *.o *.s
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *.s *~
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f config.cache config.status config.log Makefile
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
2002-10-15 03:59:04 +08:00
|
|
|
|