Ignore:
Timestamp:
Sep 28, 2000, 5:16:25 AM (25 years ago)
Author:
bird
Message:

Support for new makefile style.
Changed watcom. Nows uses UNIX compatible mode rather than M$.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/pdwin32.tools

    r3480 r4334  
    1 # $Id: pdwin32.tools,v 1.13 2000-05-02 20:49:27 sandervl Exp $
     1# $Id: pdwin32.tools,v 1.14 2000-09-28 03:16:23 bird Exp $
    22# ODIN / win32os2 Project
    33#
     
    77# phaller@gmx.net, 1999/05/27
    88#
     9
     10# Check that CCENV is set; set defaults if not set.
     11!ifndef CCENV
     12!   ifndef __VERSION__
     13CCENV = VAC3
     14VAC3 = 1
     15!   else
     16CCENV = WAT
     17WAT = 1
     18!   endif
     19!endif
     20
     21# Check that PDWIN32_INCLUDE is set; set default if not set.
     22!ifndef PDWIN32_INCLUDE
     23PDWIN32_INCLUDE = ..\..\include
     24!endif
    925
    1026
     
    2642DEPEND      = $(PDWIN32_TOOLS)\fastdep.exe
    2743!endif
    28 MAKE_CMD    = nmake /nologo
    29 !ifdef DEBUG
    30 MAKE_CMD    = $(MAKE_CMD) DEBUG=1
    31 !endif
    32 !ifdef NODEBUGINFO
    33 MAKE_CMD    = $(MAKE_CMD) NODEBUGINFO=1
    34 !endif
    35 !ifdef NODEP
    36 MAKE_CMD    = $(MAKE_CMD) NODEP=1
    37 !endif
    3844
    3945
    40 #
    41 # Targets
    42 #
    43 .SUFFIXES: .orc
     46# Include compiler dependent tools
     47!include $(PDWIN32_INCLUDE)/pdwin32.$(CCENV).tools
    4448
    45 .c{$(OBJDIR)}.obj:
    46     $(CC) $(CFLAGS) -c -Fo$(OBJDIR)\$(@B).obj $<
    47 
    48 .cpp{$(OBJDIR)}.obj:
    49     $(CXX) $(CXXFLAGS) -Fo$(OBJDIR)\$(@B).obj -c $<
    50 
    51 .asm{$(OBJDIR)}.obj:
    52     $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $<
    53 
    54 .orc{$(OBJDIR)}.asm:
    55     $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
    56 
    57 .orc{$(OBJDIR)}.obj:
    58     $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
    59     $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $(OBJDIR)\$(@B).asm
    60 
    61 .rc{$(OBJDIR)}.res:
    62     $(OS2RC) $(OS2RCFLAGS) $< $@
    63 
    64 
    65 #
    66 # Old Targets
    67 #
    68 .c.obj:
    69     $(CC) $(CFLAGS) -c $<
    70 
    71 .cpp.obj:
    72     $(CXX) $(CXXFLAGS) -c $<
    73 
    74 .asm.obj:
    75     $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $<
    76 
    77 .orc.asm:
    78     $(RC) $(RCFLAGS) -o $@ $<
    79 
    80 .rc.res:
    81     $(OS2RC) $(OS2RCFLAGS) $< $@
    82 
Note: See TracChangeset for help on using the changeset viewer.