# @(#)84        1.14  src/examples/timop/makefile.bor, examples.src, os2dce21.dss, 960602a.1  4/4/96  11:40:22
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for TIMOP 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>

WARNINGS = /w-rch
STACK    = /stack:1000000

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

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

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

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

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

rmtarget:
    -del timop_server.exe timop_client.exe

clobber: clean rmtarget
