Changeset 4717 for trunk/makefile


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

New makefile style. (addjustments)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile

    r4643 r4717  
    1 # $Id: makefile,v 1.13 2000-11-20 05:00:50 bird Exp $
     1# $Id: makefile,v 1.14 2000-12-02 23:37:30 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    6 #       Top of the tree makefile
     6#       crtdll.dll makefile
    77#
    8 #
    9 #       Usage: nmake ( debug | nodebuginfo | release | all | dep | clean )
    10 #
    11 #            debug: Change to a debug build.
    12 #            debugsmp: Start nmake process in background that processes all
    13 #                      dlls in reverse
    14 #            nodebuginfo: Change to a debug build without debug info in binaries
    15 #            nodebuginfosmp: Change to an SMP debug build without debug info in binaries
    16 #            release: Change to a release build.
    17 #            releasesmp: Change to an SMP release build.
    18 #            all: Build the entire tree.
    19 #            dep: Make dependencies for the entire tree.
    20 #            clean: Bring tree back to a "virgin" state.
    21 #
    22 #
    23 #
    24 
    25 #
    26 # Directory macros.
    27 #
    28 PDWIN32_INCLUDE = .\include
    29 PDWIN32_TOOLS   = .\tools
    30 PDWIN32_LIB     = .\lib
    31 PDWIN32_BIN     = .\bin
    328
    339
    3410#
    35 # Include makefile. (Not completeled)
     11# Compiler, tools, and interference rules.
    3612#
    37 #!include $(PDWIN32_INCLUDE)/pdwin32.mk
    38 
    39 all:            odin_libraries  needed_tools
    40     cd src
    41     nmake -nologo  all
    42     cd ..\tools\install
    43     nmake -nologo  all
    44 
    45 clean:
    46     cd lib
    47     nmake -nologo clean
    48     cd ..\tools
    49     nmake -nologo clean
    50     cd ..\src
    51     nmake -nologo clean
    52 
    53 debug:          odin_libraries  needed_tools
    54     cd src
    55     nmake -nologo all DEBUG=1
    56     cd ..\tools\install
    57     nmake -nologo all DEBUG=1
    58 
    59 debugsmp:       odin_libraries  needed_tools
    60     cd src
    61     nmake -nologo DEBUG=1 smp
    62     cd ..\tools\install
    63     nmake -nologo DEBUG=1 all
    64 
    65 nodebuginfo:    odin_libraries  needed_tools
    66     cd src
    67     nmake -nologo all DEBUG=1 NODEBUGINFO=1
    68     cd ..\tools\install
    69     nmake -nologo all DEBUG=1 NODEBUGINFO=1
    70 
    71 nodebuginfosmp: odin_libraries  needed_tools
    72     cd src
    73     nmake -nologo DEBUG=1 NODEBUGINFO=1 smp
    74     cd ..\tools\install
    75     nmake -nologo DEBUG=1 NODEBUGINFO=1 all
    76 
    77 release:        odin_libraries  needed_tools
    78     SET DEBUG=
    79     cd src
    80     nmake -nologo all
    81     cd ..\tools\install
    82     nmake -nologo all
    83 
    84 releasesmp:     odin_libraries  needed_tools
    85     SET DEBUG=
    86     cd src
    87     nmake -nologo smp
    88     cd ..\tools\install
    89     nmake -nologo all
    90 
    91 dep: needed_tools
    92     cd tools
    93     nmake -nologo dep
    94     cd ..\src
    95     nmake -nologo dep
     13!include ../../makefile.inc
    9614
    9715
    98 # --- common section ---
    99 odin_libraries:
    100         cd lib
    101         nmake -nologo
    102         cd ..
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
     19OBJS = \
     20$(OBJDIR)\crtdll_main.obj \
     21$(OBJDIR)\dir.obj \
     22$(OBJDIR)\exit.obj \
     23$(OBJDIR)\file.obj \
     24$(OBJDIR)\mbstring.obj \
     25$(OBJDIR)\memory.obj \
     26$(OBJDIR)\spawn.obj \
     27                     \
     28$(OBJDIR)\crtdll.obj \
     29$(OBJDIR)\asmhlp.obj \
     30$(OBJDIR)\stubs.obj \
     31$(OBJDIR)\internal.obj \
     32$(OBJDIR)\string.obj \
     33$(OBJDIR)\crt_memory.obj \
     34$(OBJDIR)\crt_wc.obj \
     35$(OBJDIR)\initterm.obj \
     36$(OBJDIR)\crtdllrsrc.obj
    10337
    10438
    105 needed_tools:
    106     cd tools
    107     nmake needed
    108     cd ..
     39#
     40# Libraries. One space before the '\'.
     41#
     42LIBS = \
     43$(ODIN32_LIB)/kernel32.lib \
     44$(ODIN32_LIB)/$(ODINCRT).lib \
     45$(ODIN32_LIB)/user32.lib \
     46$(ODIN32_LIB)/pmwinx.lib \
     47os2386.lib \
     48$(RTLLIB_O)
     49
     50
     51#
     52# Target name - name of the dll without extention and path.
     53#
     54TARGET = crtdll
     55
     56
     57#
     58# Includes the common rules.
     59#
     60!include $(ODIN32_POST_INC)
Note: See TracChangeset for help on using the changeset viewer.