|
|
1.1 root 1: # Makefile : Builds the ctrltest application
2: #
3: # Usage: NMAKE option (build Multipad)
4: # or: NMAKE clean (erase all compiled files)
5: #
6: # option: DEBUG=[0|1] (DEBUG not defined is equivalent to DEBUG=0)
7: #
8: # This is a part of the Microsoft Foundation Classes C++ library.
9: # Copyright (C) 1992 Microsoft Corporation
10: # All rights reserved.
11: #
12: # This source code is only intended as a supplement to the
13: # Microsoft Foundation Classes Reference and Microsoft
14: # QuickHelp documentation provided with the library.
15: # See these sources for detailed information regarding the
16: # Microsoft Foundation Classes product.
17: #
18:
19:
20: OBJS=ctrltest.obj paredit.obj \
21: dertest.obj wclstest.obj paredit2.obj subtest.obj \
22: bbutton.obj custlist.obj custmenu.obj \
23: spintest.obj spin.obj
24:
25: !ifndef NTMFC
26: OBJS = $(OBJS) derpen.obj dlgpen.obj featpen.obj
27: !endif
28:
29: PCH=ctrltest.h
30:
31: !ifndef NTMFC
32: # program uses Win31 #defines, but not any Win31 library entries (i.e. rc -30)
33: CPPFLAGS= /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH)
34: LINKFLAGS=/NOD /ONERROR:NOEXE
35:
36: !if "$(DEBUG)"=="1"
37: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
38: LINKFLAGS=$(LINKFLAGS) /COD
39: LIBS=mafxcwd libw commdlg mlibcew
40: !else
41: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
42: LINKFLAGS=$(LINKFLAGS)
43: LIBS=mafxcw libw commdlg mlibcew
44: !endif
45:
46: ctrltest.exe: ctrltest.res ctrltest.def $(OBJS)
47: link $(LINKFLAGS) @<<
48: $(OBJS),
49: ctrltest,
50: NUL,
51: $(LIBS),
52: ctrltest.def;
53: <<
54: rc -30 /k /t ctrltest.res
55:
56: !else
57:
58: !include ..\ntsample.mak
59:
60: ctrltest.exe: ctrltest.def ctrltest.res $(OBJS)
61: $(LINK) $(GUIFLAGS) -out:ctrltest.exe $(OBJS) ctrltest.res $(MFCLIB) $(GUILIBS)
62:
63: !endif
64:
65: ctrltest.obj : ctrltest.cpp ctrltest.h
66: $(CC) $(CPPFLAGS) /Yc$(PCH) /c ctrltest.cpp
67:
68: *.obj: ctrltest.h $(PCH)
69: ctrltest.res: *.ico *.dlg ctrltest.h
70:
71: clean:
72: -erase ctrltest.exe
73: -erase ctrltest.res
74: -erase ctrltest.pch
75: -erase *.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.