nt.mak
changeset 787 6c76287c00fd
child 823 f2e49eaa8efa
equal deleted inserted replaced
786:789e2f20de44 787:6c76287c00fd
       
     1 # TARGTYPE "Win32 (x86) Console Application" 0x0103
       
     2 
       
     3 !IF "$(CFG)" == ""
       
     4 CFG=Win32 Debug
       
     5 !MESSAGE No configuration specified.  Defaulting to Win32 Debug.
       
     6 !ENDIF 
       
     7 
       
     8 !IF "$(CFG)" != "Win32 Release" && "$(CFG)" != "Win32 Debug"
       
     9 !MESSAGE Invalid configuration "$(CFG)" specified.
       
    10 !MESSAGE You can specify a configuration when running NMAKE on this makefile
       
    11 !MESSAGE by defining the macro CFG on the command line.  For example:
       
    12 !MESSAGE 
       
    13 !MESSAGE NMAKE /f "stcnt.mak" CFG="Win32 Debug"
       
    14 !MESSAGE 
       
    15 !MESSAGE Possible choices for configuration are:
       
    16 !MESSAGE 
       
    17 !MESSAGE "Win32 Release" (based on "Win32 (x86) Console Application")
       
    18 !MESSAGE "Win32 Debug" (based on "Win32 (x86) Console Application")
       
    19 !MESSAGE 
       
    20 !ERROR An invalid configuration is specified.
       
    21 !ENDIF 
       
    22 
       
    23 ################################################################################
       
    24 # Begin Project
       
    25 # PROP Target_Last_Scanned "Win32 Debug"
       
    26 CPP=cl.exe
       
    27 RSC=rc.exe
       
    28 
       
    29 !IF  "$(CFG)" == "Win32 Debug"
       
    30 
       
    31 # PROP BASE Use_MFC 0
       
    32 # PROP BASE Use_Debug_Libraries 1
       
    33 # PROP BASE Output_Dir "WinDebug"
       
    34 # PROP BASE Intermediate_Dir "WinDebug"
       
    35 # PROP Use_MFC 0
       
    36 # PROP Use_Debug_Libraries 1
       
    37 # PROP Output_Dir "WinDebug"
       
    38 # PROP Intermediate_Dir "WinDebug"
       
    39 OUTDIR=.\WinDebug
       
    40 INTDIR=.\WinDebug
       
    41 
       
    42 ALL : .\WinDebug\libbasic.dll
       
    43 
       
    44 $(OUTDIR) : 
       
    45     if not exist $(OUTDIR)/nul mkdir $(OUTDIR)
       
    46 
       
    47 # ADD BASE CPP /nologo /W3 /GX /Zi /YX /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /FR /c
       
    48 # ADD CPP /nologo /W3 /GX /Zi /YX /Ob1 /I "..\include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "HAVE_CONFIG_H" /FR /c
       
    49 # SUBTRACT CPP /WX
       
    50 CPP_PROJ=/nologo /W3 /GX /Zi /YX /Ob1 /I "..\include" /D\
       
    51  "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "HAVE_CONFIG_H" /FR$(INTDIR)/\
       
    52  /Fp$(OUTDIR)/"stcnt.pch" /Fo$(INTDIR)/ /Fd$(OUTDIR)/"stcnt.pdb" /c 
       
    53 CPP_OBJS=.\WinDebug/
       
    54 # ADD BASE RSC /l 0x409 /d "_DEBUG"
       
    55 # ADD RSC /l 0x409 /d "_DEBUG"
       
    56 BSC32=bscmake.exe
       
    57 # ADD BASE BSC32 /nologo
       
    58 # ADD BSC32 /nologo
       
    59 
       
    60 .\WinDebug\stcnt.bsc : $(OUTDIR)  $(BSC32_SBRS)
       
    61     $(BSC32) @<<
       
    62   $(BSC32_FLAGS) $(BSC32_SBRS)
       
    63 <<
       
    64 
       
    65 LINK32=link.exe
       
    66 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /NOLOGO /SUBSYSTEM:console /DEBUG /MACHINE:I386
       
    67 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib wsock32.lib /NOLOGO /SUBSYSTEM:console /DEBUG /MACHINE:I38
       
    68 
       
    69 LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \
       
    70  wsock32.lib /NOLOGO /SUBSYSTEM:console /INCREMENTAL:yes\
       
    71  /PDB:$(OUTDIR)/"stcnt.pdb" /DEBUG /MACHINE:I386 /DLL /VERBOSE
       
    72 DEF_FILE=
       
    73 LINK32_OBJS= \
       
    74 	Object.obj \
       
    75 	Boolean.obj \
       
    76 	True.obj
       
    77 
       
    78 .\WinDebug\libbasic.dll : $(OUTDIR)  $(DEF_FILE) $(LINK32_OBJS)
       
    79     $(LINK32) @<<
       
    80   $(LINK32_FLAGS) $(LINK32_OBJS)
       
    81 <<
       
    82 
       
    83 !ENDIF 
       
    84 
       
    85 .c{$(CPP_OBJS)}.obj:
       
    86    $(CPP) $(CPP_PROJ) $<  
       
    87 
       
    88 .cpp{$(CPP_OBJS)}.obj:
       
    89    $(CPP) $(CPP_PROJ) $<  
       
    90 
       
    91 .cxx{$(CPP_OBJS)}.obj:
       
    92    $(CPP) $(CPP_PROJ) $<  
       
    93 
       
    94 ############################################################################
       
    95 # Begin Group "src"
       
    96 
       
    97 STC=stc
       
    98 INCL=-I"..\include"
       
    99 # FFLAGS=-Fo.\WinDebug
       
   100 
       
   101 .SUFFIXES: .st .obj
       
   102 
       
   103 .st.obj:
       
   104     $(STC) $(INCL) $(FFLAGS) -c $<
       
   105 
       
   106 # End Source File
       
   107 ############################################################################
       
   108 
       
   109 # End Group
       
   110 # End Project
       
   111 ############################################################################