Changeset 3538 for trunk/tools


Ignore:
Timestamp:
May 13, 2000, 7:18:39 PM (25 years ago)
Author:
bird
Message:

Updated makefile to new standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/impdef/makefile

    r2714 r3538  
    1 # $Id: makefile,v 1.3 2000-02-09 23:50:13 bird Exp $
     1# $Id: makefile,v 1.4 2000-05-13 17:18:39 bird Exp $
    22
    33#
     
    99
    1010
    11 # include common definitions
     11# Directory macros.
    1212PDWIN32_INCLUDE = ..\..\include
     13PDWIN32_BIN     = ..\..\bin\$(OBJDIR)
     14PDWIN32_LIB     = ..\..\lib
    1315PDWIN32_TOOLS   = ..\bin
     16PDWIN32_TCOMMON = ..\common
     17
     18
     19# Defines for the pdwin32.post and pdwin32.mk
     20LOCALCLEAN  = 1
     21CLEANEXTRAS = $(PDWIN32_TOOLS)\impdef.exe *.log
     22EXETARGET   = 1
     23
     24
     25# Compiler, tools, and interference rules.
    1426!include $(PDWIN32_INCLUDE)\pdwin32.mk
    15 
    16 # Addjust common definitions
    17 CINCLUDES= -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win -I..\common
    18 !ifdef DEBUG
    19 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    20 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    21 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full"
    22 !else
    23 CFLAGS   = $(CFLAGS)   -Ge+ -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    24 CXXFLAGS = $(CXXFLAGS) -Ge+ -Gx- -Tx+ $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    25 LDFLAGS  = $(LDFLAGS)  -Ge+ -Fe$@ /B"/MAP:full"
    26 !endif
     27!include $(PDWIN32_TCOMMON)\common.mk
    2728
    2829
    2930
    30 all: ImpDef.exe ..\bin\ImpDef.exe
     31# Flag overloads and local macros.
     32CINCLUDES= -I$(PDWIN32_TCOMMON) -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\Win
     33CFLAGS   = $(CFLAGS)   $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
     34CXXFLAGS = $(CXXFLAGS) $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    3135
    3236
    33 ImpDef.exe: ImpDef.obj ..\common\commonicc.lib
    34    $(LD) $(LDFLAGS) $** $(RTLLIB) os2386.lib
     37# Object files. All objects should be prefixed with $(OBJDIR)!
     38OBJS= \
     39$(OBJDIR)\ImpDef.obj
    3540
    36 ..\bin\ImpDef.exe: ImpDef.exe
     41
     42# All rule - build objs, target dll, copies dll to bin and makes libs.
     43all:    $(OBJDIR) \
     44        $(PDWIN32_TOOLS)\ImpDef.exe
     45
     46
     47ImpDef.exe: $(OBJS) $(COMMONLIB)
     48   $(LD) $(LDFLAGS) -Fe$@ $** $(RTLLIB) os2386.lib
     49
     50$(PDWIN32_TOOLS)\ImpDef.exe: ImpDef.exe
    3751   $(CP) $** $@
    3852
    39 ..\common\commonicc.lib:
    40    @cd ..\common
    41    @nmake /nologo commonicc.lib
    42    @cd ..\impdef
     53
     54# Dep rule - makes depenencies for C, C++ and Asm files.
     55dep:
     56    $(DEPEND) $(CINCLUDES) *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
     57        *.c *.cpp
    4358
    4459
    45 dep:
    46     $(DEPEND) $(CINCLUDES) -I *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    47         *.c *.cpp
    48 
    49 !ifndef NODEP
    50 !include .depend
    51 !endif
    52 
    53 
    54 clean:
    55     @$(RM) *.obj *.exe *.map *.pch *.log
    56 
    57 
     60# Include common rules
     61!include $(PDWIN32_INCLUDE)\pdwin32.post
     62!include $(PDWIN32_TCOMMON)\common.mk.post
Note: See TracChangeset for help on using the changeset viewer.