Changeset 3031 for trunk/src/gdi32


Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (26 years ago)
Author:
bird
Message:

Makefiles are updated to new style.
Odin32 resource files are renamed to *.orc and most have changed name to avoid
name clashes for object files.

Location:
trunk/src/gdi32
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/makefile

    r2802 r3031  
    1 # $Id: makefile,v 1.22 2000-02-16 14:18:10 sandervl Exp $
     1# $Id: makefile,v 1.23 2000-03-06 23:38:38 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       gdi32.dll makefile
    77#
    88
     9# Directory macros.
    910PDWIN32_INCLUDE = ..\..\include
    10 PDWIN32_LIB = ..\..\lib
    11 PDWIN32_BIN = ..\..\bin
    12 PDWIN32_TOOLS = ..\..\tools\bin
     11PDWIN32_LIB     = ..\..\lib
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\tools\bin
    1314
    1415
     16# Compiler, tools, and interference rules.
    1517!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1618
    1719
    18 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    19 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     20# Flag overloads and local macros.
     21CLEANEXTRAS = gdi32rsrc.asm
    2022
     23
     24# Object files. All objects should be prefixed with $(OBJDIR)!
     25OBJS = \
     26$(OBJDIR)\gdi32.obj \
     27$(OBJDIR)\opengl.obj \
     28$(OBJDIR)\callback.obj \
     29$(OBJDIR)\dibsect.obj \
     30$(OBJDIR)\initterm.obj \
     31$(OBJDIR)\oslibgdi.obj \
     32$(OBJDIR)\font.obj \
     33$(OBJDIR)\text.obj \
     34$(OBJDIR)\palette.obj \
     35$(OBJDIR)\line.obj \
     36$(OBJDIR)\oslibgpi.obj \
     37$(OBJDIR)\region.obj \
     38$(OBJDIR)\metafile.obj \
     39$(OBJDIR)\dibitmap.obj \
     40$(OBJDIR)\blit.obj \
     41$(OBJDIR)\rgbcvt.obj \
     42$(OBJDIR)\dbglocal.obj \
     43$(OBJDIR)\gdi32rsrc.obj
     44
     45
     46# Target name - name of the dll without extention and path.
    2147TARGET = gdi32
    2248
    23 OBJS =  gdi32.obj opengl.obj callback.obj dibsect.obj initterm.obj resource.obj \
    24         oslibgdi.obj font.obj text.obj palette.obj line.obj oslibgpi.obj region.obj \
    25         metafile.obj dibitmap.obj blit.obj rgbcvt.obj dbglocal.obj
     49
     50# All rule - build objs, target dll, copies dll to bin and makes libs.
     51all:    $(OBJDIR) \
     52        $(OBJDIR)\$(TARGET).dll \
     53        $(PDWIN32_BIN)\$(TARGET).dll \
     54        lib
    2655
    2756
    28 all: $(TARGET).dll $(TARGET).lib
     57# Lib rule - build importlibrary (and evt. other libs)
     58lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    2959
    3060
    31 $(TARGET).dll: $(OBJS) $(TARGET).def
    32     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
    33           $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib $(PDWIN32_LIB)/user32.lib \
    34           $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    35     $(CP) $@ $(PDWIN32_BIN)
     61# Dll rule - builds the target dll.
     62$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     63    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    3664
    3765
    38 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    39 
    40 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    41     $(CP) $** $@
    42 
    43 $(TARGET).lib: $(TARGET)exp.def
    44     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
    45     $(CP) $@ $(PDWIN32_LIB)
    46 
    47 $(TARGET)exp.def: $(TARGET).def
    48     $(IMPDEF) $** $@
     66# Linker file - creates the parameter file passed on to the linker.
     67$(OBJDIR)\$(TARGET).lrf: makefile
     68    @echo Creating file <<$@
     69/OUT:$(OBJDIR)\$(TARGET).dll
     70/MAP:$(OBJDIR)\$(TARGET).map
     71$(OBJS)
     72$(PDWIN32_LIB)/pmwinx.lib
     73$(PDWIN32_LIB)/kernel32.lib
     74$(PDWIN32_LIB)/user32.lib
     75$(PDWIN32_LIB)/odincrt.lib
     76OS2386.LIB
     77$(RTLLIB_O)
     78$(TARGET).def
     79<<keep
    4980
    5081
    51 resource.asm: gdi32.rc
    52     $(RC) $(RCFLAGS) -o resource.asm gdi32.rc
    53 
    54 
     82# Dep rule - makes depenencies for C, C++ and Asm files.
    5583dep:
    5684    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    5785        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    5886
    59 !ifndef NODEP
    60 !include .depend
    61 !endif
    6287
     88# Includes the common rules.
     89!include $(PDWIN32_INCLUDE)/pdwin32.post
    6390
    64 clean:
    65     $(RM) *.obj *.lib *.dll *.map *.pch resource.asm \
    66         $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib \
    67         $(TARGET)exp.def
    68 
Note: See TracChangeset for help on using the changeset viewer.