:template
# @(#) /45 1.5 6/10/96 16:32:41 [12/22/96 21:24:39]

#
# 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 /usr/lpp/som by default, if your installation is
# different and som has been installed elsewhere, then change the SOMBASE
# variable.
# SOMBASE     = /usr/lpp/som
# To ensure that all other Makefiles generated by the newemit program have
# this information then alter the template file in 
# $(SOMBASE)/include/gen_make.efw to reflect this difference.
DLLDEST     = $(SOMBASE)/lib
EFWDEST     = $(SOMBASE)/include
INCLUDEPATH = -I$(SOMBASE)/include
LIBDIRPATH  = -L$(SOMBASE)/lib

SRCS        = emit<classSourceFileStem>.C <classSourceFileStem>.C <classSourceFileStem>.efw <classSourceFileStem>.idl
OBJS        = emit<classSourceFileStem>.o <classSourceFileStem>.o
TARGET      = emit<classSourceFileStem>.dll
CLEANFILES  = <classSourceFileStem>.xh

SCFLAGS     = -D__PRIVATE__ -sxh:xih -m addstar
CC          = xlC
CFLAGS      = 
LINKER      = xlC
LDFLAGS     = -bM:SRE -T512 -H512
LIBLIST     = -lsomtk


.SUFFIXES: .C .xih .idl .o

.C.o:
	$(CC) -I. $(INCLUDEPATH) $(CFLAGS) -c $\<

.idl.xih:
	sc $(SCFLAGS) $\<

$(TARGET): $(OBJS)
	$(LINKER) -o $@ -e emitSL $(OBJS) $(LDFLAGS)\\
	    -lc $(LIBDIRPATH) $(LIBLIST)

clean:
	rm -f *.o core *.xih $(TARGET) $(CLEANFILES)

emit<classSourceFileStem>.o: emit<classSourceFileStem>.C <classSourceFileStem>.xih

<classSourceFileStem>.o: <classSourceFileStem>.C <classSourceFileStem>.xih

<classSourceFileStem>.xih: <classSourceFileStem>.idl

