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

Adapted to be more comform with the new makefile style.
Most subdirectories are now using the style while the win32k.sys makefile
is not at all - as allways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/lib/makefile

    r4569 r4715  
    1 ##############################################################################
    2 # $Id: makefile,v 1.7 2000-11-09 02:44:27 bird Exp $
     1# $Id: makefile,v 1.8 2000-12-02 23:32:39 bird Exp $
     2
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       win32k.lib makefile
    77#
    8 ##############################################################################
    9 
    10 ##############################################################################
    11 # Include
    12 ##############################################################################
    13 !include ..\makefile.inc
    14 !include $(PDWIN32_INCLUDE)\pdwin32.mk
    15 
    16 ##############################################################################
    17 # Tools and Flags Addjustments
    18 ##############################################################################
    19 OBJEXT     = obj
    20 
    21 CINCLUDES  = -I$(WIN32KINCLUDE) -I$(PDWIN32_INCLUDE)
    22 CFLAGS     = $(CINCLUDES) $(CFLAGS) -DRING3 -DWIN32KLIB \
    23              -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- -Ge+ -Gm- -Gn- -Ti+ -Rn
    24 CXXFLAGS   = $(CINCLUDES) $(CXXFLAGS) -DRING3 -DPE2LX \
    25              -Wall+ppt-ppc-inl-cnv-gnr-vft- -Ge+ -Gm- -Gn- -Ti+ -Gx -Rn
    268
    279
    28 ##############################################################################
    29 # Interference rules. Note: -Fo is IBMCPP specific.
    30 ##############################################################################
    31 {$(WIN32KLIB)}.c{$(WIN32KOBJ)}.$(OBJEXT):
    32     @$(ECHO) compiling: $(@B).c
    33     @$(CC) $(CFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$@ $<
    34 
    35 {$(WIN32KLIB)}.asm{$(WIN32KOBJ)}.$(OBJEXT):
    36     @$(ECHO) assmbling: $(@B).c
    37     $(AS) $(ASFLAGS) $< -Fo:$@ -Fl:$(WIN32KLIST)\$(*B).lst
    38 
    39 {$(WIN32KLIB)}.cpp.obj:
    40     @$(ECHO) compiling: $(@B).cpp
    41     $(CXX) $(CXXFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$@ $<
     10#
     11# Tell build environment we're build a public library which should
     12# work with both exe and dlls (hence EXETARGET). It should also
     13# invoke the additional dependency rule.
     14#
     15LIBTARGET=1
     16PUBLICLIB=1
     17EXETARGET=1
     18ADDITIONAL_DEP = mydep
     19WIN32KINCLUDE = ..\include
    4220
    4321
    44 ##############################################################################
    45 # Main targets.
    46 ##############################################################################
    47 TARGET   = win32k.lib
    48 
    49 OBJS     =  $(WIN32KOBJ)\libInit.$(OBJEXT)         \
    50             $(WIN32KOBJ)\libTerm.$(OBJEXT)     \
    51             $(WIN32KOBJ)\libWin32kInstalled.$(OBJEXT) \
    52             $(WIN32KOBJ)\libWin32kQueryOptionsStatus.$(OBJEXT) \
    53             $(WIN32KOBJ)\libWin32kSetOptions.$(OBJEXT) \
    54             $(WIN32KOBJ)\libDosAllocMemEx.$(OBJEXT) \
    55             $(WIN32KOBJ)\libW32kQueryOTEs.$(OBJEXT) \
    56             $(WIN32KOBJ)\libW32kProcessReadWrite.$(OBJEXT) \
    57             $(WIN32KOBJ)\libGetCS.obj
     22#
     23# Include
     24#
     25!include ..\..\..\makefile.inc
    5826
    5927
    60 
    61 all:    $(TARGET) \
    62         $(PDWIN32_LIB)\$(TARGET)
    63 
    64 ##############################################################################
    65 # win32k.lib rule.
    66 ##############################################################################
    67 $(TARGET): $(OBJS)
    68     @$(ECHO) making library $@
    69     -$(RM) $@
    70     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    71 
    72 $(PDWIN32_LIB)\$(TARGET): $(TARGET)
    73     $(CP) $(TARGET) $(PDWIN32_LIB)
    74 
    75 ##############################################################################
    76 # libtest.exe - test program for the library.
    77 ##############################################################################
    78 libtest.exe: libTest.c $(TARGET)
    79     @$(ECHO) making $@
    80     $(CC) $(CFLAGS) -Ge+ -Gn+ -Re -Fe$(WIN32KOBJ)\libTest.obj \
    81         -Fe$@ $(TARGET) -Fm$(*B).map libTest.c
     28#
     29# Tools and Flags Addjustments
     30#
     31CINCLUDES  = -I$(WIN32KINCLUDE) $(CINCLUDES)
     32CDEFINES   = -DRING3 -DWIN32KLIB
     33!if "$(VAC3)" == "1" | "$(VAC36)" == "1"
     34CFLAGS     = $(CFLAGS)    -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- -Rn
     35CXXFLAGS   = $(CINCLUDES) -Wall+ppt-ppc-inl-cnv-gnr-vft-             -Rn
     36!endif
    8237
    8338
    84 ##############################################################################
    85 # Cleanup
    86 ##############################################################################
    87 clean:
    88     @$(RM) $(OBJS) $(PDWIN32_LIB)\$(TARGET) ..\$(TARGET) *.pch \
    89         $(WIN32KOBJ)\libTest.obj *.obj *.exe *.lib *.map
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
     42OBJS = \
     43$(OBJDIR)\libInit.obj \
     44$(OBJDIR)\libTerm.obj \
     45$(OBJDIR)\libWin32kInstalled.obj \
     46$(OBJDIR)\libWin32kQueryOptionsStatus.obj \
     47$(OBJDIR)\libWin32kSetOptions.obj \
     48$(OBJDIR)\libDosAllocMemEx.obj \
     49$(OBJDIR)\libW32kQueryOTEs.obj \
     50$(OBJDIR)\libW32kProcessReadWrite.obj \
     51$(OBJDIR)\libGetCS.obj
    9052
    9153
    92 ##############################################################################
     54#
     55# Target name - name of the lib without extention and path.
     56#
     57TARGET  = win32k
     58
     59
     60#
     61# Includes the common rules.
     62#
     63!include $(ODIN32_POST_INC)
     64
     65
     66#
    9367# Dependencies.
    94 ##############################################################################
    95 dep:
    96     $(DEPEND) @<<
    97         -obj$(OBJEXT) -o$(WIN32KOBJ) $(CINCLUDES)
    98         $(WIN32KBASE)\include\*.h *.c* *.asm
    99 <<
     68#
     69mydep:
     70    $(DEPEND) -a -o$$(OBJDIR) $(CINCLUDES) $(WIN32KINCLUDE)\*.h
    10071
    101 !if [$(EXISTS) .depend] == 0
    102 !   include .depend
    103 !else
    104 !   if [$(ECHO) .depend doesn't exist]
    105 !   endif
    106 !endif
    107 
Note: See TracChangeset for help on using the changeset viewer.