# @(#)45        1.10  src/examples/demo/data_test_app/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:41:20
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for DATA_TEST sample application [IBM CSet++] [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>

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

# targets
PROG = data_test_server.exe data_test_client.exe

all: $(PROG)

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


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

data_test_server.exe: $(server_OFILES)
    $(LD) $(LDFLAGS) $(server_OFILES), $*.exe, $*.map, $(LDLIBS), $*.def

data_test_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(client_OFILES), $*.exe, $*.map, $(LDLIBS), $*.def

clean:
    -del *.obj *.map
    -del data_test_cstub.c data_test.h

clobber: clean rmtarget

rmtarget:
    -del $(PROG)
