Changeset 3031 for trunk/src/comctl32


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/comctl32
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/makefile

    r2875 r3031  
    1 # $Id: makefile,v 1.23 2000-02-23 17:09:44 cbratschi Exp $
     1# $Id: makefile,v 1.24 2000-03-06 23:38:17 bird Exp $
     2
    23#
    3 # PD-Win32 API
     4# Odin32 API
    45#
    56#       comctl32.dll makefile
    67#
    78
     9# Directory macros.
    810PDWIN32_INCLUDE = ..\..\include
    9 PDWIN32_LIB = ..\..\lib
    10 PDWIN32_BIN = ..\..\bin
    11 PDWIN32_TOOLS = ..\..\tools\bin
     11PDWIN32_LIB     = ..\..\lib
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\tools\bin
    1214
    1315
     16# Compiler, tools, and interference rules.
    1417!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1518
    1619
    17 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    18 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     20# Flag overloads and local macros.
     21CLEANEXTRAS = lz32rsrc.asm
    1922
     23
     24# Object files. All objects should be prefixed with $(OBJDIR)!
     25OBJS = \
     26$(OBJDIR)\comctl32.obj \
     27$(OBJDIR)\initterm.obj \
     28$(OBJDIR)\progress.obj \
     29$(OBJDIR)\comctl32undoc.obj \
     30$(OBJDIR)\imagelist.obj \
     31$(OBJDIR)\comboex.obj \
     32$(OBJDIR)\animate.obj \
     33$(OBJDIR)\datetime.obj \
     34$(OBJDIR)\flatsb.obj \
     35$(OBJDIR)\hotkey.obj \
     36$(OBJDIR)\monthcal.obj \
     37$(OBJDIR)\nativefont.obj \
     38$(OBJDIR)\pager.obj \
     39$(OBJDIR)\tab.obj \
     40$(OBJDIR)\status.obj \
     41$(OBJDIR)\header.obj \
     42$(OBJDIR)\updown.obj \
     43$(OBJDIR)\rebar.obj \
     44$(OBJDIR)\trackbar.obj \
     45$(OBJDIR)\tooltips.obj \
     46$(OBJDIR)\toolbar.obj \
     47$(OBJDIR)\treeview.obj \
     48$(OBJDIR)\propsheet.obj \
     49$(OBJDIR)\listview.obj \
     50$(OBJDIR)\draglist.obj \
     51$(OBJDIR)\ipaddress.obj \
     52$(OBJDIR)\ccbase.obj \
     53$(OBJDIR)\rsrc.obj
     54
     55
     56# Target name - name of the dll without extention and path.
    2057TARGET = comctl32
    2158
    22 OBJS =  comctl32.obj initterm.obj progress.obj comctl32undoc.obj imagelist.obj \
    23         comboex.obj animate.obj datetime.obj flatsb.obj hotkey.obj monthcal.obj \
    24         nativefont.obj pager.obj tab.obj status.obj header.obj updown.obj \
    25         rebar.obj trackbar.obj tooltips.obj toolbar.obj treeview.obj \
    26         propsheet.obj listview.obj draglist.obj ipaddress.obj resource.obj \
    27         ccbase.obj
    2859
    29 all: $(TARGET).dll $(TARGET).lib
     60# All rule - build objs, target dll, copies dll to bin and makes libs.
     61all:    $(OBJDIR) \
     62        $(OBJDIR)\$(TARGET).dll \
     63        $(PDWIN32_BIN)\$(TARGET).dll \
     64        lib
    3065
    3166
    32 $(TARGET).dll: $(OBJS) $(TARGET).def
    33     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
    34           $(PDWIN32_LIB)/kernel32.lib \
    35           $(PDWIN32_LIB)/gdi32.lib \
    36           $(PDWIN32_LIB)/user32.lib  $(PDWIN32_LIB)/odincrt.lib \
    37           $(PDWIN32_LIB)/winmm.lib \
    38           OS2386.LIB  $(RTLLIB_O)
    39     $(CP) $@ $(PDWIN32_BIN)
     67# Lib rule - build importlibrary (and evt. other libs)
     68lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    4069
    4170
    42 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    43 
    44 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    45     $(CP) $** $@
    46 
    47 $(TARGET).lib: $(TARGET)exp.def
    48     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
    49     $(CP) $@ $(PDWIN32_LIB)
    50 
    51 $(TARGET)exp.def: $(TARGET).def
    52     $(IMPDEF) $** $@
     71# Dll rule - builds the target dll.
     72$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     73    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    5374
    5475
    55 resource.asm: rsrc.rc
    56     $(RC) $(RCFLAGS) -o resource.asm rsrc.rc
     76# Linker file - creates the parameter file passed on to the linker.
     77$(OBJDIR)\$(TARGET).lrf: makefile
     78    @echo Creating file <<$@
     79/OUT:$(OBJDIR)\$(TARGET).dll
     80/MAP:$(OBJDIR)\$(TARGET).map
     81$(OBJS)
     82$(PDWIN32_LIB)/kernel32.lib
     83$(PDWIN32_LIB)/gdi32.lib
     84$(PDWIN32_LIB)/user32.lib
     85$(PDWIN32_LIB)/odincrt.lib
     86$(PDWIN32_LIB)/winmm.lib
     87OS2386.LIB
     88$(RTLLIB_O)
     89$(TARGET).def
     90<<keep
    5791
    5892
     93# Dep rule - makes depenencies for C, C++ and Asm files.
    5994dep:
    6095    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    6196        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    6297
    63 !ifndef NODEP
    64 !include .depend
    65 !endif
    6698
     99# Includes the common rules.
     100!include $(PDWIN32_INCLUDE)/pdwin32.post
    67101
    68 clean:
    69     $(RM) *.obj *.lib *.dll *.map *.pch \
    70         $(PDWIN32_BIN)\$(TARGET).dll \
    71         $(PDWIN32_LIB)\$(TARGET).lib \
    72         $(TARGET)exp.def
    73 
Note: See TracChangeset for help on using the changeset viewer.