diff --git a/reactos/lib/gdi32/gdi32.def b/reactos/lib/gdi32/gdi32.def new file mode 100644 index 00000000000..e24706b3947 --- /dev/null +++ b/reactos/lib/gdi32/gdi32.def @@ -0,0 +1,342 @@ +; $Id: gdi32.def,v 1.1 1999/05/23 07:41:33 ea Exp $ +; +; gdi32.def +; +; ReactOS Operating System +; +; Aliased symbols from Anders Norlander's w32api-0.1.5 gdi32.def. +; +LIBRARY gdi32 +EXPORTS + AbortDoc = AbortDoc@4 + AbortPath = AbortPath@4 + AddFontResourceA = AddFontResourceA@4 + AddFontResourceW = AddFontResourceW@4 + AngleArc = AngleArc@24 + AnimatePalette = AnimatePalette@16 + Arc = Arc@36 + ArcTo = ArcTo@36 + BeginPath = BeginPath@4 + BitBlt = BitBlt@36 + CancelDC = CancelDC@4 + CheckColorsInGamut = CheckColorsInGamut@16 + ChoosePixelFormat = ChoosePixelFormat@8 + Chord = Chord@36 + CloseEnhMetaFile = CloseEnhMetaFile@4 + CloseFigure = CloseFigure@4 + CloseMetaFile = CloseMetaFile@4 + ColorMatchToTarget = ColorMatchToTarget@12 + CombineRgn = CombineRgn@16 + CombineTransform = CombineTransform@12 + CopyEnhMetaFileA = CopyEnhMetaFileA@8 + CopyEnhMetaFileW = CopyEnhMetaFileW@8 + CopyMetaFileA = CopyMetaFileA@8 + CopyMetaFileW = CopyMetaFileW@8 + CreateBitmap = CreateBitmap@20 + CreateBitmapIndirect = CreateBitmapIndirect@4 + CreateBrushIndirect = CreateBrushIndirect@4 + CreateColorSpaceA = CreateColorSpaceA@4 + CreateColorSpaceW = CreateColorSpaceW@4 + CreateCompatibleBitmap = CreateCompatibleBitmap@12 + CreateCompatibleDC = CreateCompatibleDC@4 + CreateDCA = CreateDCA@16 + CreateDCW = CreateDCW@16 + CreateDIBPatternBrush = CreateDIBPatternBrush@8 + CreateDIBPatternBrushPt = CreateDIBPatternBrushPt@8 + CreateDIBSection = CreateDIBSection@24 + CreateDIBitmap = CreateDIBitmap@24 + CreateDiscardableBitmap = CreateDiscardableBitmap@12 + CreateEllipticRgn = CreateEllipticRgn@16 + CreateEllipticRgnIndirect = CreateEllipticRgnIndirect@4 + CreateEnhMetaFileA = CreateEnhMetaFileA@16 + CreateEnhMetaFileW = CreateEnhMetaFileW@16 + CreateFontA = CreateFontA@56 + CreateFontIndirectA = CreateFontIndirectA@4 + CreateFontIndirectW = CreateFontIndirectW@4 + CreateFontW = CreateFontW@56 + CreateHalftonePalette = CreateHalftonePalette@4 + CreateHatchBrush = CreateHatchBrush@8 + CreateICA = CreateICA@16 + CreateICW = CreateICW@16 + CreateMetaFileA = CreateMetaFileA@4 + CreateMetaFileW = CreateMetaFileW@4 + CreatePalette = CreatePalette@4 + CreatePatternBrush = CreatePatternBrush@4 + CreatePen = CreatePen@12 + CreatePenIndirect = CreatePenIndirect@4 + CreatePolyPolygonRgn = CreatePolyPolygonRgn@16 + CreatePolygonRgn = CreatePolygonRgn@12 + CreateRectRgn = CreateRectRgn@16 + CreateRectRgnIndirect = CreateRectRgnIndirect@4 + CreateRoundRectRgn = CreateRoundRectRgn@24 + CreateScalableFontResourceA = CreateScalableFontResourceA@16 + CreateScalableFontResourceW = CreateScalableFontResourceW@16 + CreateSolidBrush = CreateSolidBrush@4 + DPtoLP = DPtoLP@12 + DeleteColorSpace = DeleteColorSpace@4 + DeleteDC = DeleteDC@4 + DeleteEnhMetaFile = DeleteEnhMetaFile@4 + DeleteMetaFile = DeleteMetaFile@4 + DeleteObject = DeleteObject@4 + DescribePixelFormat = DescribePixelFormat@16 + DeviceCapabilitiesEx = DeviceCapabilitiesEx@24 + DeviceCapabilitiesExA = DeviceCapabilitiesExA@24 + DeviceCapabilitiesExW = DeviceCapabilitiesExW@24 + DrawEscape = DrawEscape@16 + Ellipse = Ellipse@20 + EndDoc = EndDoc@4 + EndPage = EndPage@4 + EndPath = EndPath@4 + EnumEnhMetaFile = EnumEnhMetaFile@20 + EnumFontFamiliesA = EnumFontFamiliesA@16 + EnumFontFamiliesExA = EnumFontFamiliesExA@20 + EnumFontFamiliesExW = EnumFontFamiliesExW@20 + EnumFontFamiliesW = EnumFontFamiliesW@16 + EnumFontsA = EnumFontsA@16 + EnumFontsW = EnumFontsW@16 + EnumICMProfilesA = EnumICMProfilesA@12 + EnumICMProfilesW = EnumICMProfilesW@12 + EnumMetaFile = EnumMetaFile@16 + EnumObjects = EnumObjects@16 + EqualRgn = EqualRgn@8 + Escape = Escape@20 + ExcludeClipRect = ExcludeClipRect@20 + ExtCreatePen = ExtCreatePen@20 + ExtCreateRegion = ExtCreateRegion@12 + ExtEscape = ExtEscape@24 + ExtFloodFill = ExtFloodFill@20 + ExtSelectClipRgn = ExtSelectClipRgn@12 + ExtTextOutA = ExtTextOutA@32 + ExtTextOutW = ExtTextOutW@32 + FillPath = FillPath@4 + FillRgn = FillRgn@12 + FixBrushOrgEx = FixBrushOrgEx@16 + FlattenPath = FlattenPath@4 + FloodFill = FloodFill@16 + FrameRgn = FrameRgn@20 + GdiComment = GdiComment@12 + GdiFlush = GdiFlush@0 + GdiGetBatchLimit = GdiGetBatchLimit@0 + GdiPlayDCScript = GdiPlayDCScript@24 + GdiPlayJournal = GdiPlayJournal@20 + GdiPlayScript = GdiPlayScript@28 + GdiSetBatchLimit = GdiSetBatchLimit@4 + GetArcDirection = GetArcDirection@4 + GetAspectRatioFilterEx = GetAspectRatioFilterEx@8 + GetBitmapBits = GetBitmapBits@12 + GetBitmapDimensionEx = GetBitmapDimensionEx@8 + GetBkColor = GetBkColor@4 + GetBkMode = GetBkMode@4 + GetBoundsRect = GetBoundsRect@12 + GetBrushOrgEx = GetBrushOrgEx@8 + GetCharABCWidthsA = GetCharABCWidthsA@16 + GetCharABCWidthsFloatA = GetCharABCWidthsFloatA@16 + GetCharABCWidthsFloatW = GetCharABCWidthsFloatW@16 + GetCharABCWidthsW = GetCharABCWidthsW@16 + GetCharWidth32A = GetCharWidth32A@16 + GetCharWidth32W = GetCharWidth32W@16 + GetCharWidthA = GetCharWidthA@16 + GetCharWidthFloatA = GetCharWidthFloatA@16 + GetCharWidthFloatW = GetCharWidthFloatW@16 + GetCharWidthW = GetCharWidthW@16 + GetCharacterPlacementA = GetCharacterPlacementA@24 + GetCharacterPlacementW = GetCharacterPlacementW@24 + GetClipBox = GetClipBox@8 + GetClipRgn = GetClipRgn@8 + GetColorAdjustment = GetColorAdjustment@8 + GetColorSpace = GetColorSpace@4 + GetCurrentObject = GetCurrentObject@8 + GetCurrentPositionEx = GetCurrentPositionEx@8 + GetDCOrgEx = GetDCOrgEx@8 + GetDIBColorTable = GetDIBColorTable@16 + GetDIBits = GetDIBits@28 + GetDeviceCaps = GetDeviceCaps@8 + GetDeviceGammaRamp = GetDeviceGammaRamp@8 + GetEnhMetaFileA = GetEnhMetaFileA@4 + GetEnhMetaFileBits = GetEnhMetaFileBits@12 + GetEnhMetaFileDescriptionA = GetEnhMetaFileDescriptionA@12 + GetEnhMetaFileDescriptionW = GetEnhMetaFileDescriptionW@12 + GetEnhMetaFileHeader = GetEnhMetaFileHeader@12 + GetEnhMetaFilePaletteEntries = GetEnhMetaFilePaletteEntries@12 + GetEnhMetaFilePixelFormat = GetEnhMetaFilePixelFormat@12 + GetEnhMetaFileW = GetEnhMetaFileW@4 + GetFontData = GetFontData@20 + GetFontLanguageInfo = GetFontLanguageInfo@4 + GetFontResourceInfo = GetFontResourceInfo@16 + GetFontResourceInfoW = GetFontResourceInfoW@16 + GetGlyphOutline = GetGlyphOutline@28 + GetGlyphOutlineA = GetGlyphOutlineA@28 + GetGlyphOutlineW = GetGlyphOutlineW@28 + GetGlyphOutlineWow = GetGlyphOutlineWow@28 + GetGraphicsMode = GetGraphicsMode@4 + GetICMProfileA = GetICMProfileA@12 + GetICMProfileW = GetICMProfileW@12 + GetKerningPairs = GetKerningPairs@12 + GetKerningPairsA = GetKerningPairsA@12 + GetKerningPairsW = GetKerningPairsW@12 + GetLogColorSpaceA = GetLogColorSpaceA@12 + GetLogColorSpaceW = GetLogColorSpaceW@12 + GetMapMode = GetMapMode@4 + GetMetaFileA = GetMetaFileA@4 + GetMetaFileBitsEx = GetMetaFileBitsEx@12 + GetMetaFileW = GetMetaFileW@4 + GetMetaRgn = GetMetaRgn@8 + GetMiterLimit = GetMiterLimit@8 + GetNearestColor = GetNearestColor@8 + GetNearestPaletteIndex = GetNearestPaletteIndex@8 + GetObjectA = GetObjectA@12 + GetObjectType = GetObjectType@4 + GetObjectW = GetObjectW@12 + GetOutlineTextMetricsA = GetOutlineTextMetricsA@12 + GetOutlineTextMetricsW = GetOutlineTextMetricsW@12 + GetPaletteEntries = GetPaletteEntries@16 + GetPath = GetPath@16 + GetPixel = GetPixel@12 + GetPixelFormat = GetPixelFormat@4 + GetPolyFillMode = GetPolyFillMode@4 + GetROP2 = GetROP2@4 + GetRandomRgn = GetRandomRgn@12 + GetRasterizerCaps = GetRasterizerCaps@8 + GetRegionData = GetRegionData@12 + GetRelAbs = GetRelAbs@8 + GetRgnBox = GetRgnBox@8 + GetStockObject = GetStockObject@4 + GetStretchBltMode = GetStretchBltMode@4 + GetSystemPaletteEntries = GetSystemPaletteEntries@16 + GetSystemPaletteUse = GetSystemPaletteUse@4 + GetTextAlign = GetTextAlign@4 + GetTextCharacterExtra = GetTextCharacterExtra@4 + GetTextCharset = GetTextCharset@4 + GetTextCharsetInfo = GetTextCharsetInfo@12 + GetTextColor = GetTextColor@4 + GetTextExtentExPointA = GetTextExtentExPointA@28 + GetTextExtentExPointW = GetTextExtentExPointW@28 + GetTextExtentPoint32A = GetTextExtentPoint32A@16 + GetTextExtentPoint32W = GetTextExtentPoint32W@16 + GetTextExtentPointA = GetTextExtentPointA@16 + GetTextExtentPointW = GetTextExtentPointW@16 + GetTextFaceA = GetTextFaceA@12 + GetTextFaceW = GetTextFaceW@12 + GetTextMetricsA = GetTextMetricsA@8 + GetTextMetricsW = GetTextMetricsW@8 + GetViewportExtEx = GetViewportExtEx@8 + GetViewportOrgEx = GetViewportOrgEx@8 + GetWinMetaFileBits = GetWinMetaFileBits@20 + GetWindowExtEx = GetWindowExtEx@8 + GetWindowOrgEx = GetWindowOrgEx@8 + GetWorldTransform = GetWorldTransform@8 + IntersectClipRect = IntersectClipRect@20 + InvertRgn = InvertRgn@8 + LPtoDP = LPtoDP@12 + LineDDA = LineDDA@24 + LineTo = LineTo@12 + MaskBlt = MaskBlt@48 + ModifyWorldTransform = ModifyWorldTransform@12 + MoveToEx = MoveToEx@16 + OffsetClipRgn = OffsetClipRgn@12 + OffsetRgn = OffsetRgn@12 + OffsetViewportOrgEx = OffsetViewportOrgEx@16 + OffsetWindowOrgEx = OffsetWindowOrgEx@16 + PaintRgn = PaintRgn@8 + PatBlt = PatBlt@24 + PathToRegion = PathToRegion@4 + Pie = Pie@36 + PlayEnhMetaFile = PlayEnhMetaFile@12 + PlayEnhMetaFileRecord = PlayEnhMetaFileRecord@16 + PlayMetaFile = PlayMetaFile@8 + PlayMetaFileRecord = PlayMetaFileRecord@16 + PlgBlt = PlgBlt@40 + PolyBezier = PolyBezier@12 + PolyBezierTo = PolyBezierTo@12 + PolyDraw = PolyDraw@16 + PolyPolygon = PolyPolygon@16 + PolyPolyline = PolyPolyline@16 + PolyTextOutA = PolyTextOutA@12 + PolyTextOutW = PolyTextOutW@12 + Polygon = Polygon@12 + Polyline = Polyline@12 + PolylineTo = PolylineTo@12 + PtInRegion = PtInRegion@12 + PtVisible = PtVisible@12 + RealizePalette = RealizePalette@4 + RectInRegion = RectInRegion@8 + RectVisible = RectVisible@8 + Rectangle = Rectangle@20 + RemoveFontResourceA = RemoveFontResourceA@4 + RemoveFontResourceW = RemoveFontResourceW@4 + ResetDCA = ResetDCA@8 + ResetDCW = ResetDCW@8 + ResizePalette = ResizePalette@8 + RestoreDC = RestoreDC@8 + RoundRect = RoundRect@28 + SaveDC = SaveDC@4 + ScaleViewportExtEx = ScaleViewportExtEx@24 + ScaleWindowExtEx = ScaleWindowExtEx@24 + SelectBrushLocal = SelectBrushLocal@8 + SelectClipPath = SelectClipPath@8 + SelectClipRgn = SelectClipRgn@8 + SelectFontLocal = SelectFontLocal@8 + SelectObject = SelectObject@8 + SelectPalette = SelectPalette@12 + SetAbortProc = SetAbortProc@8 + SetArcDirection = SetArcDirection@8 + SetBitmapBits = SetBitmapBits@12 + SetBitmapDimensionEx = SetBitmapDimensionEx@16 + SetBkColor = SetBkColor@8 + SetBkMode = SetBkMode@8 + SetBoundsRect = SetBoundsRect@12 + SetBrushOrgEx = SetBrushOrgEx@16 + SetColorAdjustment = SetColorAdjustment@8 + SetColorSpace = SetColorSpace@8 + SetDIBColorTable = SetDIBColorTable@16 + SetDIBits = SetDIBits@28 + SetDIBitsToDevice = SetDIBitsToDevice@48 + SetDeviceGammaRamp = SetDeviceGammaRamp@8 + SetEnhMetaFileBits = SetEnhMetaFileBits@8 + SetFontEnumeration = SetFontEnumeration@4 + SetGraphicsMode = SetGraphicsMode@8 + SetICMMode = SetICMMode@8 + SetICMProfileA = SetICMProfileA@8 + SetICMProfileW = SetICMProfileW@8 + SetMapMode = SetMapMode@8 + SetMapperFlags = SetMapperFlags@8 + SetMetaFileBitsEx = SetMetaFileBitsEx@8 + SetMetaRgn = SetMetaRgn@4 + SetMiterLimit = SetMiterLimit@12 + SetPaletteEntries = SetPaletteEntries@16 + SetPixel = SetPixel@16 + SetPixelFormat = SetPixelFormat@12 + SetPixelV = SetPixelV@16 + SetPolyFillMode = SetPolyFillMode@8 + SetROP2 = SetROP2@8 + SetRectRgn = SetRectRgn@20 + SetRelAbs = SetRelAbs@8 + SetStretchBltMode = SetStretchBltMode@8 + SetSystemPaletteUse = SetSystemPaletteUse@8 + SetTextAlign = SetTextAlign@8 + SetTextCharacterExtra = SetTextCharacterExtra@8 + SetTextColor = SetTextColor@8 + SetTextJustification = SetTextJustification@12 + SetViewportExtEx = SetViewportExtEx@16 + SetViewportOrgEx = SetViewportOrgEx@16 + SetWinMetaFileBits = SetWinMetaFileBits@16 + SetWindowExtEx = SetWindowExtEx@16 + SetWindowOrgEx = SetWindowOrgEx@16 + SetWorldTransform = SetWorldTransform@8 + StartDocA = StartDocA@8 + StartDocW = StartDocW@8 + StartPage = StartPage@4 + StretchBlt = StretchBlt@44 + StretchDIBits = StretchDIBits@52 + StrokeAndFillPath = StrokeAndFillPath@4 + StrokePath = StrokePath@4 + SwapBuffers = SwapBuffers@4 + TextOutA = TextOutA@20 + TextOutW = TextOutW@20 + TranslateCharsetInfo = TranslateCharsetInfo@12 + UnrealizeObject = UnrealizeObject@4 + UpdateColors = UpdateColors@4 + UpdateICMRegKeyA = UpdateICMRegKeyA@16 + UpdateICMRegKeyW = UpdateICMRegKeyW@16 + WidenPath = WidenPath@4 + gdiPlaySpoolStream = gdiPlaySpoolStream@24 diff --git a/reactos/lib/gdi32/gdi32.rc b/reactos/lib/gdi32/gdi32.rc new file mode 100644 index 00000000000..d7fe30c51b6 --- /dev/null +++ b/reactos/lib/gdi32/gdi32.rc @@ -0,0 +1,38 @@ +#include "../../include/defines.h" +#include "../../include/reactos/resource.h" + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "GDI Client Dll\0" + VALUE "FileVersion", "post 0.0.13\0" + VALUE "InternalName", "gdi32\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "gdi32.dll\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + diff --git a/reactos/lib/gdi32/gdi32_specs b/reactos/lib/gdi32/gdi32_specs new file mode 100644 index 00000000000..096efd6c4c1 --- /dev/null +++ b/reactos/lib/gdi32/gdi32_specs @@ -0,0 +1,78 @@ +*asm: + + +*asm_final: + + +*cpp: +-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} + +*cc1: +%(cc1_spec) + +*cc1plus: + + +*endfile: + + +*link: +%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12} + +*lib: + + +*libgcc: +-lgcc + +*startfile: + + +*switches_need_spaces: + + +*signed_char: +%{funsigned-char:-D__CHAR_UNSIGNED__} + +*predefines: +-Di386 -D_WIN32 -DWIN32 -D__WIN32__ -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) _D_stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -Asystem(winnt) -Acpu(i386) -Amachine(i386) + +*cross_compile: +1 + +*version: +egcs-2.91.57 + +*multilib: +. ; + +*multilib_defaults: + + +*multilib_extra: + + +*multilib_matches: + + +*linker: +collect2 + +*cpp_486: +%{!ansi:-Di486} -D__i486 -D__i486__ + +*cpp_586: +%{!ansi:-Di586 -Dpentium} -D__i586 -D__i586__ -D__pentium -D__pentium__ + +*cpp_686: +%{!ansi:-Di686 -Dpentiumpro} -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ + +*cpp_cpu_default: +%(cpp_586) + +*cpp_cpu: +-Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}} + +*cc1_cpu: +%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{mno-486:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}} + diff --git a/reactos/lib/gdi32/main/dllmain.c b/reactos/lib/gdi32/main/dllmain.c index 84683c68706..929f7b3f299 100644 --- a/reactos/lib/gdi32/main/dllmain.c +++ b/reactos/lib/gdi32/main/dllmain.c @@ -1,16 +1,23 @@ /* * dllmain.c * - * $Revision: 1.1 $ - * $Author: rex $ - * $Date: 1999/03/28 23:12:42 $ + * $Revision: 1.2 $ + * $Author: ea $ + * $Date: 1999/05/23 07:41:33 $ * */ #include -BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved) +BOOL +WINAPI +DllMain ( + HANDLE hDll, + DWORD dwReason, + LPVOID lpReserved + ) { return TRUE; } +/* EOF */ diff --git a/reactos/lib/gdi32/makefile b/reactos/lib/gdi32/makefile index 64191f7417b..6a014f300dc 100644 --- a/reactos/lib/gdi32/makefile +++ b/reactos/lib/gdi32/makefile @@ -1,39 +1,66 @@ +# $Id: makefile,v 1.2 1999/05/23 07:41:33 ea Exp $ +# +# Makefile for ReactOS gdi32.dll +# +TARGET=gdi32 ifneq ($(HOST),mingw32-windows) ifneq ($(HOST),mingw32-linux) - DLLTARGET=gdi32.a + DLLTARGET=$(TARGET).a else - DLLTARGET=gdi32.dll + DLLTARGET=$(TARGET).dll endif else - DLLTARGET=gdi32.dll + DLLTARGET=$(TARGET).dll endif all: $(DLLTARGET) MAIN_OBJECTS = main/dllmain.o -OBJECTS = $(MAIN_OBJECTS) +MISC_OBJECTS = misc/stubs.o -gdi32.a: $(OBJECTS) - $(AR) csr gdi32.a $(OBJECTS) +RESOURCE_OBJECTS = $(TARGET).coff -gdi32.dll: $(DLLMAIN) $(OBJECTS) gdi32.def - $(LD) -r $(OBJECTS) -o gdi32.o - $(DLLTOOL) --dllname gdi32.dll --def gdi32.def \ - --output-lib gdi32.a - $(CC) -specs=k32_specs -mdll -o junk.tmp \ - -Wl,--base-file,base.tmp gdi32.o ../ntdll/ntdll.a +OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(RESOURCE_OBJECTS) + +$(TARGET).a: $(OBJECTS) + $(AR) csr $(TARGET).a $(OBJECTS) + +$(TARGET).coff: $(TARGET).rc + $(RC) $(TARGET).rc $(TARGET).coff + +$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def + $(LD) -r $(OBJECTS) -o $(TARGET).o + $(DLLTOOL) \ + --dllname $(TARGET).dll + --def $(TARGET).def \ + --output-lib $(TARGET).a + $(CC) $(TARGET).o \ + ../ntdll/ntdll.a\ + -specs=$(TARGET)_specs \ + -mdll \ + -o junk.tmp \ + -Wl,--base-file,base.tmp - $(RM) junk.tmp - $(DLLTOOL) --dllname gdi32.dll --base-file base.tmp \ - --output-exp temp.exp --def gdi32.def + $(DLLTOOL) \ + --dllname $(TARGET).dll \ + --base-file base.tmp \ + --output-exp temp.exp \ + --def $(TARGET).def - $(RM) base.tmp - $(CC) -specs=k32_specs -mdll -o gdi32.dll gdi32.o ../ntdll/ntdll.a\ - -Wl,--image-base,0x70000000 \ - -Wl,--file-alignment,0x1000 \ - -Wl,--section-alignment,0x1000 \ - -Wl,temp.exp + $(CC) $(TARGET).o \ + ../ntdll/ntdll.a \ + -specs=$(TARGET)_specs \ + -mdll \ + -o $(TARGET).dll + -Wl,--image-base,0x70000000 \ + -Wl,--file-alignment,0x1000 \ + -Wl,--section-alignment,0x1000 \ + -Wl,temp.exp - $(RM) temp.exp - $(NM) --numeric-sort gdi32.dll > gdi32.sym + $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym include ../../rules.mak + +# EOF