# @(#)78        1.6  src/examples/pubsex/strtree/makefile.vc3, examples.src, os2dce21.dss, 960602a.1  1/12/96  15:22:57
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for STRING TREE 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

all: server.exe client.exe

SERVER_OBJS = server.obj string_tree_sstub.obj manager.obj
CLIENT_OBJS = client.obj string_tree_cstub.obj

server.exe: $(SERVER_OBJS)
    $(LD) $(LDFLAGS) $(SERVER_OBJS) /O:server.exe $(LDLIBS)

client.exe: $(CLIENT_OBJS)
    $(LD) $(LDFLAGS) $(CLIENT_OBJS) /O:client.exe $(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
