# @(#)57        1.7  src/examples/pubsex/strtree/makefile.wat, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:57:55
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for STRING TREE sample application [Watcom] [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 $(%STEM)\DCE_DIRS.wat

# inference rules
.c.obj:
    $(CC) $(CFLAGS) $*.c

all: server.exe client.exe

WORKSPACE = OPTION STACK=120k OPTION HEAPSIZE=64k
SERVER    = FILE server.obj  FILE string_tree_sstub.obj  FILE manager.obj
CLIENT    = FILE client.obj  FILE string_tree_cstub.obj

server.exe: server.obj string_tree_sstub.obj manager.obj
    $(LD) $(LDFLAGS) $(SERVER) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

client.exe: client.obj string_tree_cstub.obj
    $(LD) $(LDFLAGS) $(CLIENT) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(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 $(FROMIDL)
    -del *.obj *.map *.err

rmtarget:
    -del *.exe

clobber:
    -del $(FROMIDL)
    -del *.obj *.map *.err
    -del *.exe

