# @(#)07        1.11  src/examples/pubsex/binop/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/24/96  17:55:12
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for BINOP 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

PROG = server.exe client.exe
all: $(PROG)

server.exe: server.obj binop_sstub.obj manager.obj
    $(LD) $(LDFLAGS) server + binop_sstub + manager, server,, $(LDLIBS);

client.exe: client.obj binop_cstub.obj
    $(LD) $(LDFLAGS) client + binop_cstub, client,, $(LDLIBS);

server.obj: server.c binop.h
binop_sstub.obj: binop_sstub.c binop.h
manager.obj: manager.c binop.h
client.obj: client.c binop.h
binop_cstub.obj: binop_cstub.c binop.h

binop_cstub.c binop_sstub.c binop.h: binop.idl
    $(IDL) $(EPV_IDL) binop.idl

clean:
    -del binop_cstub.c binop_sstub.c binop.h
    -del *.obj *.map

rmtarget:
    -del $(PROG)

clobber: clean rmtarget
