# "@(#)18        1.21  src/examples/DCE_dirs.wat, examples.src, os2dce21.dss, 960602a.1  5/29/96  15:33:27";
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: Makefile macros for DCE sample makefiles [HPFS]
#              [Watcom C++ 10.5]
#
# ORIGINS: 27
#
# (C) COPYRIGHT International Business Machines Corp. 1995
#  All Rights Reserved
#  Licensed Materials - Property of IBM
#
#  US Government Users Restricted Rights - Use, duplication or
#  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#    Note: Modify the paths for the compiler, toolkits and DCE
#     examples to reflect the appropriate installation directories.
#********************************************************************/

# Component Directories
DCE_inc      = $(X):\opt\dcelocal\include;$(X):\opt\dcelocal\include\dce
DCE_lib      = $(X):\opt\dcelocal\lib
EXAMPLES_com = $(STEM)\common
MPTN_inc     = $(T):\mptn\include
MPTN_lib     = $(T):\mptn\lib
LOCAL        = .

# EMS example DNS-style server host names
host1   = "/.:/hosts/machine1.domain.org"
host2   = "/.:/hosts/machine2.domain.org"

#EMS example -- uncomment one of the following selections
#PFLAGS = -D_TWOHOSTS                # two hosts running emsd with one consumer
PFLAGS  =                            # one host  running emsd with one consumer

#Common flags
DSSFLAGS     = /DINTEL80x86 /DIBMOS2
IDLFLAGS     = -v -keep c_source -no_cpp

#!ifeq $(C) watcom1050
IBMC_inc     = $(Y):\watcom\h;$(Y):\watcom\h\os2
IBMC_lib     = $(Y):\watcom\lib386;
IBMC_os2lib  = $(Y):\watcom\lib386\os2
INCL_FLAGS   = -I. -I$(EXAMPLES_com) -I$(EXAMPLES_com)\os2 -I$(DCE_inc) -I$(IBMC_inc)
CC           = wcc386
CPP          = wpp386
LD           = wlink
IMPLIB       = $(Y):\watcom\binw\wlib
CDEBFLAGS    = /d2 /hw
# NOTE: Do not use /od (disable all optimizations). The Strtree, Greet_Auto and
#       Greet_Multi examples are not properly aligned on 4-byte boundaries using
#       this option.  /ot (time optimization) forces the proper DATA alignment.
CFLAGS       = /w3 /ze /fpi /bm /zp4 /ei /j /ot /3s /mf /sg /zq $(DSSFLAGS) $(CDEBFLAGS) $(INCL_FLAGS)
CPPFLAGS     = /xd /w1 /ze /fpi /bm /zp4 /ei /j /ot /3s /mf /sg /zq $(DSSFLAGS) $(CDEBFLAGS) $(INCL_FLAGS)
CPPFLAGS_dll = /xd /w1 /ze /fpi /bd /zp4 /ei /j /ot /3s /mf /sg /zq $(DSSFLAGS) $(CDEBFLAGS) $(INCL_FLAGS)
LDEBFLAGS    = DEBUG WATCOM ALL
OPTIONS      = OPTION ALIGNMENT=9 OPTION CASEEXACT OPTION MANYAUTODATA
LDFLAGS      = $(LDEBFLAGS) SYSTEM os2v2     OPTION OFFSET=0x10000 $(OPTIONS) SEGMENT CLASS 'code'
LDFLAGS_PM   = $(LDEBFLAGS) SYSTEM os2v2_pm  OPTION OFFSET=0x10000 $(OPTIONS) SEGMENT CLASS 'code'
LDFLAGS_dll  = $(LDEBFLAGS) SYSTEM os2v2 dll INITINSTANCE          $(OPTIONS) SEGMENT CLASS 'code'
LDLIBS       = $(DCE_lib)\dceos2
#!endif

#Common DCE IDL flags
NO_EPV_IDL   = -no_mepv $(IDLFLAGS)
EPV_IDL      = $(IDLFLAGS)

#Common OS/2 and DCE tools
IDL          = idl
RC           = rc
SAMS         = sams

# BANK example
BANK_DIR     = $(STEM)\bank
DCE_IDL_DIR  = $(X):\opt\dcelocal\include\dce

# TIMOP_SVC example
IDL_loc      = $(X):\opt\dcelocal\include\dce
