#*******************************************************************************
#* FILE NAME: DDE SERVER SAMPLE 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\dde
#    - 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=/B" /pmtype:pm"

all:  DDESERV.EXE

DDESERV.EXE:  ASERVER.OBJ ASERVER.RES
        $(GLINK) $(GCPPLFLAGS) /Fe"DDESERV.EXE" \
          ASERVER.OBJ
        RC ASERVER.RES DDESERV.EXE

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

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

clean:
        $(ERASE) DDESERV.EXE
        $(ERASE) ASERVER.OBJ
        $(ERASE) ASERVER.RES
