home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
newmk
/
inc
/
ntwin32.mak
next >
Wrap
Text File
|
1995-05-18
|
2KB
|
81 lines
# Win32 NMAKE definitions
!IF "$(CPU)" == "i386"
# Debug switches are default for current release
#
# These switches allow for source level debugging
# with NTSD for local and global variables.
CPUTYPE=1
#cdebug = -Zd -Od
#cvtomfdebug = -g
cdebug = -Zi
cvtomfdebug = -c
cc = cl386
DLL_INC = -D_DLL
!IF "$(DLL_SWITCH)" == "NO_DLL"
DLL_INC =
!ENDIF
cflags = -c -D_MT $(DLL_INC) -G3d -W3 -Di386=1 $(cdebug)
cvtobj = cvtomf $(cvtomfdebug)
!ENDIF
!IF "$(CPU)" == "MIPS"
#declarations for use on self hosted MIPS box.
CPUTYPE=2
cc = cc
cflags = -c -std -G0 -O -o $(*B).obj -EL -DMIPS=1
cvtobj = mip2coff $(*B).obj
!ENDIF
!IFNDEF CPUTYPE
!ERROR Must specify CPU Environment Variable (i386 or MIPS )
!ENDIF
#Universal declaration
cvars = -DWIN32
linkdebug = -debug:full -debugtype:cv
link = link $(linkdebug)
# link flags - must be specified after $(link)
#
# conflags : creating a character based console application
# guiflags : creating a GUI based "Windows" application
conflags = -subsystem:console -entry:mainCRTStartup
guiflags = -subsystem:windows -entry:WinMainCRTStartup
# Link libraries - system import and C runtime libraries
#
# conlibs : libraries to link with for a console application
# guilibs : libraries to link with for a "Windows" application
#
# note : $(LIB) is set in environment variables
CRT_LIB = crtdll.lib
!IF "$(DLL_SWITCH)" == "NO_DLL"
CRT_LIB = libcmt.lib
!ENDIF
guilibs = gdi32.lib user32.lib \
kernel32.lib ntdll.lib $(CRT_LIB) \
winmm.lib comdlg32.lib
conlibs = kernel32.lib ntdll.lib $(CRT_LIB)