#*******************************************************************************
#* SAMPLE PROJECT: Hello World Version 6 Makefile for OS/2                     *
#*                                                                             *
#* COPYRIGHT:                                                                  *
#* ----------                                                                  *
#* Copyright (C) International Business Machines Corp., 1992,1995.             *
#*                                                                             *
#* 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;
#       OS/2 Developer's Toolkit target_directory include paths
#    - Environment variable LIB contains paths to:
#       IBM Compiler target_directory\lib;
#       OS/2 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

ERASE=ERASE
GCPPC=ICC.EXE
GLINK=ICC.EXE

ICLCPPOPTS=/GM /GD /DIC_TRACE_ALL /DIC_DEVELOP

GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)

GCPPLFLAGS=/Tdp /B" /pmtype:pm"

all:  HELLO6.EXE AHELLOW6.ICO AHELLOW6.HLP ANOTEBW6.OBJ


HELLO6.EXE:  AHELLOW6.OBJ ADIALOG6.OBJ AEARTHW6.OBJ ATIMEHDR.OBJ \
                                       ANOTEBW6.OBJ AHELLOW6.RES
        $(GLINK) $(GCPPLFLAGS) /Fe"HELLO6.EXE" \
          AHELLOW6.OBJ ADIALOG6.OBJ AEARTHW6.OBJ ATIMEHDR.OBJ ANOTEBW6.OBJ
        RC AHELLOW6.RES HELLO6.EXE

AHELLOW6.OBJ:  AHELLOW6.CPP AHELLOW6.HPP AHELLOW6.H \
               ADIALOG6.HPP AEARTHW6.HPP ATIMEHDR.HPP ANOTEBW6.HPP
        $(GCPPC) /C $(GCPPFLAGS) AHELLOW6.CPP

ADIALOG6.OBJ:  ADIALOG6.CPP ADIALOG6.HPP AHELLOW6.H
        $(GCPPC) /C $(GCPPFLAGS) ADIALOG6.CPP

AEARTHW6.OBJ:  AEARTHW6.CPP AEARTHW6.HPP AHELLOW6.H
        $(GCPPC) /C $(GCPPFLAGS) AEARTHW6.CPP

ATIMEHDR.OBJ:  ATIMEHDR.CPP ATIMEHDR.HPP
        $(GCPPC) /C $(GCPPFLAGS) ATIMEHDR.CPP

ANOTEBW6.OBJ:  ANOTEBW6.CPP ANOTEBW6.HPP
        $(GCPPC) /C $(GCPPFLAGS) ANOTEBW6.CPP

AHELLOW6.RES:  AHELLOW6.RC AHELLOW6.H
        RC -r -DIC_PM AHELLOW6.RC

AHELLOW6.HLP:  AHELLOW6.IPF
        IPFC AHELLOW6.IPF

clean:
        $(ERASE) HELLO6.EXE
        $(ERASE) AHELLOW6.OBJ
        $(ERASE) ADIALOG6.OBJ
        $(ERASE) AEARTHW6.OBJ
        $(ERASE) ATIMEHDR.OBJ
        $(ERASE) ANOTEBW6.OBJ
        $(ERASE) AHELLOW6.RES
        $(ERASE) AHELLOW6.HLP
        $(ERASE) HELLO6.INI
