home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-03-16 | 1.6 KB | 63 lines |
- # Makefile : Builds the application.
- #
- # Usage: NMAKE options (builds the application)
- # or: NMAKE CLEAN (erases the compiled files)
- #
- # Options: DEBUG=[0|1] (default is 0)
- #
- # This is a part of the Microsoft Foundation Classes C++ library.
- # Copyright (C) 1992 Microsoft Corporation
- # All rights reserved.
- #
- # This source code is only intended as a supplement to the
- # Microsoft Foundation Classes Reference and Microsoft
- # QuickHelp documentation provided with the library.
- # See these sources for detailed information regarding the
- # Microsoft Foundation Classes product.
- #
-
- PCH=oclient.h
- CPPFLAGS= /DWINVER=0x0300 /AM /W3 /GA /Zp /Yu$(PCH)
- LINKFLAGS=/NOD /ONERROR:NOEXE
-
- !if "$(DEBUG)"=="1"
- CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Odr /f /Zi
- LINKFLAGS=$(LINKFLAGS) /COD
- LIBS=mafxcwd mlibcew libw shell olecli commdlg
- !else
- CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
- LINKFLAGS=$(LINKFLAGS)
- LIBS=mafxcw mlibcew libw shell olecli commdlg
- !endif
-
- OBJS=oclient.obj mainwnd.obj fileio.obj itemwnd.obj
-
- all: oclient.exe
-
- oclient.obj oclient.pch: oclient.cpp oclient.h resource.h mainwnd.h
- $(CPP) $(CPPFLAGS) /Yc$(PCH) /c oclient.cpp
-
-
- oclient.exe: $(OBJS) oclient.def oclient.res
- link $(LINKFLAGS) @<<
- $(OBJS),
- oclient,
- NUL,
- $(LIBS),
- oclient.def
- <<
- rc -30 -k -t oclient.res
-
- oclient.res: oclient.rc resource.h
- rc -r oclient.rc
-
- fileio.obj : oclient.h mainwnd.h itemwnd.h
- itemwnd.obj : oclient.h mainwnd.h itemwnd.h
- mainwnd.obj : oclient.h mainwnd.h itemwnd.h
-
- clean:
- -erase oclient.exe
- -erase oclient.res
- -erase oclient.pch
- -erase *.obj
-