# @(#)46        1.9  src/examples/pubsex/strtree/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/24/96  17:55:20
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for STRING TREE 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

all: server.exe client.exe

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

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

server.obj: server.c string_tree.h
string_tree_sstub.obj: string_tree_sstub.c string_tree.h
manager.obj: manager.c string_tree.h
client.obj: client.c string_tree.h
string_tree_cstub.obj: string_tree_cstub.c string_tree.h

FROMIDL = string_tree_cstub.c string_tree_sstub.c string_tree.h
$(FROMIDL): string_tree.idl
    $(IDL) $(EPV_IDL) string_tree.idl

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

rmtarget:
    -del client.exe server.exe

clobber: clean rmtarget
