# @(#)56        1.9  src/examples/pubsex/strtree/makefile.bor, examples.src, os2dce21.dss, 960602a.1  1/12/96  15:22:52
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for STRING TREE sample application [Borland] [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>

WARNINGS = /w-sig

# inference rules
.c.obj:
    $(CC) @$(STEM)\cflags.bor $(INCL_FLAGS) $*.c

all: server.exe client.exe

server.exe: server.obj string_tree_sstub.obj manager.obj
    $(LD) $(LDFLAGS) $(IBMC_lib)\c02 + server + string_tree_sstub + manager, server,, $(LDLIBS), ,

client.exe: client.obj string_tree_cstub.obj
    $(LD) $(LDFLAGS) $(IBMC_lib)\c02 + 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
    $(CC) @$(STEM)\cflags.bor $(WARNINGS) $(INCL_FLAGS)  string_tree_cstub.c

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

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

rmtarget:
    -del server.exe client.exe

clobber: clean rmtarget
