#*******************************************************************************
#* SAMPLE PROJECT: mmstereo 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\mmstereo
#    - 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:  mmstereo.exe

mmstereo.exe: mmstereo.obj mltamp.obj mltcd.obj mltvid.obj mltwave.obj mmstereo.res
      $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"mmstereo.exe" \
      mmstereo.obj mltamp.obj mltcd.obj mltvid.obj mltwave.obj \
      $(GPERFOBJ) mmstereo.res

mmstereo.obj: mmstereo.cpp mmstereo.hpp mmstereo.h
      $(GCPPC) /C+ $(GCPPFLAGS) mmstereo.cpp

mltamp.obj:   mltamp.cpp mltamp.hpp mltamp.h mmstereo.h
      $(GCPPC) /C+ $(GCPPFLAGS) mltamp.cpp

mltcd.obj:    mltcd.cpp mltcd.hpp mltcd.h mmstereo.h
      $(GCPPC) /C+ $(GCPPFLAGS) mltcd.cpp

mltvid.obj:   mltvid.cpp mltvid.hpp mltvid.h mmstereo.h
      $(GCPPC) /C+ $(GCPPFLAGS) mltvid.cpp

mltwave.obj:  mltwave.cpp mltwave.hpp mltwave.h mmstereo.h
      $(GCPPC) /C+ $(GCPPFLAGS) mltwave.cpp

mmstereo.res: mmstereo.rc mmstereo.h mmstereo.ico
      $(GRC) $(GRCFLAGS) mmstereo.rc

mmstereo.rc:   mmstereo.rcx
      $(GRCV) $(GRCVFLAGS) mmstereo.rcx mmstereo.rc

mmstereo.ico:  mmstereo.icx
      $(GIMAGE) -I $(GIMAGEFLAGS) mmstereo.icx mmstereo.ico


# --- Cleanup ---
clean:
       -$(ERASE) mmstereo.exe
       -$(ERASE) mmstereo.res
       -$(ERASE) mmstereo.obj
       -$(ERASE) mltamp.obj
       -$(ERASE) mltcd.obj
       -$(ERASE) mltvid.obj
       -$(ERASE) mltwave.obj
       -$(ERASE) mmstereo.pdb
       -$(ERASE) mltamp.pdb
       -$(ERASE) mltcd.pdb
       -$(ERASE) mltvid.pdb
       -$(ERASE) mltwave.pdb
#       -$(ERASE) mmstereo.rc
#       -$(ERASE) mmstereo.ico

