home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-02-22 | 3.7 KB | 102 lines |
- #*******************************************************************************
- #* SAMPLE PROJECT: Drag3 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\drag3
- # - 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: drag3.exe
-
- drag3.exe: dmsamp3.obj dmsamp3.res
- $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"drag3.exe" \
- dmsamp3.obj $(GPERFOBJ) dmsamp3.res
-
- dmsamp3.obj: dmsamp3.cpp dmsamp3.hpp dmsamp3.h
- $(GCPPC) /C+ $(GCPPFLAGS) dmsamp3.cpp
-
- dmsamp3.res: dmsamp3.rc dmsamp3.h dmsamp3.ico apple.ico bolt.ico \
- car.ico space.ico starflee.ico win100.ico
- $(GRC) $(GRCFLAGS) dmsamp3.rc
-
- dmsamp3.rc: dmsamp3.rcx
- $(GRCV) $(GRCVFLAGS) dmsamp3.rcx dmsamp3.rc
-
- dmsamp3.ico: dmsamp3.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) dmsamp3.icx dmsamp3.ico
-
- apple.ico: apple.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) apple.icx apple.ico
-
- bolt.ico: bolt.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) bolt.icx bolt.ico
-
- car.ico: car.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) car.icx car.ico
-
- space.ico: space.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) space.icx space.ico
-
- starflee.ico: starflee.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) starflee.icx starflee.ico
-
- win100.ico: win100.icx
- $(GIMAGE) -I $(GIMAGEFLAGS) win100.icx win100.ico
-
-
- # --- Cleanup ---
- clean:
- -$(ERASE) drag3.exe
- -$(ERASE) dmsamp3.obj
- -$(ERASE) dmsamp3.pdb
- -$(ERASE) dmsamp3.res
- # -$(ERASE) dmsamp3.rc
- # -$(ERASE) dmsamp3.ico
-
-