Changeset 3066 for trunk/src


Ignore:
Timestamp:
Mar 9, 2000, 9:36:57 PM (25 years ago)
Author:
bird
Message:

Updated to autogenerate makefile.inc if it doesn't exist and to fail
if makefile.inc isn't up-to-date.
.depend is included only if it exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/Makefile

    r3052 r3066  
    11################################################################################
    2 # $Id: Makefile,v 1.37 2000-03-09 16:52:56 bird Exp $
     2# $Id: Makefile,v 1.38 2000-03-09 20:36:57 bird Exp $
     3#
     4# Win32k makefile.
    35#
    46# Copyright 1998-2000 knut st. osmundsen
     
    810################################################################################
    911
     12
     13################################################################################
     14# Check that makefile.inc exists, If it doesn't we'll try make it.
     15# Check that makefile.inc is newer than configure.cmd.
     16#     If not newer this might be a fatal problem, so we'll fail.
     17################################################################################
     18!if [..\..\tools\bin\Exists.cmd makefile.inc] == 1
     19!   if [configure.cmd noninteractive]
     20!   endif
     21!endif
     22!if [Check.cmd $(MAKE) -nologo -q -f Check.mk makefile.inc] != 0
     23!   error makefile.inc is older than configure.cmd. Re-run configure.cmd!
     24!endif
     25
     26
    1027################################################################################
    1128# Include path definitions
    1229################################################################################
    13 # Note! This crazy !ifdef stuff handles the case when makefile.inc don't exist
    14 # and someone is trying to make dependencies. A makefile.inc is then generated
    15 # and we'll try again making dependencies by the dep2 rule.
    16 !ifdef NODEP
    17 !   ifdef MAKEFILE_INC
    18 !       include makefile.inc
    19 !   else
    20 PDWIN32_INCLUDE = ..\..\include
    21 PDWIN32_TOOLS = ..\..\tools\bin
    22 !   endif
    23 !else
    24 !   include makefile.inc
    25 !endif
     30!include makefile.inc
    2631!include $(PDWIN32_INCLUDE)\pdwin32.tools
    2732
    28 NAME = win32k
     33NAME = Win32k
     34
    2935
    3036################################################################################
     
    326332    cd ..
    327333
    328 
    329334################################################################################
    330335# Libraries - segments are renamed for the 16-bit libraries.
     
    396401#                asm deps must be updated by hand
    397402################################################################################
    398 # If makefile.inc doesn't exist we'll make a quit and dirty one.
    399 # So when we are sure that makefile.inc exist we'll invoke nmake and
    400 # ask it to make dependencies again using the dep2 rule.
    401403dep:
    402     IF NOT EXIST makefile.inc configure.cmd noninteractive
    403     $(MAKE_CMD) NODEP=1 MAKEFILE_INC=1 dep2
    404     cd pe2lx
    405     $(MAKE_CMD) NODEP=1 dep
    406     cd ..\lib
    407     $(MAKE_CMD) NODEP=1 dep
    408     cd ..
    409 
    410 dep2:
    411404    $(PDWIN32_TOOLS)\fastdep -o$$(WIN32KOBJ) $(CINCLUDES) misc\*.c* ldr\*.c* \
    412405        dev32\*.c* dev16\*.c* pe2lx\*.c* k32\*.c* lib\*.c elf2lx\*.c* \
     
    415408    $(PDWIN32_TOOLS)\fastdep -a+ -o$$(WIN32KOBJ) -I$(WIN32KINCLUDE) \
    416409        -I$(DDKPATH)\inc dev32\*.asm ldr\*.asm misc\*.asm include\*.inc
    417 
    418 !ifndef NODEP
    419 !include .depend
    420 !endif
     410    cd pe2lx
     411    $(MAKE_CMD) dep
     412    cd ..\lib
     413    $(MAKE_CMD) dep
     414    cd ..
     415
     416
     417################################################################################
     418# Include the .depend file.
     419################################################################################
     420!if [$(EXISTS) .depend] == 0
     421!   include .depend
     422!else
     423!   if [$(ECHO) .depend doesn't exist]
     424!   endif
     425!endif
     426
Note: See TracChangeset for help on using the changeset viewer.