# @(#)47        1.4  src/examples/demo/data_test_app/makefile.wat, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:57:25
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for DATA_TEST 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

# targets
all: data_test_server.exe data_test_client.exe

server_OFILES=data_test_server.obj data_test_sstub.obj data_test_manager.obj data_test_xmit.obj
client_OFILES=data_test_client.obj data_test_cstub.obj data_test_xmit.obj

data_test_sstub.obj: data_test_sstub.c data_test.h
data_test_cstub.obj: data_test_cstub.c data_test.h
data_test_server.obj: data_test_server.c data_test.h
data_test_client.obj: data_test_client.c data_test.h
data_test_manager.obj: data_test_manager.c data_test.h
data_test_xmit.obj: data_test_xmit.c

FROMIDL = data_test_cstub.c data_test_sstub.c data_test.h
$(FROMIDL) : data_test.idl
    $(IDL) $(EPV_IDL) data_test.idl

WORKSPACE = OPTION STACK=120k OPTION HEAPSIZE=64k
CLIENT    = FILE data_test_client.obj FILE data_test_cstub.obj FILE data_test_xmit.obj
SERVER    = FILE data_test_server.obj FILE data_test_sstub.obj &
            FILE data_test_xmit.obj   FILE data_test_manager.obj

data_test_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(SERVER) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

data_test_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(CLIENT) NAME $*.exe $(WORKSPACE) OPTION MAP=$*.map LIBRARY $(LDLIBS)

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

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