# @(#)79        1.5  src/examples/svc/hello_svc/makefile.vc3, examples.src, os2dce21.dss, 960602a.1  1/12/96  14:49:13
#
#/********************************************************************
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS: makefile for HELLO-SVC 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>

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

# The following is for the objects that contain the serviceability table
# and messages, respectively.
SVCMSGO = dcehelmsg.obj
SVCSVCO = dcehelsvc.obj

# sams-generated files
SVC_FILES = dcehelmsg.h dcehelmsg.c dcehelmac.h dcehelsvc.c dcehelsvc.h dcehel.cat dcehel.msg

SVC_EXTRA_FILES = dcehelmsg.man dcehelmsg.idx dcehelmsg.sml

# targets:
default: all

all: hello_svc.exe

server_OFILES=hello_svc.obj $(SVCMSGO) $(SVCSVCO)

hello_svc.obj: hello_svc.c $(SVC_FILES)

$(SVC_FILES): hel.sams
        $(SAMS) hel.sams

hello_svc.exe: $(server_OFILES)
        $(LD) $(LDFLAGS) $(server_OFILES) /O:hello_svc.exe $(LDLIBS) $*.def

clean:
    -del $(server_OFILES) $(SVC_FILES) $(SVC_EXTRA_FILES) .idl *.map

rmtarget:
    -del hello_svc.exe

clobber: clean rmtarget
