# @(#)68        1.5  src/examples/demo/context_app/makefile.vc3, examples.src, os2dce21.dss, 960602a.1  1/12/96  14:57:03
#
#/********************************************************************
#
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for CONTEXT_APP sample application [IBM Visual Age C++ 3.0] [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.
#
#********************************************************************/

!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

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

context_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(server_OFILES) /O:context_server.exe $(LDLIBS) $*.def

context_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(client_OFILES) /O:context_client.exe $(LDLIBS) $*.def

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

rmtarget:
    -del context_client.exe context_server.exe

clobber: clean rmtarget
