home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-02-22 | 4.3 KB | 118 lines |
- #*******************************************************************************
- #* SAMPLE PROJECT: Hello6 Makefile for Windows *
- #* *
- #* COPYRIGHT: *
- #* ---------- *
- #* Copyright (C) International Business Machines Corp., 1992,1996. *
- #* *
- #* DISCLAIMER OF WARRANTIES: *
- #* ------------------------- *
- #* The following [enclosed] code is sample code created by IBM *
- #* Corporation. This sample code is not part of any standard IBM product *
- #* and is provided to you solely for the purpose of assisting you in the *
- #* development of your applications. The code is provided "AS IS", *
- #* without warranty of any kind. IBM shall not be liable for any damages *
- #* arising out of your use of the sample code, even if they have been *
- #* advised of the possibility of such damages. *
- #* *
- #*******************************************************************************
-
- # Make file assumptions:
- # - Environment variable INCLUDE contains paths to:
- # IBM Compiler target_directory\include;
- # IBM Developer's Toolkit target_directory include paths
- # - Environment variable LIB contains paths to:
- # IBM Compiler target_directory\lib;
- # IBM Developer's Toolkit target_directory lib paths
- # - Current directory contains source files. Originals are in:
- # IBM Compiler target_directory\samples\ioc\hello6
- # - current directory will be used to store:
- # object, executable, and resource files
- #
- # RTF versus IPF:
- # - This makefile by default uses RTP source files to create RTF help.
- # By specifying USE_IPF=1, the makefile will use IPF sources files
- # to create IPF help. Example: nmake USE_IPF=1 /a
-
- # --- Tool defintions ---
- ERASE=ERASE
- GCPPC=ICC
- GLINK=ICC
- GRC=IRC
- GRCV=IRCCNV
- GIPFC=IPFC
- GHCW=HCW
- GIPFCVIEW=IVIEW
- GIMAGE=IBMPCNV
-
- # --- Tool flags ---
- ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+
- !IFDEF USE_IPF
- ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+ /DUSE_IPF
- !ENDIF
- GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
- GCPPLFLAGS=/Tdp /B"/pmtype:pm /debug /browse"
- GPERFOBJ=cppwpa3.obj
- GRCFLAGS=-DIC_WIN
- GRCVFLAGS=
- GIPFCFLAGS=/q
- GHCWFLAGS=/c /e
- GIMAGEFLAGS=
-
- # --- Body ---
- all: hello6.exe ahellow6.hlp
-
- hello6.exe: ahellow6.obj adialog6.obj aearthw6.obj anotebw6.obj ahellow6.res
- $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"hello6.exe" \
- ahellow6.obj adialog6.obj aearthw6.obj anotebw6.obj $(GPERFOBJ) ahellow6.res
-
- ahellow6.obj: ahellow6.cpp ahellow6.hpp ahellow6.h
- $(GCPPC) /C+ $(GCPPFLAGS) ahellow6.cpp
-
- adialog6.obj: adialog6.cpp adialog6.hpp ahellow6.h ahellow6.hpp
- $(GCPPC) /C+ $(GCPPFLAGS) adialog6.cpp
-
- aearthw6.obj: aearthw6.cpp aearthw6.hpp ahellow6.h ahellow6.hpp
- $(GCPPC) /C+ $(GCPPFLAGS) aearthw6.cpp
-
- anotebw6.obj: anotebw6.cpp anotebw6.hpp ahellow6.h ahellow6.hpp
- $(GCPPC) /C+ $(GCPPFLAGS) anotebw6.cpp
-
- ahellow6.res: ahellow6.rc ahellow6.h ahellow6.ico
- $(GRC) $(GRCFLAGS) ahellow6.rc
-
- ahellow6.rc: ahellow6.rcx
- $(GRCV) $(GRCVFLAGS) ahellow6.rcx ahellow6.rc
-
- ahellow6.ico: ahellow6.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) ahellow6.icx ahellow6.ico
-
- !IFNDEF USE_IPF
- ahellow6.hlp: ahellow6.hpj ahellow6.rtf
- $(GHCW) $(GHCWFLAGS) ahellow6.hpj
- !ENDIF
-
- !IFDEF USE_IPF
- ahellow6.hlp: ahellow6.ipf
- $(GIPFC) $(GIPFCFLAGS) ahellow6.ipf
- !ENDIF
-
-
- # --- Cleanup ---
- clean:
- -$(ERASE) hello6.exe
- -$(ERASE) ahellow6.obj
- -$(ERASE) adialog6.obj
- -$(ERASE) aearthw6.obj
- -$(ERASE) anotebw6.obj
- -$(ERASE) ahellow6.pdb
- -$(ERASE) adialog6.pdb
- -$(ERASE) aearthw6.pdb
- -$(ERASE) anotebw6.pdb
- -$(ERASE) ahellow6.res
- -$(ERASE) ahellow6.hlp
- -$(ERASE) ahellow6.ph
- # -$(ERASE) ahellow6.rc
- # -$(ERASE) ahellow6.ico
-
-