#/********************************************************************
#
# @(#)41        1.7  src/examples/demo/context_app/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:41:17
#
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for CONTEXT_APP sample application [IBM CSet++] [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 <DCE_DIRS>

# inference rules
.c.obj:
    $(CC) -Fo$@ $(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


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

context_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(server_OFILES), $*.exe, $*.map, $(LDLIBS), $*.def

context_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(client_OFILES), $*.exe, $*.map, $(LDLIBS), $*.def

clean:
    -del *.obj
    -del context.h context_sstub.c context_cstub.c
    -del *.map

rmtarget:
    -del context_client.exe context_server.exe

clobber: clean rmtarget
