:template
# @(#) /56 1.1 6/4/96 15:35:11 [12/22/96 21:57:02] 

#
# COMPONENT_NAME: some
#
# ORIGINS: 27
#
#
# 10H9767, 25H7912  (C) COPYRIGHT International Business Machines Corp. 1992,1996 
# 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.
#

# Makefile for: emit<classSourceFileStem>    [<timeStamp>]
# Author: SOMObjects Emitter Framework

# We set SOMBASE to \\som by default, if your installation is
# different and som has been installed elsewhere, then change the SOMBASE
# variable.
# SOMBASE     = \\som
# To ensure that all other Makefiles generated by the newemit program have
# this information then alter the template file in 
# $(SOMBASE)\\include\\gen_mk32.efw to reflect this difference.
DLLDEST     = $(SOMBASE)\\lib
EFWDEST     = $(SOMBASE)\\include
INCLUDEPATH = -I$(SOMBASE)\\include
LIBDIRPATH  = $(SOMBASE)\\lib

SRCS        = emit<classSourceFileStem>.cpp <classSourceFileStem>.cpp <classSourceFileStem>.efw <classSourceFileStem>.idl
OBJS        = emit<classSourceFileStem>.obj <classSourceFileStem>.obj
TARGET      = emit<classSourceFileStem>.dll
CLEANFILES  = <classSourceFileStem>.xh

SCFLAGS     = -D__PRIVATE__ -sxh;xih -m addstar
CC	    = icc
CFLAGS	    = -I. -Q+ -W3 
LINKER      = ilink
LDFLAGS     = /DEBUG
LIBLIST     = somtk.lib

.SUFFIXES: .cpp .idl .xih .obj

.cpp.obj:
	$(CC) -I. $(INCLUDEPATH) $(CFLAGS) -Ge- -c $\<

.idl.xih:
	cmd /c "sc $(SCFLAGS) $*.idl"

$(TARGET): $(OBJS) $*.exp
	$(LINKER) /DLL $(LDFLAGS) $(OBJS) $*.exp $(LIBLIST)

$(TARGET:dll=exp): $(TARGET:dll=nid)
	ilib /GI $*.nid

clean:
	-del *.obj *.dll *.map *.xih $(CLEANFILES)

emit<classSourceFileStem>.obj: emit<classSourceFileStem>.cpp <classSourceFileStem>.xih

<classSourceFileStem>.obj: <classSourceFileStem>.cpp <classSourceFileStem>.xih

<classSourceFileStem>.xih: <classSourceFileStem>.idl

