Changeset 4620 for trunk/tools


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

New makefile style.

Location:
trunk/tools
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/SDF/makefile

    r4332 r4620  
    1 # $Id: makefile,v 1.2 2000-09-28 03:06:27 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:25:50 bird Exp $
    22
    33#
     
    99
    1010
    11 # include common definitions
     11#
     12# Directory macros.
     13#
    1214PDWIN32_INCLUDE = ..\..\include
     15PDWIN32_LIB     = ..\..\lib
     16PDWIN32_BIN     = ..\bin
    1317PDWIN32_TOOLS   = ..\bin
     18PDWIN32_TCOMMON = ..\common
     19
     20
     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
     27
     28
     29#
     30# Compiler, tools, and interference rules.
     31#
    1432!include $(PDWIN32_INCLUDE)\pdwin32.mk
     33!include $(PDWIN32_TCOMMON)\common.mk
    1534
    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"
     35
     36#
     37# Flag overrides.
     38#
     39!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
     40CFLAGS      = $(CFLAGS)        -Wall+ppt-ppc-inl-cnv-gnr-vft-
     41CXXFLAGS    = $(CXXFLAGS) -Gx- -Wall+ppt-ppc-inl-cnv-gnr-vft-
    2642!endif
    2743
    2844
    29 
    30 all: sdf.exe ..\bin\sdf.exe
    31 
    32 
    33 sdf.exe: sdf.obj ..\common\commonicc.lib
    34    $(LD) $(LDFLAGS) $** $(RTLLIB) os2386.lib
    35 
    36 ..\bin\sdf.exe: sdf.exe
    37    $(CP) $** $@
    38 
    39 dep:
    40     $(DEPEND) $(CINCLUDES) -I *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    41         *.c *.cpp
    42 
    43 clean:
    44     @$(RM) *.obj *.exe *.map *.pch *.log
     45#
     46# Object files. Prefix with OBJDIR and one space before the '\'.
     47#
     48OBJS= \
     49$(OBJDIR)\sdf.obj
    4550
    4651
    4752#
    48 # Include the .depend file.
    49 #   If the depend file don't exists we'll complain about it.
     53# Libraries. One space before the '\'.
    5054#
    51 !ifndef NODEP
    52 !   if [$(EXISTS) .depend] == 0
    53 !       include .depend
    54 !   else
    55 !       if [$(ECHO) .depend doesn't exist]
    56 !       endif
    57 !   endif
    58 !endif
     55LIBS = \
     56$(COMMONLIB) \
     57$(RTLLIB) \
     58os2386.lib
    5959
     60
     61#
     62# Target name - name of the exe without extention and path.
     63#
     64TARGET = sdf
     65
     66
     67#
     68# Includes the common rules.
     69#
     70!include $(PDWIN32_INCLUDE)\pdwin32.post
     71!include $(PDWIN32_TCOMMON)\common.mk.post
     72
  • trunk/tools/common/common.mk

    r3536 r4620  
    1 # $Id: common.mk,v 1.1 2000-05-13 17:17:08 bird Exp $
     1# $Id: common.mk,v 1.2 2000-11-19 08:29:54 bird Exp $
    22#
    33# Common definitions for tools.
     
    3232
    3333
     34#
     35# Add PDWIN32_TCOMMON to the C and C++ includes.
     36#
     37CINCLUDES = -I$(PDWIN32_TCOMMON) $(CINCLUDE)
     38
  • trunk/tools/common/makefile

    r4402 r4620  
    1 # $Id: makefile,v 1.7 2000-10-03 05:42:39 bird Exp $
     1# $Id: makefile,v 1.8 2000-11-19 08:29:54 bird Exp $
    22
    33#
     
    2121
    2222
    23 all:    commonicc.lib commongcc.a commongcc.lib
     23all:    commonicc.lib commongcc.a commongcc.lib \
     24        $(PDWIN32_TOOLS)\kDef2Wat.exe
     25#        $(PDWIN32_TOOLS)\kDump.exe
    2426
    2527
     
    6567        *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h *.c *.cpp -objo *.c *.cpp -objgobj *.c *.cpp
    6668
     69#
     70# Do not includes the common rules.
     71#
     72
  • trunk/tools/common/makefile.gcc

    r3592 r4620  
    1 # $Id: makefile.gcc,v 1.6 2000-05-23 18:23:04 bird Exp $
     1# $Id: makefile.gcc,v 1.7 2000-11-19 08:29:54 bird Exp $
    22
    33#
     
    3030LOCALCLEAN  = 1
    3131CLEANEXTRAS = commongcc.*
     32OLD_STYLE = 1
    3233
    3334
  • trunk/tools/common/makefile.icc

    r4426 r4620  
    1 # $Id: makefile.icc,v 1.13 2000-10-05 07:27:57 bird Exp $
     1# $Id: makefile.icc,v 1.14 2000-11-19 08:29:54 bird Exp $
    22
    33#
     
    1717LOCALCLEAN  = 1
    1818CLEANEXTRAS = commonicc.lib
     19OLD_STYLE = 1
    1920
    2021
  • trunk/tools/fastdep/makefile

    r3132 r4620  
    1 # $Id: makefile,v 1.5 2000-03-16 23:51:26 bird Exp $
     1# $Id: makefile,v 1.6 2000-11-19 08:27:21 bird Exp $
    22
    33#
     
    99
    1010
     11#
     12# Tell buildenvironment that we're makeing an .exe.
     13# Tell buildenvironment that we should not copy this into /bin.
     14#
     15EXETARGET = 1
     16NO_MAIN_BIN_COPY = 1
     17
     18
     19#
    1120# include common definitions
     21#
    1222PDWIN32_INCLUDE = ..\..\include
     23PDWIN32_TOOLS   = ..\bin
     24PDWIN32_BIN     = ..\bin
     25PDWIN32_LIB     = ..\..\lib
    1326!include $(PDWIN32_INCLUDE)\pdwin32.mk
    1427
     28
     29#
    1530# Addjust common definitions
     31#
     32!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
     33CFLAGS   = $(CFLAGS) -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- \
    1634!ifdef DEBUG
    17 CFLAGS   = $(CFLAGS)  -Ge+ -Tx+ -I..\common \
    18            -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- -O+ -Tm-
    19 #          -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- -Gh+ -Tm- #-O+
    20 LDFLAGS  = $(LDFLAGS) -Ge+ -Fe$@ /B"/MAP:full"
    21 !else
    22 CFLAGS   = $(CFLAGS)  -Ge+ -Tx+ -I..\common      \
    23            -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext-
    24 LDFLAGS  = $(LDFLAGS) -Ge+ -Fe$@ /B"/MAP:full"
     35        -O+ -Tm-
     36!endif
    2537!endif
    2638
    2739
    28 
    29 all: fastdep.exe ..\bin\fastdep.exe
     40#
     41# Object files. Prefix with OBJDIR and one space before the '\'.
     42#
     43OBJS = \
     44$(OBJDIR)\fastdep.obj \
     45$(OBJDIR)\avl.obj
    3046
    3147
    32 fastdep.exe: fastdep.obj avl.obj
    33     $(LD) $(LDFLAGS) $** $(RTLLIB) os2386.lib
    34 #   $(LD) $(LDFLAGS) $** CPPOPA3.OBJ $(RTLLIB) _DOSCALL.LIB os2386.lib
    35 
    36 ..\bin\fastdep.exe: fastdep.exe
    37    $(CP) $** $@
     48#
     49# Libraries. One space before the '\'.
     50#
     51LIBS = \
     52$(RTLLIB) \
     53os2386.lib
    3854
    3955
    40 dep: # dummy rule
     56#
     57# Target name - name of the exe without extention and path.
     58#
     59TARGET = FastDep
    4160
    4261
    43 clean:
    44    -@$(RM) *.obj *.exe *.map *.pch *.log ..\bin\fastdep.exe
     62#
     63# Includes the common rules.
     64#
     65!include $(PDWIN32_INCLUDE)/pdwin32.post
     66
     67
     68#
     69# We need all.
     70#
     71needed: all
     72
  • 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
  • trunk/tools/install/makefile

    r3880 r4620  
     1# $Id: makefile,v 1.3 2000-11-19 08:26:36 bird Exp $
     2
    13#
    24# PD-Win32 API
    35#
     6#       odininst.exe makefile
    47#
    58
    6 # Tell that we're producing an executable
     9
     10#
     11# Tell that we're producing an executable.
     12#
    713EXETARGET = 1
    814
    9 PDWIN32_INCLUDE = ..\..\include
    10 PDWIN32_LIB = ..\..\lib
    11 PDWIN32_BIN = ..\..\$(OBJDIR)
    12 PDWIN32_TOOLS   = ..\bin
    1315
    14 !include $(PDWIN32_INCLUDE)/pdwin32.mk
     16#
     17# Compiler, tools, and interference rules.
     18#
     19!include ../../include/pdwin32.mk
    1520
     21
     22#
     23# Overrides
     24#
     25LD2FLAGS = $(LD2FLAGS_ODINCRT) /PMTYPE:pm /STACK:0x100000 /NOBASE
     26
     27
     28#
     29# Object files. Prefix with OBJDIR and one space before the '\'.
     30#
     31OBJS = \
     32$(OBJDIR)\odininst.obj
     33
     34
     35#
     36# Libraries. One space before the '\'.
     37#
     38LIBS = \
     39os2386.lib \
     40$(PDWIN32_LIB)\kernel32.lib
     41
     42
     43#
     44# Target name - name of the exe without extention and path.
     45#
    1646TARGET = odininst
    1747
    18 all:    $(OBJDIR) \
    19         $(OBJDIR)\$(TARGET).exe \
    20         $(PDWIN32_BIN)\$(TARGET).exe
    2148
    22 # Flag overloads and local macros.
    23 CLEANEXTRAS = $(PDWIN32_BIN)\$(TARGET).exe
     49#
     50# Includes the common rules.
     51#
     52!include $(PDWIN32_INCLUDE)\pdwin32.post
    2453
    25 # Object files. All objects should be prefixed with $(OBJDIR)!
    26 OBJS = $(OBJDIR)\odininst.obj
    27 
    28 
    29 # Lib rule - dummy rule.
    30 lib:
    31 
    32 
    33 # Exe rule - builds the target exe.
    34 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(OBJDIR)\$(TARGET).lrf
    35     $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf
    36 
    37 # Linker file - creates the parameter file passed on to the linker.
    38 $(OBJDIR)\$(TARGET).lrf: makefile
    39     @echo Creating file <<$@
    40 /OUT:$(OBJDIR)\$(TARGET).exe
    41 /MAP:$(OBJDIR)\$(TARGET).map
    42 /PMTYPE:pm
    43 /STACK:0x100000
    44 /NOBASE
    45 $(OBJS)
    46 os2386.lib
    47 $(PDWIN32_LIB)\kernel32.lib
    48 <<keep
    49 
    50 
    51 # Dep rule - makes depenencies for C, C++ and Asm files.
    52 dep:
    53     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    54         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    55 
    56 
    57 # Includes the common rules.
    58 !include $(PDWIN32_INCLUDE)/pdwin32.post
  • trunk/tools/makefile

    r4332 r4620  
    1 # $Id: makefile,v 1.12 2000-09-28 03:06:26 bird Exp $
     1# $Id: makefile,v 1.13 2000-11-19 08:20:55 bird Exp $
    22
    33#
     
    1616#
    1717#
     18
     19
     20#
     21# Directory macros.
     22#
    1823PDWIN32_INCLUDE = ..\include
     24PDWIN32_TOOLS   = .\bin
    1925!include $(PDWIN32_INCLUDE)\pdwin32.tools
    2026
    21 !ifdef DEBUG
    22 MAKE_CMD = $(MAKE) -nologo DEBUG=1
    23 !else
    24 MAKE_CMD = $(MAKE) -nologo
    25 !endif
     27
     28#
     29# The directories included in the usual makes; all, clean, dep rules.
     30#
     31ALL_DIRS = \
     32.\common \
     33.\database \
     34.\impdef \
     35.\fastdep \
     36.\wrc \
     37.\omfdumper \
     38.\sdf \
     39.\install
    2640
    2741
    28 all:
    29     cd common
    30     $(MAKE_CMD)
    31     cd ..\database
    32     $(MAKE_CMD)
    33     cd ..\impdef
    34     $(MAKE_CMD)
    35     cd ..\fastdep
    36     $(MAKE_CMD)
    37     cd ..\wrc
    38     $(MAKE_CMD) -f makefile.os2
    39     cd ..\omfdumper
    40     $(MAKE_CMD)
    41     cd ..\sdf
    42     $(MAKE_CMD)
    43     cd ..\install
    44     $(MAKE_CMD)
    45     cd ..
     42#
     43# Dummy all rule.
     44#
     45_all: all
    4646
     47
     48#
     49# common rules.
     50#
     51dep clean all:
     52    $(DODIRS) "$(ALL_DIRS)" $(MAKE_CMD) $@
     53
     54
     55#
    4756# compile tools needed to compile rest of the tree.
     57#
    4858needed:
    4959    cd fastdep
     
    5868
    5969
    60 dep:
    61     cd common
    62     $(MAKE_CMD) NODEP=1 dep
    63     cd ..\database
    64     $(MAKE_CMD) NODEP=1 dep
    65     cd ..\impdef
    66     $(MAKE_CMD) NODEP=1 dep
    67     cd ..\wrc
    68     $(MAKE_CMD) -f makefile.os2 NODEP=1 dep
    69     cd ..\omfdumper
    70     $(MAKE_CMD) NODEP=1 dep
    71     cd ..\sdf
    72     $(MAKE_CMD) NODEP=1 dep
    73     cd ..
     70#
     71# Do not includes the common rules.
     72#
    7473
    75 
    76 clean:
    77     cd common
    78     $(MAKE_CMD) NODEP=1 clean
    79     cd ..\database
    80     $(MAKE_CMD) NODEP=1 clean
    81     cd ..\impdef
    82     $(MAKE_CMD) NODEP=1 clean
    83     cd ..\fastdep
    84     $(MAKE_CMD) NODEP=1 clean
    85     cd ..\wrc
    86     $(MAKE_CMD) -f makefile.os2 NODEP=1 clean
    87     cd ..\omfdumper
    88     $(MAKE_CMD) NODEP=1 clean
    89     cd ..\sdf
    90     $(MAKE_CMD) NODEP=1 clean
    91     cd ..
    92 
  • trunk/tools/omfdumper/makefile

    r2714 r4620  
    1 # $Id: makefile,v 1.2 2000-02-09 23:49:55 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:26:16 bird Exp $
    22
    33#
     
    77#
    88
    9 !include ..\..\include\pdwin32.tools
     9#
     10# Directory macros.
     11#
     12PDWIN32_INCLUDE = ..\..\include
     13PDWIN32_LIB     = ..\..\lib
     14PDWIN32_BIN     = ..\bin
     15PDWIN32_TOOLS   = ..\bin
     16PDWIN32_TCOMMON = ..\common
    1017
    11 all: omfdumper.exe ..\bin\omfdumper.exe
    1218
    13 omfdumper.exe:  omfdumper.c omf.h
    14    icc /ti+ /Q+ omfdumper.c
     19#
     20# Tell buildenvironment that we're makeing an .exe.
     21# Tell buildenvironment that we should not copy this into /bin.
     22#
     23EXETARGET = 1
     24NO_MAIN_BIN_COPY = 1
    1525
    16 ..\bin\omfdumper.exe: omfdumper.exe
    17    $(CP) $** $@
    1826
    19 dep: # dummy rule
     27#
     28# Compiler, tools, and interference rules.
     29#
     30!include $(PDWIN32_INCLUDE)\pdwin32.mk
     31!include $(PDWIN32_TCOMMON)\common.mk
    2032
    21 clean:
    22    -@$(RM) *.obj
    23    -@$(RM) *.exe
    2433
     34#
     35# Object files. Prefix with OBJDIR and one space before the '\'.
     36#
     37OBJS= \
     38$(OBJDIR)\omfdumper.obj
     39
     40
     41#
     42# Libraries. One space before the '\'.
     43#
     44LIBS = \
     45$(RTLLIB) \
     46os2386.lib
     47
     48
     49#
     50# Target name - name of the exe without extention and path.
     51#
     52TARGET = omfdumper
     53
     54
     55#
     56# Includes the common rules.
     57#
     58!include $(PDWIN32_INCLUDE)\pdwin32.post
     59!include $(PDWIN32_TCOMMON)\common.mk.post
     60
Note: See TracChangeset for help on using the changeset viewer.