# @(#)42        1.4  src/examples/demo/context_app/makefile.wat, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:57:22
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for CONTEXT_APP sample application [Watcom] [HPFS]
#
# 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.
#
#********************************************************************/

# See README.EXAMPLES in order to configure the Examples command files.
!INCLUDE $(%STEM)\DCE_DIRS.wat

# inference rules
.c.obj:
    $(CC) $(CFLAGS) $*.c

# targets
all: context_server.exe context_client.exe

server_OFILES = context_sstub.obj context_server.obj context_manager.obj
client_OFILES = context_cstub.obj context_client.obj

context_sstub.obj   : context_sstub.c context.h
context_cstub.obj   : context_cstub.c context.h
context_server.obj  : context_server.c context.h
context_client.obj  : context_client.c  context.h
context_manager.obj : context_manager.c context.h

FROMIDL = context.h context_cstub.c context_sstub.c
$(FROMIDL) : context.idl
    $(IDL) $(EPV_IDL) context.idl

WORKSPACE = OPTION STACK=120k OPTION HEAPSIZE=64k
SERVER    = FILE context_server.obj FILE context_sstub.obj FILE context_manager.obj
CLIENT    = FILE context_client.obj FILE context_cstub.obj

context_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(SERVER) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

context_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(CLIENT) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

clean:
     -del *.obj *.map *.err
     -del $(FROMIDL)

rmtarget:
     -del context_client.exe context_server.exe

clobber:
     -del *.obj *.map *.err
     -del $(FROMIDL)
     -del context_client.exe context_server.exe

