# @(#)81        1.15  src/examples/timop/makefile.os2, examples.src, os2dce21.dss, 960602a.1  1/10/96  16:47:09
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for TIMOP 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
all: timop_server.exe timop_client.exe

server_OFILES = timop_server.obj timop_sstub.obj timop_manager.obj timop_refmon.obj
client_OFILES = timop_client.obj timop_cstub.obj

timop_server.obj: timop_server.c timop.h timop_refmon.c timop_aux.h
timop_sstub.obj: timop_sstub.c timop.h
timop_manager.obj: timop_manager.c timop.h timop_refmon.c timop_aux.h
timop_refmon.obj: timop_refmon.c timop.h timop_aux.h
timop_client.obj: timop_client.c timop.h timop_aux.h
timop_cstub.obj: timop_cstub.c timop.h

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

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

FROMIDL = timop_sstub.c timop_cstub.c timop.h
$(FROMIDL): timop.idl
        $(IDL) $(NO_EPV_IDL) timop.idl

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

rmtarget:
    del timop_server.exe timop_client.exe

clobber: clean rmtarget
