# @(#)46        1.9  src/examples/demo/data_test_app/makefile.bor, examples.src, os2dce21.dss, 960602a.1  4/4/96  11:39:51
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for DATA_TEST 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>

STACK = /stack:1000000

# inference rules
.c.obj:
    $(CC) @$(STEM)\cflags.bor $(INCL_FLAGS) $*.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

data_test_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(STACK) $(IBMC_lib)\c02.obj @server.bor, $*.exe, $*.map, $(LDLIBS);

data_test_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(STACK) $(IBMC_lib)\c02.obj $(client_OFILES), $*.exe, $*.map, $(LDLIBS);

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

clobber: clean rmtarget

rmtarget:
    -del *.exe
