|
|
1.1 root 1: # Win32 NMAKE definitions
2:
3:
4: !IF "$(CPU)" == "i386"
5:
6: # Debug switches are default for current release
7: #
8: # These switches allow for source level debugging
9: # with NTSD for local and global variables.
10:
11:
12: CPUTYPE=1
13: cdebug = -Zi -Od
14: cvtomfdebug = -g -c
15:
16: cc = cl386
17: cflags = -c -G3d -W3 -Di386=1 $(cdebug)
18:
19: cvtobj = cvtomf $(cvtomfdebug)
20: !ENDIF
21:
22: !IF "$(CPU)" == "MIPS"
23: #declarations for use on self hosted MIPS box.
24:
25: CPUTYPE=2
26: cc = cc
27: cflags = -c -std -G0 -O -o $(*B).obj -EL -DMIPS=1
28: cvtobj = mip2coff $(*B).obj
29: !ENDIF
30:
31: !IFNDEF CPUTYPE
32: !ERROR Must specify CPU Environment Variable (i386 or MIPS )
33: !ENDIF
34:
35:
36: #Universal declaration
37:
38: cvars = -DWIN32
39: linkdebug = -debug:full -debugtype:cv
40: link = link $(linkdebug)
41:
42:
43: # link flags - must be specified after $(link)
44: #
45: # conflags : creating a character based console application
46: # guiflags : creating a GUI based "Windows" application
47:
48: conflags = -subsystem:console -entry:mainCRTStartup
49: guiflags = -subsystem:windows -entry:WinMainCRTStartup
50:
51: # Link libraries - system import and C runtime libraries
52: #
53: # conlibs : libraries to link with for a console application
54: # guilibs : libraries to link with for a "Windows" application
55: #
56: # note : $(LIB) is set in environment variables
57:
58: conlibs = $(LIB)\kernel32.lib $(LIB)\ntdll.lib $(LIB)\libcmt.lib
59:
60: guilibs = $(LIB)\gdi.lib $(LIB)\user.lib $(LIB)\userrtl.lib \
61: $(LIB)\base.lib $(LIB)\ntdll.lib $(LIB)\libcmt.lib \
62: $(LIB)\winmm.lib $(LIB)\commdlg.lib
63:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.