home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-02-22 | 3.1 KB | 83 lines |
- #*******************************************************************************
- #* SAMPLE PROJECT: setcv 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\setcv
- # - current directory will be used to store:
- # object, executable, and resource files
-
- # --- 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+
- 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: setcv.exe
-
- setcv.exe: asetcv.obj asetcv.res
- $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"setcv.exe" \
- asetcv.obj $(GPERFOBJ) asetcv.res
-
- asetcv.obj: asetcv.cpp asetcv.hpp asetcv.h
- $(GCPPC) /C+ $(GCPPFLAGS) asetcv.cpp
-
- asetcv.res: asetcv.rc asetcv.h asetcv.ico
- $(GRC) $(GRCFLAGS) asetcv.rc
-
- asetcv.rc: asetcv.rcx
- $(GRCV) $(GRCVFLAGS) asetcv.rcx asetcv.rc
-
- asetcv.ico: asetcv.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) asetcv.icx asetcv.ico
-
-
- # --- Cleanup ---
- clean:
- -$(ERASE) setcv.exe
- -$(ERASE) asetcv.obj
- -$(ERASE) asetcv.pdb
- -$(ERASE) asetcv.res
- # -$(ERASE) asetcv.rc
- # -$(ERASE) asetcv.ico
-
-