Changeset 4712 for trunk/tools/common


Ignore:
Timestamp:
Dec 3, 2000, 12:27:03 AM (25 years ago)
Author:
bird
Message:

New makefile style.

Location:
trunk/tools/common
Files:
1 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/common.mak

    r4654 r4712  
    1 # $Id: common.mak,v 1.1 2000-11-21 04:37:22 bird Exp $
     1# $Id: common.mak,v 1.2 2000-12-02 23:26:57 bird Exp $
     2
    23#
    34# Odin32 API
     
    1718# Compiler, tools, and interference rules.
    1819#
    19 !include ../../include/pdwin32.mk
     20!include ../../makefile.inc
    2021
    2122
     
    4041# Includes the common rules.
    4142#
    42 !include $(PDWIN32_INCLUDE)/pdwin32.post
     43!include $(ODIN32_POST_INC)
    4344
  • trunk/tools/common/common.mk

    r4654 r4712  
    1 # $Id: common.mk,v 1.3 2000-11-21 04:37:22 bird Exp $
     1# $Id: common.mk,v 1.4 2000-12-02 23:26:57 bird Exp $
    22#
    33# Common definitions for tools.
    44#
    5 # Requires that PDWIN32_TCOMMON is defined to point to the
     5# Requires that ODIN32_TCOMMON is defined to point to the
    66# /tools/common directory
    77#
    88#
    9 # Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
     9# Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    1010#
    1111# Project Odin Software License can be found in LICENSE.TXT
     
    2020#
    2121!ifndef GCC
    22 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib
     22COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
    2323!else
    2424    !if $(OMF) == 0
    25 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.a
     25COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.a
    2626    !else
    27 COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib
     27COMMONLIB = $(ODIN32_TCOMMON)\$(OBJDIR)\common.lib
    2828    !endif
    2929!endif
     
    3131
    3232#
    33 # Add PDWIN32_TCOMMON to the C and C++ includes.
     33# Add ODIN32_TCOMMON to the C and C++ includes.
    3434#
    35 CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDES)
     35CINCLUDES = -I$(ODIN32_TCOMMON) $(CINCLUDES)
    3636
    3737
     
    4242INTLIBS = $(COMMONLIB)
    4343
     44
     45#
     46# Macro for the post include.
     47#
     48ODIN32_TCOMMON_POST_INC = $(ODIN32_TCOMMON)/common.post.mk
     49
  • trunk/tools/common/kDef2Wat.mak

    r4654 r4712  
    1 # $Id: kDef2Wat.mak,v 1.1 2000-11-21 04:37:22 bird Exp $
     1# $Id: kDef2Wat.mak,v 1.2 2000-12-02 23:26:58 bird Exp $
    22
    33#
     
    1111# Macro which defines the tools common directory.
    1212#
    13 PDWIN32_TCOMMON = .
    14 PDWIN32_BIN = ..\bin
     13ODIN32_TCOMMON = .
     14ODIN32_BIN     = $(ODIN32_TOOLS)
    1515
    1616
     
    3131# Compiler, tools, and interference rules.
    3232#
    33 !include ../../include/pdwin32.mk
    34 !include $(PDWIN32_TCOMMON)/common.mk
     33!include ../../makefile.inc
     34!include $(ODIN32_TCOMMON)/common.mk
    3535
    3636
     
    6060# Includes the common rules.
    6161#
    62 !include $(PDWIN32_INCLUDE)/pdwin32.post
    63 !include $(PDWIN32_TCOMMON)/common.mk.post
     62!include $(ODIN32_POST_INC)
     63!include $(ODIN32_TCOMMON_POST_INC)
    6464
  • trunk/tools/common/kDump.mak

    r4654 r4712  
    1 # $Id: kDump.mak,v 1.1 2000-11-21 04:37:23 bird Exp $
     1# $Id: kDump.mak,v 1.2 2000-12-02 23:26:58 bird Exp $
    22
    33#
     
    1111# Macro which defines the tools common directory.
    1212#
    13 PDWIN32_TCOMMON = .
    14 PDWIN32_BIN = ..\bin
     13ODIN32_TCOMMON = .
     14ODIN32_BIN     = $(ODIN32_TOOLS)
    1515
    1616
     
    3131# Compiler, tools, and interference rules.
    3232#
    33 !include ../../include/pdwin32.mk
    34 !include $(PDWIN32_TCOMMON)/common.mk
     33!include ../../makefile.inc
     34!include $(ODIN32_TCOMMON)/common.mk
    3535
    3636
     
    6060# Includes the common rules.
    6161#
    62 !include $(PDWIN32_INCLUDE)/pdwin32.post
    63 !include $(PDWIN32_TCOMMON)/common.mk.post
     62!include $(ODIN32_POST_INC)
     63!include $(ODIN32_TCOMMON_POST_INC)
    6464
  • trunk/tools/common/makefile

    r4654 r4712  
    1 # $Id: makefile,v 1.9 2000-11-21 04:37:23 bird Exp $
     1# $Id: makefile,v 1.10 2000-12-02 23:26:58 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       Tools common parts
     
    2222# Compiler, tools, and interference rules.
    2323#
    24 !include ..\..\include\pdwin32.mk
     24!include ../../makefile.inc
    2525
    2626
     
    3232        $(OBJDIR)\common.a \
    3333!endif
    34         $(PDWIN32_TOOLS)\kDef2Wat.exe
    35 #        $(PDWIN32_TOOLS)\kDump.exe
     34        $(ODIN32_TOOLS)\kDef2Wat.exe
     35#        $(ODIN32_TOOLS)\kDump.exe
    3636
    3737
     
    4040#
    4141needed:     $(OBJDIR)\common.lib \
    42             $(PDWIN32_TOOLS)\kDef2Wat.exe
     42            $(ODIN32_TOOLS)\kDef2Wat.exe
    4343
    4444
     
    6161# Tools.
    6262#
    63 $(PDWIN32_TOOLS)\kDump.exe    $(OBJDIR)\kDump.exe    kDump.exe \
    64 $(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force
     63$(ODIN32_TOOLS)\kDump.exe    $(OBJDIR)\kDump.exe    kDump.exe \
     64$(ODIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force
    6565    -@echo $@
    6666    @$(MAKE_CMD) -f $(@B).mak all
     
    8181dep:
    8282    $(DEPEND) $(CINCLUDES) *.c *.cpp *.h *.asm *.inc \
    83         *.rc *.dlg $(PDWIN32_INCLUDE)\*.h -robj *.orc \
     83        *.rc *.dlg $(ODIN32_INCLUDE)\*.h -robj *.orc \
    8484        -objo    *.c *.cpp \
    8585        -objgobj *.c *.cpp
  • trunk/tools/common/makefile.gcc

    r4620 r4712  
    1 # $Id: makefile.gcc,v 1.7 2000-11-19 08:29:54 bird Exp $
     1# $Id: makefile.gcc,v 1.8 2000-12-02 23:26:58 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    6 # Tools common library, GCC version.
     6#       Tools common library, GCC version.
    77#
    88#
     
    2020# Directories and common tools.
    2121#
    22 PDWIN32_INCLUDE = ..\..\include
    23 PDWIN32_BIN     = ..\..\bin\$(OBJDIR)
    24 PDWIN32_LIB     = ..\..\lib
    25 PDWIN32_TOOLS   = ..\bin
    26 PDWIN32_TCOMMON = ..\common
    27 !include $(PDWIN32_INCLUDE)\pdwin32.tools
     22ODIN32_INCLUDE = ..\..\include
     23ODIN32_BIN     = ..\..\bin\$(OBJDIR)
     24ODIN32_LIB     = ..\..\lib
     25ODIN32_TOOLS   = ..\bin
     26ODIN32_TCOMMON = ..\common
     27!include $(ODIN32_INCLUDE)\odin32.tools
    2828
    29 # Definitions for pdwin32.post
     29# Definitions for odin32.post
    3030LOCALCLEAN  = 1
    3131CLEANEXTRAS = commongcc.*
     
    6464
    6565CDEFINES  = -D__WIN32OS2__ -D__WINE__
    66 CINCLUDES = -I$(PDWIN32_INCLUDE)\Win -I$(PDWIN32_INCLUDE)
     66CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I$(ODIN32_INCLUDE)
    6767CPLUS_INCLUDE_PATH= $(CPLUS_INCLUDE_PATH);$(INCLUDE)
    6868
     
    120120
    121121# Includes the common rules.
    122 !include $(PDWIN32_INCLUDE)/pdwin32.post
     122!error "this makefile doesn't work right now."
     123!include $(ODIN32_INCLUDE)/odin32.post
    123124
Note: See TracChangeset for help on using the changeset viewer.