Changeset 4654 for trunk/tools


Ignore:
Timestamp:
Nov 21, 2000, 5:37:23 AM (25 years ago)
Author:
bird
Message:

Addopted makestyle new style. common.lib goes into $(OBJDIR).

Location:
trunk/tools/common
Files:
3 added
3 edited

Legend:

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

    r4620 r4654  
    1 # $Id: common.mk,v 1.2 2000-11-19 08:29:54 bird Exp $
     1# $Id: common.mk,v 1.3 2000-11-21 04:37:22 bird Exp $
    22#
    33# Common definitions for tools.
     
    1313
    1414
    15 
    1615#
    17 # Make a suggestion of which common<gcc|icc>.<a|lib> library
    18 # to use.
    19 # not defined OMF indicates ICC
     16# Make a suggestion of which common.<a|lib> library to use.
     17# Not defined OMF indicates VAC or Watcom.
    2018# OMF=0 indicates GCC+aout
    2119# OMF=1 indicates GCC+OMF
    2220#
    23 !ifndef OMF
    24 COMMONLIB = $(PDWIN32_TCOMMON)\commonicc.lib
     21!ifndef GCC
     22COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib
    2523!else
    2624    !if $(OMF) == 0
    27 COMMONLIB = $(PDWIN32_TCOMMON)\commongcc.a
     25COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.a
    2826    !else
    29 COMMONLIB = $(PDWIN32_TCOMMON)\commongcc.lib
     27COMMONLIB = $(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib
    3028    !endif
    3129!endif
     
    3533# Add PDWIN32_TCOMMON to the C and C++ includes.
    3634#
    37 CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDE)
     35CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDES)
    3836
     37
     38#
     39# No internal libs cause we define our own internal libs.
     40#
     41NO_INTERNAL_LIBS = 1
     42INTLIBS = $(COMMONLIB)
     43
  • trunk/tools/common/common.mk.post

    r3536 r4654  
    1 # $Id: common.mk.post,v 1.1 2000-05-13 17:17:08 bird Exp $
     1# $Id: common.mk.post,v 1.2 2000-11-21 04:37:22 bird Exp $
    22#
    33# Common rules for tools.
     
    1717# Rules for making
    1818#
    19 $(PDWIN32_TCOMMON)\commongcc.a  \
    20 $(PDWIN32_TCOMMON)\commongcc.lib \
    21 $(PDWIN32_TCOMMON)\commonicc.lib : commonforce
     19$(PDWIN32_TCOMMON)\$(OBJDIR)\common.a  \
     20$(PDWIN32_TCOMMON)\$(OBJDIR)\common.lib : commonforce
    2221    cd $(PDWIN32_TCOMMON)
    2322!ifdef MAKE_CMD
     
    2625    $(MAKE) -nologo \
    2726!endif
    28         $(@F)
     27        $(OBJDIR)\$(@F)
    2928    cd $(MAKEDIR)
     29
    3030
    3131#
  • trunk/tools/common/makefile

    r4620 r4654  
    1 # $Id: makefile,v 1.8 2000-11-19 08:29:54 bird Exp $
     1# $Id: makefile,v 1.9 2000-11-21 04:37:23 bird Exp $
    22
    33#
     
    1212#            dep: Creates the .depend file.
    1313#            needed: Builds the tools used during compilation of the src tree.
    14 #            commonicc.lib: Build the IBM VA for C++ version of the library.
    15 #            commongcc.a:   Build the gcc version of the library - aout
    16 #            commongcc.lib: Build the gcc version of the library - OMF.
     14#            common.lib or libs: Make common.lib.
     15#            kDef2Wat.exe: kDef2Wat.exe
     16#            kDump.exe: kDump.exe
    1717#
    1818#
    1919
     20
     21#
     22# Compiler, tools, and interference rules.
     23#
    2024!include ..\..\include\pdwin32.mk
    2125
    2226
    23 all:    commonicc.lib commongcc.a commongcc.lib \
     27#
     28# All rule.
     29#
     30all:    $(OBJDIR)\common.lib \
     31!ifdef GCC
     32        $(OBJDIR)\common.a \
     33!endif
    2434        $(PDWIN32_TOOLS)\kDef2Wat.exe
    2535#        $(PDWIN32_TOOLS)\kDump.exe
    2636
    2737
    28 needed: commonicc.lib $(PDWIN32_TOOLS)\kDef2Wat.exe
     38#
     39# The neede tools
     40#
     41needed:     $(OBJDIR)\common.lib \
     42            $(PDWIN32_TOOLS)\kDef2Wat.exe
    2943
    3044
    31 commonicc.lib: dummy
     45#
     46# The library.
     47#
     48libs $(OBJDIR)\common.lib: force
    3249    -@echo $@
    33     @$(MAKE_CMD) -f makefile.icc
     50    @$(MAKE_CMD) -f common.mak all
    3451
    35 commongcc.a: dummy
     52#
     53# The Aout library.
     54#
     55$(OBJDIR)\common.a: force
    3656    -@echo $@
    37     @$(MAKE_CMD) OMF=0 -f makefile.gcc
    38 
    39 commongcc.lib: dummy
    40     -@echo $@
    41     @$(MAKE_CMD) OMF=1 -f makefile.gcc
     57    @$(MAKE_CMD) OMF=1 -f common.mak all
    4258
    4359
    44 $(PDWIN32_TOOLS)\kDump.exe $(OBJDIR)\kDump.exe kDump.exe: dummy
     60#
     61# Tools.
     62#
     63$(PDWIN32_TOOLS)\kDump.exe    $(OBJDIR)\kDump.exe    kDump.exe \
     64$(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe : force
    4565    -@echo $@
    46     @$(MAKE_CMD) -f makefile.icc $@
     66    @$(MAKE_CMD) -f $(@B).mak all
    4767
    4868
    49 $(PDWIN32_TOOLS)\kDef2Wat.exe $(OBJDIR)\kDef2Wat.exe kDef2Wat.exe: dummy
    50     -@echo $@
    51     @$(MAKE_CMD) -f makefile.icc $@
     69#
     70# Clean rule.
     71#
     72clean:
     73    $(MAKE_CMD) -f common.mak clean
     74    $(MAKE_CMD) -f kDef2Wat.mak clean
     75    $(MAKE_CMD) -f kDump.mak clean
    5276
    5377
    54 #a simple hack to make nmake process the target.
    55 dummy:
     78#
     79# Dep rule - makes depenencies for C, C++ and Asm files.
     80#
     81dep:
     82    $(DEPEND) $(CINCLUDES) *.c *.cpp *.h *.asm *.inc \
     83        *.rc *.dlg $(PDWIN32_INCLUDE)\*.h -robj *.orc \
     84        -objo    *.c *.cpp \
     85        -objgobj *.c *.cpp
     86
     87
     88#
     89# A simple hack to make nmake process the target.
     90#
     91force:
    5692     -@echo ...
    5793
    5894
    59 clean:
    60     @$(MAKE_CMD) -f makefile.icc clean
    61     @$(MAKE_CMD) OMF=0 -f makefile.gcc clean
    62     @$(MAKE_CMD) OMF=1 -f makefile.gcc clean
     95#
     96# Lib rule - dummy rule
     97#
     98lib:
    6399
    64 
    65 dep:
    66     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    67         *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
    68 
    69 #
    70 # Do not includes the common rules.
    71 #
    72 
Note: See TracChangeset for help on using the changeset viewer.