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