# @(#)69        1.4  src/examples/demo/data_test_app/makefile.vc3, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:52:09
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for DATA_TEST 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.
#
#    Note: Under OS/2 the makefiles have hard coded drive letters
#    (c:) for compilers, toolkit and DCE. Please edit the makefiles
#    if these are installed in drives other than c:
#********************************************************************/


!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

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) $(server_OFILES) /O:data_test_server.exe $(LDLIBS) $*.def

data_test_client.exe: $(client_OFILES)
    $(LD) $(LDFLAGS) $(client_OFILES) /O:data_test_client.exe $(LDLIBS) $*.def

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

clobber: clean rmtarget

rmtarget:
    -del $(PROG)
