Changeset 4620 for trunk/tools/impdef


Ignore:
Timestamp:
Nov 19, 2000, 9:35:50 AM (25 years ago)
Author:
bird
Message:

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/impdef/makefile

    r4427 r4620  
    1 # $Id: makefile,v 1.5 2000-10-05 07:28:39 bird Exp $
     1# $Id: makefile,v 1.6 2000-11-19 08:26:52 bird Exp $
    22
    33#
     
    99
    1010
     11#
    1112# Directory macros.
     13#
    1214PDWIN32_INCLUDE = ..\..\include
    13 PDWIN32_BIN     = ..\..\bin\$(OBJDIR)
    1415PDWIN32_LIB     = ..\..\lib
     16PDWIN32_BIN     = ..\bin
    1517PDWIN32_TOOLS   = ..\bin
    1618PDWIN32_TCOMMON = ..\common
    1719
    1820
    19 # Defines for the pdwin32.post and pdwin32.mk
    20 LOCALCLEAN  = 1
    21 CLEANEXTRAS = $(PDWIN32_TOOLS)\impdef.exe *.log
    22 EXETARGET   = 1
     21#
     22# Tell buildenvironment that we're makeing an .exe.
     23# Tell buildenvironment that we should not copy this into /bin.
     24#
     25EXETARGET = 1
     26NO_MAIN_BIN_COPY = 1
    2327
    2428
     29#
    2530# Compiler, tools, and interference rules.
     31#
    2632!include $(PDWIN32_INCLUDE)\pdwin32.mk
    2733!include $(PDWIN32_TCOMMON)\common.mk
    2834
    2935
    30 
    31 # Flag overloads and local macros.
    32 CINCLUDES= -I$(PDWIN32_TCOMMON) -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\Win
    33 CFLAGS   = $(CFLAGS)   $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-
    34 CXXFLAGS = $(CXXFLAGS) $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gx-
     36#
     37# Flag overrides.
     38#
     39!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
     40CFLAGS   = $(CFLAGS)   -Wall+ppt-ppc-inl-cnv-gnr-vft-
     41CXXFLAGS = $(CXXFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gx-
     42!endif
    3543
    3644
    37 # Object files. All objects should be prefixed with $(OBJDIR)!
     45#
     46# Object files. Prefix with OBJDIR and one space before the '\'.
     47#
    3848OBJS= \
    3949$(OBJDIR)\ImpDef.obj
    4050
    4151
    42 # All rule - build objs, target dll, copies dll to bin and makes libs.
    43 all:    $(OBJDIR) \
    44         $(PDWIN32_TOOLS)\ImpDef.exe
     52#
     53# Libraries. One space before the '\'.
     54#
     55LIBS = \
     56$(COMMONLIB) \
     57$(RTLLIB) \
     58os2386.lib
    4559
    4660
    47 $(OBJDIR)\ImpDef.exe: $(OBJS) $(COMMONLIB)
    48    $(LD) $(LDFLAGS) -Fe$@ $** $(RTLLIB) os2386.lib
    49 
    50 $(PDWIN32_TOOLS)\ImpDef.exe: $(OBJDIR)\ImpDef.exe
    51    $(CP) $** $@
     61#
     62# Target name - name of the exe without extention and path.
     63#
     64TARGET = ImpDef
    5265
    5366
    54 # Dep rule - makes depenencies for C, C++ and Asm files.
    55 dep:
    56     $(DEPEND) $(CINCLUDES) *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    57         *.c *.cpp
    58 
    59 
    60 # Include common rules
     67#
     68# Includes the common rules.
     69#
    6170!include $(PDWIN32_INCLUDE)\pdwin32.post
    6271!include $(PDWIN32_TCOMMON)\common.mk.post
     72
Note: See TracChangeset for help on using the changeset viewer.