|
|
1.1 root 1: # Makefile : Builds the templdef application
2: #
3: # Usage: NMAKE options (build templdef)
4: # or: NMAKE clean (erase all compiled files)
5: #
6: # options: DEBUG=[0|1] (DEBUG not defined is equivalent to DEBUG=0)
1.1.1.3 ! root 7: # PLATFORM=INTEL (defaults to INTEL)
! 8: # This option chooses the appropriate tools and sources for the
! 9: # different platforms support by Windows/NT. Currently INTEL and
! 10: # MIPS are supported; more will be aded as they become available.
1.1 root 11: #
12: # This is a part of the Microsoft Foundation Classes C++ library.
13: # Copyright (C) 1992 Microsoft Corporation
14: # All rights reserved.
15: #
16: # This source code is only intended as a supplement to the
17: # Microsoft Foundation Classes Reference and Microsoft
1.1.1.3 ! root 18: # documentation provided with the library.
1.1 root 19: # See these sources for detailed information regarding the
20: # Microsoft Foundation Classes product.
21: #
22:
1.1.1.3 ! root 23: !if "$(PLATFORM)"==""
! 24: PLATFORM=ALPHA
! 25: !endif
1.1 root 26:
1.1.1.3 ! root 27: !if "$(PLATFORM)"=="INTEL"
! 28: CPP = cl
! 29: CPPFLAGS=/W3 -D_X86_ -D_CONSOLE
! 30: LINK=link
! 31: LIBS=
! 32: !else
! 33: !if "$(PLATFORM)"=="MIPS"
! 34: CPP = mcl
! 35: CPPFLAGS=/W3 /D_MIPS_ /D_CONSOLE
! 36: LINK=link32
! 37: LIBS=kernel32.lib libc.lib
1.1 root 38: !else
1.1.1.3 ! root 39: !if "$(PLATFORM)"=="ALPHA"
! 40: CPP = claxp
! 41: CPPFLAGS=/W3 /D_CONSOLE
! 42: LINK=link32
! 43: LIBS=kernel32.lib libc.lib
! 44: !endif
! 45: !endif
1.1 root 46: !endif
1.1.1.3 ! root 47: LINKFLAGS=-subsystem:console -entry:mainCRTStartup
1.1 root 48:
1.1.1.3 ! root 49: !if "$(DEBUG)" == "1"
! 50: CPPFLAGS=$(CPPFLAGS) /D_DEBUG /Od /Zi
! 51: LINKFLAGS=$(LINKFLAGS) -debug:full -debugtype:cv
! 52: LIBS=nafxcrd.lib $(LIBS)
1.1 root 53: !else
1.1.1.3 ! root 54: CPPFLAGS=$(CPPFLAGS) /Ox
! 55: LIBS=nafxcr.lib $(LIBS)
! 56: !endif
1.1 root 57:
1.1.1.3 ! root 58: .SUFFIXES : .cpp
! 59: .cpp.obj :
! 60: $(CPP) /c $(CPPFLAGS) $*.cpp
1.1 root 61:
62: templdef.exe: templdef.obj
1.1.1.3 ! root 63: $(LINK) $(LINKFLAGS) -out:$*.exe templdef.obj $(LIBS)
1.1 root 64:
65: clean:
66: -erase templdef.exe
67: -erase templdef.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.