Changeset 4620 for trunk/tools/install


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

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.