# @(#)07        1.5  src/examples/timop/makefile.vc3, examples.src, os2dce21.dss, 960602a.1  1/12/96  14:35:22
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for TIMOP 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.
#
#********************************************************************/

!INCLUDE <DCE_DIRS>

WARNINGS = /Wcnd-

# 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
        $(CC) -Fo$@ $(CFLAGS) $(WARNINGS) $*.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) $(server_OFILES) /O:$*.exe $(LDLIBS) $*.def

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

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

rmtarget:
    -del timop_server.exe timop_client.exe

clobber: clean rmtarget
